Skip to content

unset atom clb lookup entry if it has been removed from the cluster #2581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading