Fix assertion failure when top level module has array ports.
Reported by Kustaa Nyholm on iverilog-devel, 2017-10-17.
This commit is contained in:
parent
7fa781d5f3
commit
a8318db21c
|
|
@ -6718,8 +6718,7 @@ Design* elaborate(list<perm_string>roots)
|
||||||
if (netnet != 0) {
|
if (netnet != 0) {
|
||||||
// Elaboration may actually fail with
|
// Elaboration may actually fail with
|
||||||
// erroneous input source
|
// erroneous input source
|
||||||
ivl_assert(*mport[pin], netnet->pin_count()==1);
|
prt_vector_width += netnet->vector_width() * netnet->pin_count();
|
||||||
prt_vector_width += netnet->vector_width();
|
|
||||||
ptype = PortType::merged(netnet->port_type(), ptype);
|
ptype = PortType::merged(netnet->port_type(), ptype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue