Skip to content

Commit

Permalink
Merge pull request verilog-to-routing#2581 from verilog-to-routing/un…
Browse files Browse the repository at this point in the history
…set_atom_clb_upon_removal_from_cluster

unset atom clb lookup entry if it has been removed from the cluster
  • Loading branch information
KA7E authored Jun 5, 2024
2 parents 434f529 + 96219a7 commit e819ff7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vpr/src/pack/re_cluster_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,11 @@ static void update_cluster_pb_stats(const t_pack_molecule* molecule,
}

//Update atom netlist mapping
atom_ctx.lookup.set_atom_clb(blk_id, clb_index);
if (is_added) {
atom_ctx.lookup.set_atom_clb(blk_id, clb_index);
} else {
atom_ctx.lookup.set_atom_clb(blk_id, ClusterBlockId::INVALID());
}

const t_pb* atom_pb = atom_ctx.lookup.atom_pb(blk_id);
VTR_ASSERT(atom_pb);
Expand Down

0 comments on commit e819ff7

Please sign in to comment.