pyVHDLModel.Common
This module contains parts of an abstract document language model for VHDL.
Common definitions and Mixins are used by many classes in the model as base-classes.
Classes
Statement
: AStatement
is a base-class for all statements.ProcedureCallMixin
: Undocumented.AssignmentMixin
: A mixin-class for all assignment statements.SignalAssignmentMixin
: A mixin-class for all signal assignment statements.VariableAssignmentMixin
: A mixin-class for all variable assignment statements.
Classes
- class pyVHDLModel.Common.Statement(label=None)[source]
A
Statement
is a base-class for all statements.Inheritance
- Parameters:
label (str)
- _label: Nullable[str]
The label of a model entity.
- _normalizedLabel: Nullable[str]
The normalized (lower case) label of a model entity.
- class property HasClassAttributes: bool
Check if class has Attributes.
- Returns:
True
, if the class has Attributes.
- class property HasMethodAttributes: bool
Check if class has any method with Attributes.
- Returns:
True
, if the class has any method with Attributes.
- property NormalizedLabel: str | None
Returns a model entity’s normalized (lower case) label.
- Returns:
Normalized label of a model entity.
- property Parent: ModelEntity
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _parent: ModelEntity
Reference to a parent entity in the model.
- class pyVHDLModel.Common.ProcedureCallMixin(procedureName, parameterMappings=None)[source]
Inheritance
- Parameters:
procedureName (Symbol)
parameterMappings (Iterable[ParameterAssociationItem])
- __init__(procedureName, parameterMappings=None)[source]
- Parameters:
procedureName (Symbol)
parameterMappings (Iterable[ParameterAssociationItem])
- class pyVHDLModel.Common.AssignmentMixin(target)[source]
A mixin-class for all assignment statements.
Inheritance
- Parameters:
target (Symbol)
- class pyVHDLModel.Common.SignalAssignmentMixin(target)[source]
A mixin-class for all signal assignment statements.
Inheritance
- Parameters:
target (Symbol)
- class property HasClassAttributes: bool
Check if class has Attributes.
- Returns:
True
, if the class has Attributes.
- class pyVHDLModel.Common.VariableAssignmentMixin(target, expression)[source]
A mixin-class for all variable assignment statements.
Inheritance
- Parameters:
target (Symbol)
expression (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- class property HasClassAttributes: bool
Check if class has Attributes.
- Returns:
True
, if the class has Attributes.
- class property HasMethodAttributes: bool
Check if class has any method with Attributes.
- Returns:
True
, if the class has any method with Attributes.
- __init__(target, expression)[source]
- Parameters:
target (Symbol)
expression (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)