mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Fix assert
This commit is contained in:
parent
d13c70c3c8
commit
97928493e5
1 changed files with 5 additions and 3 deletions
|
@ -411,9 +411,11 @@ struct OptBalanceTreeWorker {
|
|||
}
|
||||
for (Cell *cell : chain) {
|
||||
SigSpec y_sig = sigmap(cell->getPort(ID::Y));
|
||||
Wire *wire = y_sig.as_wire();
|
||||
if (wire && !wire->port_input && !wire->port_output) {
|
||||
module->rename(y_sig.as_wire(), NEW_ID2_SUFFIX("rot_wire"));
|
||||
if (y_sig.is_wire()) {
|
||||
Wire *wire = y_sig.as_wire();
|
||||
if (wire && !wire->port_input && !wire->port_output) {
|
||||
module->rename(y_sig.as_wire(), NEW_ID2_SUFFIX("rot_wire"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue