diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-01-02 20:00:39 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-01-02 22:05:15 +0100 |
commit | d83a36c022cf833e280e43a0a7faaa5fdafc8cae (patch) | |
tree | 1999e1d65b11d810503e97321ecc1ee28f5b41e0 /pyGHDL/dom | |
parent | 7c80587d3c0edfc5f11bc1004db80498bca5c05c (diff) | |
download | ghdl-d83a36c022cf833e280e43a0a7faaa5fdafc8cae.tar.gz ghdl-d83a36c022cf833e280e43a0a7faaa5fdafc8cae.tar.bz2 ghdl-d83a36c022cf833e280e43a0a7faaa5fdafc8cae.zip |
Make pyGHDL.dom compatible to latest pyVHDLModel.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/Common.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pyGHDL/dom/Common.py b/pyGHDL/dom/Common.py index adccbe38a..5a8ac793f 100644 --- a/pyGHDL/dom/Common.py +++ b/pyGHDL/dom/Common.py @@ -38,7 +38,7 @@ """ from pydecor import export -from pyVHDLModel.VHDLModel import Modes +from pyVHDLModel.VHDLModel import Mode from pyGHDL.libghdl import name_table from pyGHDL.libghdl.vhdl import nodes @@ -64,11 +64,11 @@ class GHDLException(GHDLBaseException): @export class GHDLMixin: _MODE_TRANSLATION = { - nodes.Iir_Mode.In_Mode: Modes.In, - nodes.Iir_Mode.Out_Mode: Modes.Out, - nodes.Iir_Mode.Inout_Mode: Modes.InOut, - nodes.Iir_Mode.Buffer_Mode: Modes.Buffer, - nodes.Iir_Mode.Linkage_Mode: Modes.Linkage + nodes.Iir_Mode.In_Mode: Mode.In, + nodes.Iir_Mode.Out_Mode: Mode.Out, + nodes.Iir_Mode.Inout_Mode: Mode.InOut, + nodes.Iir_Mode.Buffer_Mode: Mode.Buffer, + nodes.Iir_Mode.Linkage_Mode: Mode.Linkage } @classmethod |