Skip to content

Commit 2b1f252

Browse files
committed
added comments
1 parent 49a0fbf commit 2b1f252

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

vpr/src/base/clustered_netlist_utils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ void ClusterAtomsLookup::init_lookup() {
4848
for (auto atom_blk_id : atom_ctx.nlist.blocks()) {
4949
ClusterBlockId clb_index = atom_ctx.lookup.atom_clb(atom_blk_id);
5050

51+
/* if this data structure is being built alongside the clustered netlist */
52+
/* e.g. when ingesting and legalizing a flat placement solution, some atoms */
53+
/* may not yet be mapped to a valid clb_index */
5154
if (clb_index != ClusterBlockId::INVALID()) {
5255
cluster_atoms[clb_index].push_back(atom_blk_id);
5356
}

vpr/src/pack/cluster_util.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3686,6 +3686,9 @@ void init_clb_atoms_lookup(vtr::vector<ClusterBlockId, std::unordered_set<AtomBl
36863686
for (auto atom_blk_id : atom_ctx.nlist.blocks()) {
36873687
ClusterBlockId clb_index = atom_ctx.lookup.atom_clb(atom_blk_id);
36883688

3689+
/* if this data structure is being built alongside the clustered netlist */
3690+
/* e.g. when ingesting and legalizing a flat placement solution, some atoms */
3691+
/* may not yet be mapped to a valid clb_index */
36893692
if (clb_index != ClusterBlockId::INVALID()) {
36903693
atoms_lookup[clb_index].insert(atom_blk_id);
36913694
}

0 commit comments

Comments
 (0)