Skip to content

Commit 24d7919

Browse files
authored
v0.11.1
2 parents 647afcf + eaf1979 commit 24d7919

File tree

8 files changed

+348
-157
lines changed

8 files changed

+348
-157
lines changed

doc/LanguageModel/DesignUnits.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ types). An entity's list of statements is called body items.
8080
8181
# inherited from MixinDesignUnitWithContext
8282
@property
83-
def LibraryReferences(self) -> List[Library]:
83+
def LibraryReferences(self) -> List[LibraryStatement]:
8484
8585
@property
8686
def PackageReferences(self) -> List[UseClause]:
@@ -128,7 +128,7 @@ Package
128128
129129
# inherited from MixinDesignUnitWithContext
130130
@property
131-
def LibraryReferences(self) -> List[Library]:
131+
def LibraryReferences(self) -> List[LibraryStatement]:
132132
133133
@property
134134
def PackageReferences(self) -> List[UseClause]:
@@ -175,7 +175,7 @@ Architeture
175175
176176
# inherited from MixinDesignUnitWithContext
177177
@property
178-
def LibraryReferences(self) -> List[Library]:
178+
def LibraryReferences(self) -> List[LibraryStatement]:
179179
180180
@property
181181
def PackageReferences(self) -> List[UseClause]:
@@ -220,7 +220,7 @@ Package Body
220220
221221
# inherited from MixinDesignUnitWithContext
222222
@property
223-
def LibraryReferences(self) -> List[Library]:
223+
def LibraryReferences(self) -> List[LibraryStatement]:
224224
225225
@property
226226
def PackageReferences(self) -> List[UseClause]:

doc/LanguageModel/Miscellaneous.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ a design has the two child nodes: ``Libraries`` and ``Documents``. Each is a
3636
3737
# from Design
3838
@property
39-
def Libraries(self) -> List[Library]:
39+
def Libraries(self) -> List[LibraryStatement]:
4040
4141
@property
4242
def Documents(self) -> List[Document]:
@@ -45,24 +45,24 @@ a design has the two child nodes: ``Libraries`` and ``Documents``. Each is a
4545
4646
.. _vhdlmodel-library:
4747

48-
Library
49-
=======
48+
LibraryStatement
49+
================
5050

5151
A library contains multiple *design units*. Each design unit listed in a library
5252
is a *primary* design unit like: ``configuration``, ``entity``, ``package`` or
5353
``context``.
5454

55-
**Condensed definition of class** :class:`~pyVHDLModel.VHDLModel.Library`:
55+
**Condensed definition of class** :class:`~pyVHDLModel.VHDLModel.LibraryStatement`:
5656

5757
.. code-block:: Python
5858
5959
@export
60-
class Library(ModelEntity):
60+
class LibraryStatement(ModelEntity):
6161
# inherited from ModelEntity
6262
@property
6363
def Parent(self) -> ModelEntity:
6464
65-
# from Library
65+
# from LibraryStatement
6666
@property
6767
def Contexts(self) -> List[Context]:
6868

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _LatestTagName():
3737

3838
# The full version, including alpha/beta/rc tags
3939
version = "0.11" # The short X.Y version.
40-
release = "0.11.0" # The full version, including alpha/beta/rc tags.
40+
release = "0.11.1" # The full version, including alpha/beta/rc tags.
4141
try:
4242
if _IsUnderGitControl:
4343
latestTagName = _LatestTagName()[1:] # remove prefix "v"

pyVHDLModel/PSLModel.py

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# =============================================================================
2+
# __ ___ _ ____ _ __ __ _ _
3+
# _ __ _ \ \ / / | | | _ \| | | \/ | ___ __| | ___| |
4+
# | '_ \| | | \ \ / /| |_| | | | | | | |\/| |/ _ \ / _` |/ _ \ |
5+
# | |_) | |_| |\ V / | _ | |_| | |___| | | | (_) | (_| | __/ |
6+
# | .__/ \__, | \_/ |_| |_|____/|_____|_| |_|\___/ \__,_|\___|_|
7+
# |_| |___/
8+
# ==============================================================================
9+
# Authors: Patrick Lehmann
10+
#
11+
# Python module: An abstract PSL language model.
12+
#
13+
# Description:
14+
# ------------------------------------
15+
# TODO:
16+
#
17+
# License:
18+
# ==============================================================================
19+
# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany
20+
# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany
21+
#
22+
# Licensed under the Apache License, Version 2.0 (the "License");
23+
# you may not use this file except in compliance with the License.
24+
# You may obtain a copy of the License at
25+
#
26+
# http://www.apache.org/licenses/LICENSE-2.0
27+
#
28+
# Unless required by applicable law or agreed to in writing, software
29+
# distributed under the License is distributed on an "AS IS" BASIS,
30+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
# See the License for the specific language governing permissions and
32+
# limitations under the License.
33+
#
34+
# SPDX-License-Identifier: Apache-2.0
35+
# ==============================================================================
36+
#
37+
"""
38+
This module contains a document language model for PSL.
39+
40+
:copyright: Copyright 2007-2021 Patrick Lehmann - Bötzingen, Germany
41+
:license: Apache License, Version 2.0
42+
"""
43+
# load dependencies
44+
from pydecor.decorators import export
45+
46+
from pyVHDLModel.VHDLModel import PrimaryUnit, ModelEntity
47+
48+
49+
__all__ = []
50+
51+
@export
52+
class PSLPrimaryUnit(PrimaryUnit):
53+
pass
54+
55+
56+
@export
57+
class PSLEntity(ModelEntity):
58+
pass
59+
60+
61+
@export
62+
class VerificationUnit(PSLPrimaryUnit):
63+
def __init__(self, identifier: str):
64+
super().__init__(identifier)
65+
66+
67+
@export
68+
class VerificationProperty(PSLPrimaryUnit):
69+
def __init__(self, identifier: str):
70+
super().__init__(identifier)
71+
72+
73+
@export
74+
class VerificationMode(PSLPrimaryUnit):
75+
def __init__(self, identifier: str):
76+
super().__init__(identifier)
77+
78+
79+
@export
80+
class DefaultClock(PSLEntity):
81+
_identifier: str
82+
83+
def __init__(self, identifier: str):
84+
super().__init__()
85+
self._identifier = identifier
86+
87+
@property
88+
def Identifier(self) -> str:
89+
return self._identifier

0 commit comments

Comments
 (0)