aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli/dom.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-26 22:40:28 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-26 22:40:28 +0100
commit78a439d9e8a220125895312162fcebe62863f261 (patch)
treebe3fdc4535dd267815f5a2281d2f2e5e35a80760 /pyGHDL/cli/dom.py
parentf1059ae910767d5bb89244175d892a34e57fab63 (diff)
downloadghdl-78a439d9e8a220125895312162fcebe62863f261.tar.gz
ghdl-78a439d9e8a220125895312162fcebe62863f261.tar.bz2
ghdl-78a439d9e8a220125895312162fcebe62863f261.zip
Replaced specific code with routines from pyVHDLModel.
Diffstat (limited to 'pyGHDL/cli/dom.py')
-rwxr-xr-xpyGHDL/cli/dom.py21
1 files changed, 14 insertions, 7 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 68bd33c34..7ca4a17da 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -299,16 +299,23 @@ 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)
-
if not self._design.Documents:
self.WriteFatal("No files processed at all.")
+ self._design.LoadDefaultLibraries()
+ self._design.Analyze()
+ self.WriteInfo(
+ dedent(
+ """\
+ default library load time: {:5.3f} us
+ dependency analysis time: {:5.3f} us
+ """
+ ).format(
+ self._design._loadDefaultLibraryTime * 10**6,
+ self._design._analyzeTime * 10**6,
+ )
+ )
+
PP = PrettyPrint()
buffer = []