diff options
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 12 | ||||
-rw-r--r-- | pyGHDL/dom/_Translate.py | 6 | ||||
-rw-r--r-- | pyGHDL/dom/requirements.txt | 4 |
3 files changed, 16 insertions, 6 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index 9e1af5b32..70a16e4cd 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -54,6 +54,7 @@ from pyVHDLModel.SyntaxModel import ( SequentialProcedureCall as VHDLModel_SequentialProcedureCall, SequentialAssertStatement as VHDLModel_SequentialAssertStatement, SequentialReportStatement as VHDLModel_SequentialReportStatement, + NullStatement as VHDLModel_NullStatement, WaitStatement as VHDLModel_WaitStatement, Name, SequentialStatement, @@ -482,6 +483,17 @@ class SequentialReportStatement(VHDLModel_SequentialReportStatement, DOMMixin): @export +class NullStatement(VHDLModel_NullStatement, DOMMixin): + def __init__( + self, + waitNode: Iir, + label: str = None, + ): + super().__init__(label) + DOMMixin.__init__(self, waitNode) + + +@export class WaitStatement(VHDLModel_WaitStatement, DOMMixin): def __init__( self, diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index 723b13f69..5322760ab 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -41,7 +41,7 @@ from pyGHDL.dom.Sequential import ( SequentialReportStatement, SequentialAssertStatement, WaitStatement, - SequentialSimpleSignalAssignment, + SequentialSimpleSignalAssignment, NullStatement, ) from pyVHDLModel.SyntaxModel import ( ConstraintUnion, @@ -975,9 +975,7 @@ def GetSequentialStatementsFromChainedNodes( elif kind == nodes.Iir_Kind.Assertion_Statement: yield SequentialAssertStatement.parse(statement, label) elif kind == nodes.Iir_Kind.Null_Statement: - print( - "[NOT IMPLEMENTED] null statement (label: '{label}') at line {line}".format(label=label, line=pos.Line) - ) + yield NullStatement(statement, label) else: raise DOMException( "Unknown statement of kind '{kind}' in {entity} '{name}' at {file}:{line}:{column}.".format( diff --git a/pyGHDL/dom/requirements.txt b/pyGHDL/dom/requirements.txt index d296f0e96..fbc6a6f6e 100644 --- a/pyGHDL/dom/requirements.txt +++ b/pyGHDL/dom/requirements.txt @@ -1,4 +1,4 @@ -r ../libghdl/requirements.txt -pyVHDLModel==0.11.5 -#https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel +#pyVHDLModel==0.12.0 +https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel |