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 | |
| parent | fd6fc2a7d5f577802fd4622501af4d871536fc41 (diff) | |
| download | ghdl-f1059ae910767d5bb89244175d892a34e57fab63.tar.gz ghdl-f1059ae910767d5bb89244175d892a34e57fab63.tar.bz2 ghdl-f1059ae910767d5bb89244175d892a34e57fab63.zip  | |
Bumped dependecy to pyVHDLModel and added analysis time measurements.
| -rw-r--r-- | pyGHDL/dom/NonStandard.py | 15 | ||||
| -rw-r--r-- | pyGHDL/dom/requirements.txt | 2 | 
2 files changed, 16 insertions, 1 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): diff --git a/pyGHDL/dom/requirements.txt b/pyGHDL/dom/requirements.txt index 6b540d7b7..d274927cc 100644 --- a/pyGHDL/dom/requirements.txt +++ b/pyGHDL/dom/requirements.txt @@ -1,4 +1,4 @@  -r ../libghdl/requirements.txt -pyVHDLModel==0.18.0 +pyVHDLModel==0.19.0  #https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel  | 
