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:
Martin Whitaker 2019-08-03 18:52:49 +01:00
parent 7fa781d5f3
commit a8318db21c
1 changed files with 1 additions and 2 deletions

View File

@ -6718,8 +6718,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);
}
}