aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl/sem.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/vhdl/sem.py')
-rw-r--r--pyGHDL/libghdl/vhdl/sem.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/pyGHDL/libghdl/vhdl/sem.py b/pyGHDL/libghdl/vhdl/sem.py
index 751611cbe..24a9b44c3 100644
--- a/pyGHDL/libghdl/vhdl/sem.py
+++ b/pyGHDL/libghdl/vhdl/sem.py
@@ -7,12 +7,13 @@
# |_| |___/ |___/
# =============================================================================
# Authors: Tristan Gingold
+# Patrick Lehmann
#
-# Package package: Python binding and low-level API for shared library 'libghdl'.
+# Package module: Python binding and low-level API for shared library 'libghdl'.
#
# License:
# ============================================================================
-# Copyright (C) 2019-2020 Tristan Gingold
+# Copyright (C) 2019-2021 Tristan Gingold
#
# GHDL is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
@@ -32,7 +33,19 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ============================================================================
#
+from pydecor import export
+
from pyGHDL.libghdl import libghdl
-Semantic = libghdl.vhdl__sem__semantic
+@export
+def Semantic(DesignUnit) -> None:
+ """
+ Do the semantic analysis of design unit :obj:`DesignUnit`.
+
+ Also add a few node or change some nodes, when for exemple an identifier is
+ changed into an access to the type.
+
+ :param DesignUnit: Design unit to semantically analyze. Type: ``Iir_Design_Unit``
+ """
+ libghdl.vhdl__sem__semantic(DesignUnit)