Skip to content

Commit 4961cb3

Browse files
committed
Avoid parallel edges in hierarchy graph (for now), so hierarchy can be converted to a tree.
1 parent 57efed8 commit 4961cb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyVHDLModel/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,11 @@ def CreateHierarchyGraph(self) -> None:
986986
newEdge = hierarchyArchitectureVertex.LinkFromVertex(hierarchyDestinationVertex)
987987
elif DependencyGraphEdgeKind.Instantiation in kind:
988988
hierarchyDestinationVertex = dependencyEdge.Destination["hierarchyVertex"]
989+
990+
# FIXME: avoid parallel edges, to graph can be converted to a tree until "real" hierarchy is computed (unrole generics and blocks)
991+
if hierarchyArchitectureVertex.HasLinkToDestination(hierarchyDestinationVertex):
992+
continue
993+
989994
newEdge = hierarchyArchitectureVertex.LinkToVertex(hierarchyDestinationVertex)
990995
else:
991996
continue

0 commit comments

Comments
 (0)