aboutsummaryrefslogtreecommitdiffstats
path: root/passes/hierarchy
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-07-21 19:32:31 +0200
committerClifford Wolf <clifford@clifford.at>2017-07-21 19:32:31 +0200
commitb3bc7068d1683cc0ac0b21cacdfb07867a7eeadb (patch)
tree6479759cc374b0306b812f90db1a754ff52f1ec6 /passes/hierarchy
parent36cf18ac4c1f96cad795032c3597abf08af6a6d8 (diff)
downloadyosys-b3bc7068d1683cc0ac0b21cacdfb07867a7eeadb.tar.gz
yosys-b3bc7068d1683cc0ac0b21cacdfb07867a7eeadb.tar.bz2
yosys-b3bc7068d1683cc0ac0b21cacdfb07867a7eeadb.zip
Fix handling of empty cell port assignments (i.e. ignore them)
Diffstat (limited to 'passes/hierarchy')
-rw-r--r--passes/hierarchy/hierarchy.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index d71e9c574..41c1cfded 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -640,6 +640,9 @@ struct HierarchyPass : public Pass {
if (w == nullptr || w->port_id == 0)
continue;
+ if (GetSize(conn.second) == 0)
+ continue;
+
if (GetSize(w) == GetSize(conn.second))
continue;