Skip to content

Commit 1f4ded5

Browse files
authored
Merge pull request #2433 from verilog-to-routing/make_mode_conflict_non_fatal
replace assert with non-fatal check for mode conflict
2 parents 05a774c + e61207f commit 1f4ded5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vpr/src/pack/cluster_util.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,10 @@ enum e_block_pack_status try_place_atom_block_rec(const t_pb_graph_node* pb_grap
12431243
}
12441244
}
12451245
} else {
1246-
VTR_ASSERT(parent_pb->mode == pb_graph_node->pb_type->parent_mode->index);
1246+
/* if this is not the first child of this parent, must match existing parent mode */
1247+
if (parent_pb->mode != pb_graph_node->pb_type->parent_mode->index) {
1248+
return BLK_FAILED_FEASIBLE;
1249+
}
12471250
}
12481251

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

0 commit comments

Comments
 (0)