From ed828023f1c5607180ddd0fea2d924fe8457c41b Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 11 Apr 2023 21:34:34 +0200 Subject: Fixed iterating architectures of an entity. --- pyGHDL/dom/formatting/prettyprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyGHDL') diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 5be27492d..949adf99f 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -144,7 +144,7 @@ class PrettyPrint: buffer.append(f"{prefix} - {package.Identifier} instantiate from {package.PackageReference}") buffer.append(f"{prefix}Entities ({len(library.Entities)}):") for entity in library.Entities.values(): - buffer.append(f"{prefix} - {entity.Identifier}({', '.join([a.Identifier for a in entity.Architectures])})") + buffer.append(f"{prefix} - {entity.Identifier}({', '.join([a.Identifier for a in entity.Architectures.values()])})") buffer.append(f"{prefix}Configurations ({len(library.Configurations)}):") for configuration in library.Configurations.values(): buffer.append(f"{prefix} - {configuration.Identifier}") @@ -213,7 +213,7 @@ class PrettyPrint: for item in entity.Statements: buffer.append(f"{prefix} ...") buffer.append(f"{prefix} Architectures:") - for item in entity.Architectures: + for item in entity.Architectures.values(): buffer.append(f"{prefix} - {item.Identifier}") return buffer -- cgit v1.2.3