aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-29 14:40:22 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-01 06:39:46 +0200
commit87e356ef6c674393bba497019db13c90f2e8bd86 (patch)
tree8a245d8cd425311d547b6904bd68714bbc4d184a /pyGHDL/dom/formatting
parentac702e68dd4287e1639c9f2efe4421cf1f3a0910 (diff)
downloadghdl-87e356ef6c674393bba497019db13c90f2e8bd86.tar.gz
ghdl-87e356ef6c674393bba497019db13c90f2e8bd86.tar.bz2
ghdl-87e356ef6c674393bba497019db13c90f2e8bd86.zip
Reworked scalar types created from ranges.
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 98e17a5d0..9fb412d09 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -486,9 +486,7 @@ class PrettyPrint:
if isinstance(item, IncompleteType):
result += ""
elif isinstance(item, IntegerType):
- result += "range {left!s} to {right!s}".format(
- left=item.LeftBound, right=item.RightBound
- )
+ result += "range {range!s}".format(range=item.Range)
elif isinstance(item, EnumeratedType):
result += "(........)"
elif isinstance(item, PhysicalType):