Skip to content

Commit 3ad9b78

Browse files
committed
replace assert with non-fatal check for mode conflict, if true return BLK_FAILED_FEASIBLE
1 parent 615a48e commit 3ad9b78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vpr/src/pack/cluster_util.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,9 @@ enum e_block_pack_status try_place_atom_block_rec(const t_pb_graph_node* pb_grap
12321232
}
12331233
}
12341234
} else {
1235-
VTR_ASSERT(parent_pb->mode == pb_graph_node->pb_type->parent_mode->index);
1235+
if (parent_pb->mode != pb_graph_node->pb_type->parent_mode->index) {
1236+
return BLK_FAILED_FEASIBLE;
1237+
}
12361238
}
12371239

12381240
const t_mode* mode = &parent_pb->pb_graph_node->pb_type->modes[parent_pb->mode];
@@ -3688,4 +3690,4 @@ void init_clb_atoms_lookup(vtr::vector<ClusterBlockId, std::unordered_set<AtomBl
36883690

36893691
atoms_lookup[clb_index].insert(atom_blk_id);
36903692
}
3691-
}
3693+
}

0 commit comments

Comments
 (0)