diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-30 13:52:30 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-07-01 06:39:47 +0200 |
commit | 301dea333ec3e28e95a43b1a4af569ebbedd6ab9 (patch) | |
tree | acd83171832402e31c6a55dafdbb47afa43a1529 /pyGHDL/dom/PSL.py | |
parent | 12a6518bf4d2e41664210b77a5416eca0d1dc7af (diff) | |
download | ghdl-301dea333ec3e28e95a43b1a4af569ebbedd6ab9.tar.gz ghdl-301dea333ec3e28e95a43b1a4af569ebbedd6ab9.tar.bz2 ghdl-301dea333ec3e28e95a43b1a4af569ebbedd6ab9.zip |
Added package declarations inside of declarations.
Added PSL Default clock (dummy).
Added Disconnect specification (dummy).
Diffstat (limited to 'pyGHDL/dom/PSL.py')
-rw-r--r-- | pyGHDL/dom/PSL.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pyGHDL/dom/PSL.py b/pyGHDL/dom/PSL.py index dd859e5b3..6c4ba76b3 100644 --- a/pyGHDL/dom/PSL.py +++ b/pyGHDL/dom/PSL.py @@ -39,12 +39,14 @@ This module contains all DOM classes for VHDL's design units (:class:`context <E """ +from pyGHDL.libghdl.vhdl import nodes from pydecor import export from pyVHDLModel.PSLModel import ( VerificationUnit as VHDLModel_VerificationUnit, VerificationProperty as VHDLModel_VerificationProperty, VerificationMode as VHDLModel_VerificationMode, + DefaultClock as VHDLModel_DefaultClock, ) from pyGHDL.libghdl._types import Iir @@ -110,3 +112,22 @@ class VerificationMode(VHDLModel_VerificationMode, DOMMixin): # FIXME: needs an implementation return cls(vmodeNode, name) + + +@export +class DefaultClock(VHDLModel_DefaultClock, DOMMixin): + def __init__( + self, + node: Iir, + identifier: str, + ): + super().__init__(identifier) + DOMMixin.__init__(self, node) + + @classmethod + def parse(cls, defaultClockNode: Iir): + name = GetNameOfNode(defaultClockNode) + + # FIXME: needs an implementation + + return cls(defaultClockNode, name) |