aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Literal.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-21 21:44:31 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:28:25 +0200
commitad34fac3f4e30f0ff13e1630b42373f31b2918a4 (patch)
tree965e614ea5755baad99a0ad0024433b0f16b90ab /pyGHDL/dom/Literal.py
parent7e44124316ee6b3b7f8d3ee040ef63f0d2f2e65d (diff)
downloadghdl-ad34fac3f4e30f0ff13e1630b42373f31b2918a4.tar.gz
ghdl-ad34fac3f4e30f0ff13e1630b42373f31b2918a4.tar.bz2
ghdl-ad34fac3f4e30f0ff13e1630b42373f31b2918a4.zip
Fixed function call parameters.
Fixed physical literal units. Added basic Procedure detection.
Diffstat (limited to 'pyGHDL/dom/Literal.py')
-rw-r--r--pyGHDL/dom/Literal.py6
1 files changed, 3 insertions, 3 deletions
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)