From a6d0550e54a6243f4cc716ce98f348458c865fe8 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 24 Aug 2021 07:32:32 +0200 Subject: Implemented handling off null statements. --- pyGHDL/dom/Sequential.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pyGHDL/dom/Sequential.py') 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, @@ -481,6 +482,17 @@ class SequentialReportStatement(VHDLModel_SequentialReportStatement, DOMMixin): return cls(reportNode, message, severity, label) +@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__( -- cgit v1.2.3 From cb0ec4a5d35d6eb071864f42adefd8d4e2ebaabb Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 24 Aug 2021 07:56:33 +0200 Subject: Translate sequential procedure calls. --- pyGHDL/dom/Sequential.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyGHDL/dom/Sequential.py') diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index 70a16e4cd..372939b28 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -424,11 +424,11 @@ class SequentialProcedureCall(VHDLModel_SequentialProcedureCall, DOMMixin): def parse(cls, callNode: Iir, label: str) -> "SequentialProcedureCall": from pyGHDL.dom._Translate import GetNameFromNode, GetParameterMapAspect - call = nodes.Get_Procedure_Call(callNode) + cNode = nodes.Get_Procedure_Call(callNode) - prefix = nodes.Get_Prefix(call) + prefix = nodes.Get_Prefix(cNode) procedureName = GetNameFromNode(prefix) - parameterAssociations = GetParameterMapAspect(nodes.Get_Parameter_Association_Chain(callNode)) + parameterAssociations = GetParameterMapAspect(nodes.Get_Parameter_Association_Chain(cNode)) return cls(callNode, procedureName, parameterAssociations, label) -- cgit v1.2.3