aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/DesignUnit.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-21 19:19:50 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:26:59 +0200
commitf0517014231ee735c180a3150b55b878f6af763d (patch)
treedc44d1f8aec759ea01172b1084173cfb4a68404a /pyGHDL/dom/DesignUnit.py
parentba097bd3118db3135e75b913cae81973995777cd (diff)
downloadghdl-f0517014231ee735c180a3150b55b878f6af763d.tar.gz
ghdl-f0517014231ee735c180a3150b55b878f6af763d.tar.bz2
ghdl-f0517014231ee735c180a3150b55b878f6af763d.zip
Handle Physical...Literals
Diffstat (limited to 'pyGHDL/dom/DesignUnit.py')
-rw-r--r--pyGHDL/dom/DesignUnit.py21
1 files changed, 11 insertions, 10 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 <E
from pyGHDL.libghdl._types import Iir
from pydecor import export
-from pyVHDLModel.VHDLModel import (Entity as VHDLModel_Entity, EntityOrSymbol,
- Architecture as VHDLModel_Architecture,
- Package as VHDLModel_Package,
- PackageBody as VHDLModel_PackageBody,
- Context as VHDLModel_Context,
-Configuration as VHDLModel_Configuration,
-Component as VHDLModel_Component)
+from pyVHDLModel.VHDLModel import (
+ Entity as VHDLModel_Entity,
+ EntityOrSymbol,
+ Architecture as VHDLModel_Architecture,
+ Package as VHDLModel_Package,
+ PackageBody as VHDLModel_PackageBody,
+ Context as VHDLModel_Context,
+ Configuration as VHDLModel_Configuration,
+ Component as VHDLModel_Component,
+)
from pyGHDL.libghdl.vhdl import nodes
from pyGHDL.dom._Utils import GetNameOfNode
@@ -71,9 +74,7 @@ class Entity(VHDLModel_Entity, GHDLMixin):
name = GetNameOfNode(entityNode)
entity = cls(name)
- for generic in GetGenericsFromChainedNodes(
- nodes.Get_Generic_Chain(entityNode)
- ):
+ for generic in GetGenericsFromChainedNodes(nodes.Get_Generic_Chain(entityNode)):
entity.GenericItems.append(generic)
for port in GetPortsFromChainedNodes(nodes.Get_Port_Chain(entityNode)):