aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Type.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/dom/Type.py')
-rw-r--r--pyGHDL/dom/Type.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pyGHDL/dom/Type.py b/pyGHDL/dom/Type.py
new file mode 100644
index 000000000..df143b4d0
--- /dev/null
+++ b/pyGHDL/dom/Type.py
@@ -0,0 +1,21 @@
+from pydecor import export
+
+from pyVHDLModel.VHDLModel import (
+ IntegerType as VHDLModel_IntegerType,
+ SubType as VHDLModel_SubType,
+ Expression,
+)
+
+
+@export
+class IntegerType(VHDLModel_IntegerType):
+ def __init__(self, typeName: str, leftBound: Expression, rightBound: Expression):
+ super().__init__(typeName)
+ self._leftBound = leftBound
+ self._rightBound = rightBound
+
+
+@export
+class SubType(VHDLModel_SubType):
+ def __init__(self, subtypeName: str):
+ super().__init__(subtypeName)