mirror of https://github.com/YosysHQ/yosys.git
Fix handling of empty cell port assignments (i.e. ignore them)
This commit is contained in:
parent
36cf18ac4c
commit
b3bc7068d1
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue