From ad34fac3f4e30f0ff13e1630b42373f31b2918a4 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 21 Jun 2021 21:44:31 +0200 Subject: Fixed function call parameters. Fixed physical literal units. Added basic Procedure detection. --- pyGHDL/dom/Literal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyGHDL/dom/Literal.py') diff --git a/pyGHDL/dom/Literal.py b/pyGHDL/dom/Literal.py index 4fe3a843c..44c002955 100644 --- a/pyGHDL/dom/Literal.py +++ b/pyGHDL/dom/Literal.py @@ -30,7 +30,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later # ============================================================================ -from pyGHDL.dom._Utils import GetIirKindOfNode +from pyGHDL.dom._Utils import GetIirKindOfNode, GetNameOfNode from pyGHDL.libghdl import name_table from pyGHDL.libghdl.vhdl import nodes @@ -70,7 +70,7 @@ class PhysicalIntegerLiteral(VHDLModel_PhysicalIntegerLiteral): def parse(cls, node): value = nodes.Get_Value(node) unit = nodes.Get_Unit_Name(node) - unitName = name_table.Get_Name_Ptr(unit) + unitName = GetNameOfNode(unit) return cls(value, unitName) @@ -81,7 +81,7 @@ class PhysicalFloatingLiteral(VHDLModel_PhysicalFloatingLiteral): def parse(cls, node): value = nodes.Get_Fp_Value(node) unit = nodes.Get_Unit_Name(node) - unitName = name_table.Get_Name_Ptr(unit) + unitName = GetNameOfNode(unit) return cls(value, unitName) -- cgit v1.2.3