mirror of
https://github.com/YosysHQ/yosys
synced 2026-01-05 18:42:46 +00:00
aiger2: fix case where submodule cell input port has empty SigSpec
This commit is contained in:
parent
cebb80250c
commit
b2270ae1c8
1 changed files with 1 additions and 1 deletions
|
|
@ -849,7 +849,7 @@ struct XAigerAnalysis : Index<XAigerAnalysis, int, 0, 0> {
|
|||
for (auto wire : mod->wires()) {
|
||||
if (wire->port_input && !wire->port_output) {
|
||||
SigSpec port = driver->getPort(wire->name);
|
||||
for (int i = 0; i < wire->width; i++) {
|
||||
for (int i = 0; i < std::min(wire->width, port.size()); i++) {
|
||||
int ilevel = visit(cursor, port[i]);
|
||||
max = std::max(max, ilevel + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue