Fix handling of empty cell port assignments (i.e. ignore them)

This commit is contained in:
Clifford Wolf 2017-07-21 19:32:31 +02:00
parent 36cf18ac4c
commit b3bc7068d1
2 changed files with 6 additions and 0 deletions

View File

@ -640,6 +640,9 @@ struct HierarchyPass : public Pass {
if (w == nullptr || w->port_id == 0) if (w == nullptr || w->port_id == 0)
continue; continue;
if (GetSize(conn.second) == 0)
continue;
if (GetSize(w) == GetSize(conn.second)) if (GetSize(w) == GetSize(conn.second))
continue; continue;

View File

@ -247,6 +247,9 @@ struct TechmapWorker
continue; continue;
} }
if (GetSize(it.second) == 0)
continue;
RTLIL::Wire *w = tpl->wires_.at(portname); RTLIL::Wire *w = tpl->wires_.at(portname);
RTLIL::SigSig c, extra_connect; RTLIL::SigSig c, extra_connect;