pyGHDL.dom.Type
#
Classes
IncompleteType
:BaseType
is the base-class of all type entities in this model.EnumeratedType
: AScalarType
is a base-class for all scalar types.IntegerType
: ARangedScalarType
is a base-class for all scalar types with a range.PhysicalType
: ARangedScalarType
is a base-class for all scalar types with a range.ArrayType
: ACompositeType
is a base-class for all composite types.RecordTypeElement
:ModelEntity
is the base-class for all classes in the VHDL language model, except for mixin classes (see multipleRecordType
: ACompositeType
is a base-class for all composite types.ProtectedType
:BaseType
is the base-class of all type entities in this model.ProtectedTypeBody
:BaseType
is the base-class of all type entities in this model.AccessType
:BaseType
is the base-class of all type entities in this model.FileType
:BaseType
is the base-class of all type entities in this model.Subtype
:BaseType
is the base-class of all type entities in this model.
Classes
- class pyGHDL.dom.Type.IncompleteType(node, identifier)[source]#
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
- __init__(node, identifier)[source]#
Initializes underlying
BaseType
.- Parameters:
identifier (
str
) – Name of the type.node (Iir) –
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.EnumeratedType(node, identifier, literals)[source]#
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
literals (List[EnumerationLiteral]) –
- __init__(node, identifier, literals)[source]#
Initializes underlying
BaseType
.- Parameters:
identifier (
str
) – Name of the type.node (Iir) –
literals (List[EnumerationLiteral]) –
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.IntegerType(node, typeName, rng)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.PhysicalType(node, typeName, rng, primaryUnit, units)[source]#
Inheritance
- Parameters:
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.ArrayType(node, identifier, indices, elementSubtype)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.RecordTypeElement(node, identifiers, subtype)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Identifiers: Tuple[str]#
Returns a model entity’s tuple of identifiers (names).
- Returns:
Tuple of identifiers.
- property NormalizedIdentifiers: Tuple[str]#
Returns a model entity’s tuple of normalized identifiers (lower case names).
- Returns:
Tuple of normalized identifiers.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifiers: Tuple[str]#
A list of identifiers.
- _normalizedIdentifiers: Tuple[str]#
A list of normalized (lower case) identifiers.
- class pyGHDL.dom.Type.RecordType(node, identifier, elements=None)[source]#
Inheritance
- Parameters:
node (Iir) –
identifier (str) –
elements (List[RecordTypeElement]) –
- __init__(node, identifier, elements=None)[source]#
Initializes underlying
BaseType
.- Parameters:
identifier (
str
) – Name of the type.node (Iir) –
elements (List[RecordTypeElement] | None) –
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.ProtectedType(node, identifier, methods=None)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.ProtectedTypeBody(node, identifier, declaredItems=None)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.AccessType(node, identifier, designatedSubtype)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.FileType(node, identifier, designatedSubtype)[source]#
Inheritance
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.
- class pyGHDL.dom.Type.Subtype(node, subtypeName)[source]#
Inheritance
- Parameters:
node (Iir) –
subtypeName (str) –
- __init__(node, subtypeName)[source]#
Initializes underlying
BaseType
.- Parameters:
identifier – Name of the type.
node (Iir) –
subtypeName (str) –
- _parent: ModelEntity#
Reference to a parent entity in the model.
- property Documentation: str | None#
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property Identifier: str#
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property NormalizedIdentifier: str#
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property Parent: ModelEntity#
Returns a reference to the parent entity.
- Returns:
Parent entity.
- _identifier: str#
The identifier of a model entity.
- _normalizedIdentifier: str#
The normalized (lower case) identifier of a model entity.
- _documentation: Nullable[str]#
The associated documentation of a model entity.