Skip to content

Commit 9c2f3c1

Browse files
committed
[vpr][pack] skip invalid blks
1 parent 6a1fe64 commit 9c2f3c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vpr/src/pack/greedy_seed_selector.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ static inline void print_seed_gains(const char* fname,
153153
fprintf(fp, "\n");
154154
for (auto mol_id : seed_mols) {
155155
for (AtomBlockId blk_id : prepacker.get_molecule(mol_id).atom_block_ids) {
156+
if (!blk_id.is_valid()) {
157+
continue;
158+
}
156159
std::string name = atom_netlist.block_name(blk_id);
157160
fprintf(fp, "%-*s ", max_name_len, name.c_str());
158161

0 commit comments

Comments
 (0)