From f0517014231ee735c180a3150b55b878f6af763d Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 21 Jun 2021 19:19:50 +0200 Subject: Handle Physical...Literals --- pyGHDL/dom/DesignUnit.py | 21 +++++++++++---------- pyGHDL/dom/Literal.py | 24 ++++++++++++++++++++++++ pyGHDL/dom/_Translate.py | 6 ++++++ pyGHDL/dom/formatting/prettyprint.py | 7 +++++-- 4 files changed, 46 insertions(+), 12 deletions(-) diff --git a/pyGHDL/dom/DesignUnit.py b/pyGHDL/dom/DesignUnit.py index 53cc03395..ce93bda3e 100644 --- a/pyGHDL/dom/DesignUnit.py +++ b/pyGHDL/dom/DesignUnit.py @@ -42,13 +42,16 @@ This module contains all DOM classes for VHDL's design units (:class:`context StringBuffer: buffer = [] prefix = " " * level - buffer.append("{prefix}- Component: {name}".format(name=component.Name, prefix=prefix)) + buffer.append( + "{prefix}- Component: {name}".format(name=component.Name, prefix=prefix) + ) buffer.append("{prefix} Generics:".format(prefix=prefix)) for generic in component.GenericItems: for line in self.formatGeneric(generic, level + 1): -- cgit v1.2.3