Skip to content

Commit

Permalink
Split 'ConstrainedSubTypeSymbol' into a scalar and composite variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jun 23, 2021
1 parent b0f4627 commit 173d53c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pyVHDLModel/VHDLModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,21 @@ def __init__(self, subTypeName: str):


@export
class ConstrainedSubTypeSymbol(SubTypeSymbol):
class ConstrainedScalarSubTypeSymbol(SubTypeSymbol):
_range: 'Range'

def __init__(self, subTypeName: str, range: 'Range' = None):
super().__init__(symbolName = subTypeName)
self._subType = None
self._range = range

@property
def Range(self) -> 'Range':
return self._range


@export
class ConstrainedCompositeSubTypeSymbol(SubTypeSymbol):
_constraints: List[Constraint]

def __init__(self, subTypeName: str, constraints: List[Constraint] = None):
Expand Down

0 comments on commit 173d53c

Please sign in to comment.