diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-11 00:41:15 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:34 +0200 |
commit | b543ae7178207a3100e1ae85d5d57b16952165a3 (patch) | |
tree | 9478a398e48f5a62c7dad7daa4d8674419bbb4e3 | |
parent | 92c3b2d6cf5835e0aa048a12dcc1e80b36990a4b (diff) | |
download | ghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.tar.gz ghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.tar.bz2 ghdl-b543ae7178207a3100e1ae85d5d57b16952165a3.zip |
Resolve entity names in architectures to entities.
-rwxr-xr-x | pyGHDL/cli/dom.py | 8 |
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 = [] |