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