From 07d8c06b4562e2e0d7390b98732ce1b6d30320d4 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 22 Aug 2021 23:32:21 +0200 Subject: Fixed case statement. --- pyGHDL/dom/Sequential.py | 6 +----- pyGHDL/dom/requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'pyGHDL/dom') 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 -- cgit v1.2.3