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:
parent
66734f522d
commit
2c66557d22
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue