Skip to content

Commit

Permalink
v0.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels authored Dec 30, 2022
2 parents 9118912 + b3c3d8e commit c6c2b60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
10 changes: 7 additions & 3 deletions pyVHDLModel/SyntaxModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ def IndexPackages(self):
def IndexArchitectures(self):
for architectures in self._architectures.values():
for architecture in architectures.values():
architecture.IndexArchitecture()
architecture.Index()

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

@export
class Context(PrimaryUnit):
_references: List[Union[LibraryClause, UseClause, ContextReference]]
_references: List[ContextUnion]
_libraryReferences: List[LibraryClause]
_packageReferences: List[UseClause]
_contextReferences: List[ContextReference]

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

self._references = []
Expand Down Expand Up @@ -3406,6 +3406,10 @@ def SelectExpression(self) -> ExpressionUnion:
def Cases(self) -> List[GenerateCase]:
return self._cases

def Index(self):
for case in self._cases:
case.Index()


@export
class ForGenerateStatement(GenerateStatement, ConcurrentDeclarations, ConcurrentStatements):
Expand Down
11 changes: 2 additions & 9 deletions pyVHDLModel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
__email__ = "[email protected]"
__copyright__ = "2016-2022, Patrick Lehmann"
__license__ = "Apache License, Version 2.0"
__version__ = "0.20.1"
__version__ = "0.20.2"


from enum import unique, Enum, Flag, auto
Expand All @@ -50,13 +50,8 @@
from pyTooling.Decorators import export


SimpleOrAttribute = Union['SimpleName', 'AttributeName']

SubtypeOrSymbol = Union['Subtype', 'SubtypeSymbol']

ConstantOrSymbol = Union['Constant', 'ConstantSymbol']
VariableOrSymbol = Union['Variable', 'VariableSymbol']
SignalOrSymbol = Union['Signal', 'SignalSymbol']

ConstraintUnion = Union[
'RangeExpression',
Expand All @@ -69,9 +64,7 @@
'QualifiedExpression',
'FunctionCall',
'TypeConversion',
ConstantOrSymbol,
VariableOrSymbol,
SignalOrSymbol,
# ConstantOrSymbol, TODO: ObjectSymbol
'Literal',
]

Expand Down

0 comments on commit c6c2b60

Please sign in to comment.