From 16c7b04b252428ebf131ecd4956e099f766d118e Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 13 Aug 2021 22:39:13 +0200 Subject: Preparations for sequential statements. --- pyGHDL/dom/_Translate.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'pyGHDL/dom') diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index a6ad1ca42..a4be6a792 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -892,6 +892,45 @@ def GetSequentialStatementsFromChainedNodes( label=label, line=pos.Line ) ) + elif kind == nodes.Iir_Kind.Simple_Signal_Assignment_Statement: + print( + "[NOT IMPLEMENTED] (Simple) signal assignment (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) + elif kind in ( + nodes.Iir_Kind.Variable_Assignment_Statement, + nodes.Iir_Kind.Conditional_Variable_Assignment_Statement, + ): + print( + "[NOT IMPLEMENTED] Variable assignment (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) + elif kind == nodes.Iir_Kind.Wait_Statement: + print( + "[NOT IMPLEMENTED] For-loop statement (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) + elif kind == nodes.Iir_Kind.Procedure_Call_Statement: + print( + "[NOT IMPLEMENTED] Procedure call (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) + elif kind == nodes.Iir_Kind.Report_Statement: + print( + "[NOT IMPLEMENTED] Report statement (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) + elif kind == nodes.Iir_Kind.Assertion_Statement: + print( + "[NOT IMPLEMENTED] Report statement (label: '{label}') at line {line}".format( + label=label, line=pos.Line + ) + ) else: raise DOMException( "Unknown statement of kind '{kind}' in {entity} '{name}' at {file}:{line}:{column}.".format( -- cgit v1.2.3