Skip to content

Commit c6c2b60

Browse files
authored
v0.20.2
2 parents 9118912 + b3c3d8e commit c6c2b60

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

pyVHDLModel/SyntaxModel.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ def IndexPackages(self):
10131013
def IndexArchitectures(self):
10141014
for architectures in self._architectures.values():
10151015
for architecture in architectures.values():
1016-
architecture.IndexArchitecture()
1016+
architecture.Index()
10171017

10181018
def __str__(self):
10191019
return f"VHDL Library: '{self.Identifier}'"
@@ -2853,12 +2853,12 @@ def Statements(self) -> List[SequentialStatement]:
28532853

28542854
@export
28552855
class Context(PrimaryUnit):
2856-
_references: List[Union[LibraryClause, UseClause, ContextReference]]
2856+
_references: List[ContextUnion]
28572857
_libraryReferences: List[LibraryClause]
28582858
_packageReferences: List[UseClause]
28592859
_contextReferences: List[ContextReference]
28602860

2861-
def __init__(self, identifier: str, references: Iterable[Union[LibraryClause, UseClause, ContextReference]] = None, documentation: str = None):
2861+
def __init__(self, identifier: str, references: Iterable[ContextUnion] = None, documentation: str = None):
28622862
super().__init__(identifier, documentation)
28632863

28642864
self._references = []
@@ -3406,6 +3406,10 @@ def SelectExpression(self) -> ExpressionUnion:
34063406
def Cases(self) -> List[GenerateCase]:
34073407
return self._cases
34083408

3409+
def Index(self):
3410+
for case in self._cases:
3411+
case.Index()
3412+
34093413

34103414
@export
34113415
class ForGenerateStatement(GenerateStatement, ConcurrentDeclarations, ConcurrentStatements):

pyVHDLModel/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
__email__ = "[email protected]"
4040
__copyright__ = "2016-2022, Patrick Lehmann"
4141
__license__ = "Apache License, Version 2.0"
42-
__version__ = "0.20.1"
42+
__version__ = "0.20.2"
4343

4444

4545
from enum import unique, Enum, Flag, auto
@@ -50,13 +50,8 @@
5050
from pyTooling.Decorators import export
5151

5252

53-
SimpleOrAttribute = Union['SimpleName', 'AttributeName']
54-
5553
SubtypeOrSymbol = Union['Subtype', 'SubtypeSymbol']
5654

57-
ConstantOrSymbol = Union['Constant', 'ConstantSymbol']
58-
VariableOrSymbol = Union['Variable', 'VariableSymbol']
59-
SignalOrSymbol = Union['Signal', 'SignalSymbol']
6055

6156
ConstraintUnion = Union[
6257
'RangeExpression',
@@ -69,9 +64,7 @@
6964
'QualifiedExpression',
7065
'FunctionCall',
7166
'TypeConversion',
72-
ConstantOrSymbol,
73-
VariableOrSymbol,
74-
SignalOrSymbol,
67+
# ConstantOrSymbol, TODO: ObjectSymbol
7568
'Literal',
7669
]
7770

0 commit comments

Comments
 (0)