Skip to content

Commit e819ff7

Browse files
authored
Merge pull request #2581 from verilog-to-routing/unset_atom_clb_upon_removal_from_cluster
unset atom clb lookup entry if it has been removed from the cluster
2 parents 434f529 + 96219a7 commit e819ff7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vpr/src/pack/re_cluster_util.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,11 @@ static void update_cluster_pb_stats(const t_pack_molecule* molecule,
721721
}
722722

723723
//Update atom netlist mapping
724-
atom_ctx.lookup.set_atom_clb(blk_id, clb_index);
724+
if (is_added) {
725+
atom_ctx.lookup.set_atom_clb(blk_id, clb_index);
726+
} else {
727+
atom_ctx.lookup.set_atom_clb(blk_id, ClusterBlockId::INVALID());
728+
}
725729

726730
const t_pb* atom_pb = atom_ctx.lookup.atom_pb(blk_id);
727731
VTR_ASSERT(atom_pb);

0 commit comments

Comments
 (0)