diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-26 22:39:26 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-26 22:39:26 +0100 |
commit | f1059ae910767d5bb89244175d892a34e57fab63 (patch) | |
tree | 3a1d3fa749d25f0a0bf5ae7f33aa66e922a9e215 /pyGHDL/dom/NonStandard.py | |
parent | fd6fc2a7d5f577802fd4622501af4d871536fc41 (diff) | |
download | ghdl-f1059ae910767d5bb89244175d892a34e57fab63.tar.gz ghdl-f1059ae910767d5bb89244175d892a34e57fab63.tar.bz2 ghdl-f1059ae910767d5bb89244175d892a34e57fab63.zip |
Bumped dependecy to pyVHDLModel and added analysis time measurements.
Diffstat (limited to 'pyGHDL/dom/NonStandard.py')
-rw-r--r-- | pyGHDL/dom/NonStandard.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 64c34b527..579874bfc 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -111,6 +111,21 @@ class Design(VHDLModel_Design): if libghdl_analyze_init_status() != 0: raise LibGHDLException("Error initializing 'libghdl'.") + def LoadDefaultLibraries(self): + t1 = time.perf_counter() + + super().LoadStdLibrary() + super().LoadIEEELibrary() + + self._loadDefaultLibraryTime = time.perf_counter() - t1 + + def Analyze(self): + t1 = time.perf_counter() + + super().Analyze() + + self._analyzeTime = time.perf_counter() - t1 + @export class Library(VHDLModel_Library): |