mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 22:33:41 +00:00
Fix assert
This commit is contained in:
parent
d13c70c3c8
commit
97928493e5
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue