From 87e356ef6c674393bba497019db13c90f2e8bd86 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 29 Jun 2021 14:40:22 +0200 Subject: Reworked scalar types created from ranges. --- pyGHDL/dom/formatting/prettyprint.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pyGHDL/dom/formatting/prettyprint.py') 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): -- cgit v1.2.3