From 5fae449cbac688b5779f0ef2ec2052bb3f9bed00 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 26 Jul 2021 01:21:36 +0200 Subject: Needed for changes in prettyprint for the Identifier(s) change in pyVHDLModel. --- pyGHDL/dom/formatting/prettyprint.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pyGHDL/dom/formatting') diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 524ae9ab9..20355db24 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -340,7 +340,7 @@ class PrettyPrint: else: raise PrettyPrintException( "Unhandled generic kind for generic '{name}'.".format( - name=generic.Identifier + name=generic.Identifiers[0] ) ) @@ -351,7 +351,9 @@ class PrettyPrint: return self.formatPortSignal(port, level) else: raise PrettyPrintException( - "Unhandled port kind for port '{name}'.".format(name=port.Identifier) + "Unhandled port kind for port '{name}'.".format( + name=port.Identifiers[0] + ) ) def formatGenericConstant( @@ -417,9 +419,9 @@ class PrettyPrint: buffer.append( "{prefix}- constant {name} : {subtype} := {expr}".format( prefix=prefix, - name=item.Identifier, + name=", ".join(item.Identifiers), subtype=self.formatSubtypeIndication( - item.Subtype, "constant", item.Identifier + item.Subtype, "constant", item.Identifiers[0] ), expr=str(item.DefaultExpression), ) -- cgit v1.2.3