aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli/dom.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-11 00:41:15 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:34 +0200
commitb543ae7178207a3100e1ae85d5d57b16952165a3 (patch)
tree9478a398e48f5a62c7dad7daa4d8674419bbb4e3 /pyGHDL/cli/dom.py
parent92c3b2d6cf5835e0aa048a12dcc1e80b36990a4b (diff)
downloadghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.tar.gz
ghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.tar.bz2
ghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.zip
Resolve entity names in architectures to entities.
Diffstat (limited to 'pyGHDL/cli/dom.py')
-rwxr-xr-xpyGHDL/cli/dom.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 63350d729..4a9fd0b3c 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -316,6 +316,14 @@ class Application(LineTerminal, ArgParseMixin):
)
)
+ for library in self._design.Libraries.values():
+ for entityName, architectures in library.Architectures.items():
+ for entity in library.Entities:
+ if entity.Identifier == str(entityName):
+ for architecture in architectures:
+ entity.Architectures.append(architecture)
+
+
PP = PrettyPrint()
buffer = []