diff --git a/pyVHDLModel/PSLModel.py b/pyVHDLModel/PSLModel.py index 14cef8037..0412384ba 100644 --- a/pyVHDLModel/PSLModel.py +++ b/pyVHDLModel/PSLModel.py @@ -78,4 +78,12 @@ def __init__(self, identifier: str): @export class DefaultClock(PSLEntity): - pass + _identifier: str + + def __init__(self, identifier: str): + super().__init__() + self._identifier = identifier + + @property + def Identifier(self) -> str: + return self._identifier diff --git a/pyVHDLModel/VHDLModel.py b/pyVHDLModel/VHDLModel.py index 13692d71a..19cacf1c5 100644 --- a/pyVHDLModel/VHDLModel.py +++ b/pyVHDLModel/VHDLModel.py @@ -1982,17 +1982,35 @@ def Subtype(self): @export class AttributeSpecification(ModelEntity): + _identifiers: List[Name] _attribute: Name + _entityClass: EntityClass + _expression: Expression - def __init__(self, attribute: Name): + def __init__(self, identifiers: List[Name], attribute: Name, entityClass: EntityClass, expression: Expression): super().__init__() + self._identifiers = identifiers self._attribute = attribute + self._entityClass = entityClass + self._expression = expression @property - def Attribute(self) -> Attribute: + def Identifiers(self) -> List[Name]: + return self._identifiers + + @property + def Attribute(self) -> Name: return self._attribute + @property + def EntityClass(self) -> EntityClass: + return self._entityClass + + @property + def Expression(self) -> Expression: + return self._expression + @export class InterfaceItem: