3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 22:33:41 +00:00

Fix assert

This commit is contained in:
Alain Dargelas 2025-01-14 11:57:03 -08:00
parent d13c70c3c8
commit 97928493e5

View file

@ -411,12 +411,14 @@ struct OptBalanceTreeWorker {
} }
for (Cell *cell : chain) { for (Cell *cell : chain) {
SigSpec y_sig = sigmap(cell->getPort(ID::Y)); SigSpec y_sig = sigmap(cell->getPort(ID::Y));
if (y_sig.is_wire()) {
Wire *wire = y_sig.as_wire(); Wire *wire = y_sig.as_wire();
if (wire && !wire->port_input && !wire->port_output) { if (wire && !wire->port_input && !wire->port_output) {
module->rename(y_sig.as_wire(), NEW_ID2_SUFFIX("rot_wire")); module->rename(y_sig.as_wire(), NEW_ID2_SUFFIX("rot_wire"));
} }
} }
} }
}
cell_count[cell_type] += GetSize(chain); cell_count[cell_type] += GetSize(chain);
} }