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


Classes

class pyVHDLModel.Common.Statement(label=None)[source]

A Statement is a base-class for all statements.

Inheritance

Inheritance diagram of Statement

Parameters:

label (str)

__init__(label=None)[source]

Initializes a VHDL model entity.

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 Label: str | None

Returns a model entity’s label.

Returns:

Label of a model entity.

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

Inheritance diagram of ProcedureCallMixin

Parameters:
__init__(procedureName, parameterMappings=None)[source]
Parameters:
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.

class pyVHDLModel.Common.AssignmentMixin(target)[source]

A mixin-class for all assignment statements.

Inheritance

Inheritance diagram of AssignmentMixin

Parameters:

target (Symbol)

__init__(target)[source]
Parameters:

target (Symbol)

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.

class pyVHDLModel.Common.SignalAssignmentMixin(target)[source]

A mixin-class for all signal assignment statements.

Inheritance

Inheritance diagram of SignalAssignmentMixin

Parameters:

target (Symbol)

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)
Parameters:

target (Symbol)

class pyVHDLModel.Common.VariableAssignmentMixin(target, expression)[source]

A mixin-class for all variable assignment statements.

Inheritance

Inheritance diagram of VariableAssignmentMixin

Parameters:
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: