3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

portarcs: Fix for case of unused gates

This commit is contained in:
Martin Povišer 2024-12-05 16:20:20 +01:00
parent 66734f522d
commit 2c66557d22

View file

@ -192,9 +192,11 @@ struct PortarcsPass : Pass {
if (annotations.count(bit)) { if (annotations.count(bit)) {
// consistency check // consistency check
log_assert(annotations.at(bit)[0] == ((int) (intptr_t) bit.wire)); log_assert(annotations.at(bit)[0] == ((int) (intptr_t) bit.wire));
} else {
recycling.push_back(annotations.at(ordering[i])); alloc_for_bit(bit);
} }
recycling.push_back(annotations.at(ordering[i]));
} }
log_debug("Allocated %lux%d\n", allocated.size(), inputs.size()); log_debug("Allocated %lux%d\n", allocated.size(), inputs.size());