Skip to content

Commit 2c66557

Browse files
committed
portarcs: Fix for case of unused gates
1 parent 66734f5 commit 2c66557

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

passes/cmds/portarcs.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,11 @@ struct PortarcsPass : Pass {
192192
if (annotations.count(bit)) {
193193
// consistency check
194194
log_assert(annotations.at(bit)[0] == ((int) (intptr_t) bit.wire));
195-
196-
recycling.push_back(annotations.at(ordering[i]));
195+
} else {
196+
alloc_for_bit(bit);
197197
}
198+
199+
recycling.push_back(annotations.at(ordering[i]));
198200
}
199201
log_debug("Allocated %lux%d\n", allocated.size(), inputs.size());
200202

0 commit comments

Comments
 (0)