diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-22 23:32:21 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:37 +0200 |
commit | 07d8c06b4562e2e0d7390b98732ce1b6d30320d4 (patch) | |
tree | 81a692dda6a79a71e9dc8bd27172b0d1b41a7851 /pyGHDL | |
parent | 89aee29e92c09f9bfa7b01f39233636bbc938915 (diff) | |
download | ghdl-07d8c06b4562e2e0d7390b98732ce1b6d30320d4.tar.gz ghdl-07d8c06b4562e2e0d7390b98732ce1b6d30320d4.tar.bz2 ghdl-07d8c06b4562e2e0d7390b98732ce1b6d30320d4.zip |
Fixed case statement.
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 6 | ||||
-rw-r--r-- | pyGHDL/dom/requirements.txt | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index a4eae8767..fe7c83614 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -210,11 +210,7 @@ class Case(VHDLModel_Case, DOMMixin): ) -> "Case": from pyGHDL.dom._Translate import GetSequentialStatementsFromChainedNodes - block = nodes.Get_Associated_Block(caseNode) - if block is nodes.Null_Iir: - return cls(caseNode, choices) - - statementChain = nodes.Get_Sequential_Statement_Chain(caseNode) + statementChain = nodes.Get_Associated_Chain(caseNode) statements = GetSequentialStatementsFromChainedNodes( statementChain, "case", label ) diff --git a/pyGHDL/dom/requirements.txt b/pyGHDL/dom/requirements.txt index ca2a796ac..ea7731edc 100644 --- a/pyGHDL/dom/requirements.txt +++ b/pyGHDL/dom/requirements.txt @@ -1,4 +1,4 @@ -r ../libghdl/requirements.txt -#pyVHDLModel==0.11.2 -https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel +pyVHDLModel==0.11.4 +#https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel |