aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-11 21:34:34 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-11 21:38:49 +0200
commited828023f1c5607180ddd0fea2d924fe8457c41b (patch)
tree5387dcf6290ac6872044039865670cd79fe8d6d7
parent0a14cbcc82ee732aeb4a061b5dfeb1ec16a2ac95 (diff)
downloadghdl-ed828023f1c5607180ddd0fea2d924fe8457c41b.tar.gz
ghdl-ed828023f1c5607180ddd0fea2d924fe8457c41b.tar.bz2
ghdl-ed828023f1c5607180ddd0fea2d924fe8457c41b.zip
Fixed iterating architectures of an entity.
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py4
1 files changed, 2 insertions, 2 deletions
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