@@ -914,24 +914,23 @@ bool primitive_type_feasible(const AtomBlockId blk_id, t_pb_graph_node* curr_pb_
914914
915915 auto & atom_ctx = g_vpr_ctx.atom ();
916916 if (cur_pb_type->model != atom_ctx.nlist .block_model (blk_id)) {
917- if ((strcmp (atom_ctx.nlist .block_model (blk_id)->name , MODEL_LATCH) == 0 ) &&
918- (strcmp (atom_ctx.nlist .block_model (blk_id)->name , cur_pb_type->model ->name ) == 0 )) {
919- /* *
920- * Special case for .latch: this model exists in 2 variations which are
921- * defined one after another in linked list, check if the second variant match
922- */
917+ if ((strcmp (atom_ctx.nlist .block_model (blk_id)->name , MODEL_LATCH) == 0 ) && (strcmp (atom_ctx.nlist .block_model (blk_id)->name , cur_pb_type->model ->name ) == 0 )) {
918+ /* *
919+ * Special case for .latch: this model exists in 2 variations which are
920+ * defined one after another in linked list, check if the second variant match
921+ */
923922
924923 if (cur_pb_type->model ->next == atom_ctx.nlist .block_model (blk_id) && atom_ctx.nlist .block_model (blk_id)->inputs [1 ].trigg_edge == TriggeringEdge::FALLING_EDGE) {
925924 // Next primitive match atom - add secondary references
926925 if (!curr_pb_graph_node->has_secondary )
927- curr_pb_graph_node->update_pins ();
926+ curr_pb_graph_node->update_pins ();
928927 } else {
929928 // Next primitive and atom do not match
930929 return false ;
931930 }
932931 } else {
933- // Primitive and atom do not match
934- return false ;
932+ // Primitive and atom do not match
933+ return false ;
935934 }
936935 }
937936
@@ -948,10 +947,10 @@ bool primitive_type_feasible(const AtomBlockId blk_id, t_pb_graph_node* curr_pb_
948947 // as the atom requires
949948 for (int iport = 0 ; iport < cur_pb_type->num_ports ; ++iport) {
950949 t_port* pb_port;
951- if (curr_pb_graph_node->has_secondary )
952- pb_port = &cur_pb_type->ports_sec [iport];
950+ if (curr_pb_graph_node->has_secondary )
951+ pb_port = &cur_pb_type->ports_sec [iport];
953952 else
954- pb_port = &cur_pb_type->ports [iport];
953+ pb_port = &cur_pb_type->ports [iport];
955954
956955 const t_model_ports* pb_model_port = pb_port->model_port ;
957956
0 commit comments