Skip to content

Commit

Permalink
Merge pull request verilog-to-routing#2433 from verilog-to-routing/ma…
Browse files Browse the repository at this point in the history
…ke_mode_conflict_non_fatal

replace assert with non-fatal check for mode conflict
  • Loading branch information
vaughnbetz committed Jun 3, 2024
2 parents 05a774c + e61207f commit 1f4ded5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vpr/src/pack/cluster_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,10 @@ enum e_block_pack_status try_place_atom_block_rec(const t_pb_graph_node* pb_grap
}
}
} else {
VTR_ASSERT(parent_pb->mode == pb_graph_node->pb_type->parent_mode->index);
/* if this is not the first child of this parent, must match existing parent mode */
if (parent_pb->mode != pb_graph_node->pb_type->parent_mode->index) {
return BLK_FAILED_FEASIBLE;
}
}

const t_mode* mode = &parent_pb->pb_graph_node->pb_type->modes[parent_pb->mode];
Expand Down

0 comments on commit 1f4ded5

Please sign in to comment.