Skip to content

Commit

Permalink
portarcs: Fix for case of unused gates
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Dec 5, 2024
1 parent 66734f5 commit 2c66557
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions passes/cmds/portarcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ struct PortarcsPass : Pass {
if (annotations.count(bit)) {
// consistency check
log_assert(annotations.at(bit)[0] == ((int) (intptr_t) bit.wire));

recycling.push_back(annotations.at(ordering[i]));
} else {
alloc_for_bit(bit);
}

recycling.push_back(annotations.at(ordering[i]));
}
log_debug("Allocated %lux%d\n", allocated.size(), inputs.size());

Expand Down

0 comments on commit 2c66557

Please sign in to comment.