From a8318db21ccffa8e41bdf06fb8fa4ae54fbfefba Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 3 Aug 2019 18:52:49 +0100 Subject: [PATCH] Fix assertion failure when top level module has array ports. Reported by Kustaa Nyholm on iverilog-devel, 2017-10-17. --- elaborate.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index 6dd276463..409b90f42 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -6718,8 +6718,7 @@ Design* elaborate(listroots) 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); } }