aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-07 00:47:11 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-23 23:42:30 +0100
commit09b985a65469e28d46cf05a3d7e4957be84f69c7 (patch)
tree479b91dd0e3d89cff3ca2f75435eb0c65ea5dc70
parentd557b50e78e74801bf296b18a004a468555921be (diff)
downloadghdl-09b985a65469e28d46cf05a3d7e4957be84f69c7.tar.gz
ghdl-09b985a65469e28d46cf05a3d7e4957be84f69c7.tar.bz2
ghdl-09b985a65469e28d46cf05a3d7e4957be84f69c7.zip
Fixed multiple generics reading.
-rw-r--r--pyGHDL/dom/_Translate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py
index d39b14765..b3a48769b 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -471,6 +471,8 @@ def GetGenericsFromChainedNodes(
if kind == nodes.Iir_Kind.Interface_Constant_Declaration:
from pyGHDL.dom.InterfaceItem import GenericConstantInterfaceItem
+ parseNode = generic
+
# Lookahead for generics with multiple identifiers at once
if nodes.Get_Has_Identifier_List(generic):
nextNode = nodes.Get_Chain(generic)
@@ -491,7 +493,7 @@ def GetGenericsFromChainedNodes(
else:
generic = nodes.Get_Chain(generic)
- yield GenericConstantInterfaceItem.parse(generic, furtherIdentifiers)
+ yield GenericConstantInterfaceItem.parse(parseNode, furtherIdentifiers)
furtherIdentifiers.clear()
continue
else: