pyGHDL.dom.Type

Classes

  • IncompleteType: BaseType is the base-class of all type entities in this model.

  • EnumeratedType: A ScalarType is a base-class for all scalar types.

  • IntegerType: A RangedScalarType is a base-class for all scalar types with a range.

  • PhysicalType: A RangedScalarType is a base-class for all scalar types with a range.

  • ArrayType: A CompositeType 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 multiple

  • RecordType: A CompositeType 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

Inheritance diagram of IncompleteType

Parameters:
  • node (Iir) –

  • identifier (str) –

__init__(node, identifier)[source]

Initializes underlying BaseType.

Parameters:
  • identifier (str) – Name of the type.

  • node (Iir) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of EnumeratedType

Parameters:
__init__(node, identifier, literals)[source]

Initializes underlying BaseType.

Parameters:
property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of IntegerType

Parameters:
__init__(node, typeName, rng)[source]

Initializes underlying BaseType.

Parameters:
  • identifier – Name of the type.

  • node (Iir) –

  • typeName (str) –

  • rng (Union[Range, Name]) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of PhysicalType

Parameters:
__init__(node, typeName, rng, primaryUnit, units)[source]

Initializes underlying BaseType.

Parameters:
property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of ArrayType

Parameters:
  • node (Iir) –

  • identifier (str) –

  • indices (List) –

  • elementSubtype (Union[Subtype, SubtypeSymbol]) –

__init__(node, identifier, indices, elementSubtype)[source]

Initializes underlying BaseType.

Parameters:
  • identifier (str) – Name of the type.

  • node (Iir) –

  • indices (List) –

  • elementSubtype (Union[Subtype, SubtypeSymbol]) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of RecordTypeElement

Parameters:
__init__(node, identifiers, subtype)[source]

Initializes a VHDL model entity.

Parameters:
property Identifiers: Tuple[str]

Returns a model entity’s tuple of identifiers (names).

Return type:

Tuple[str]

Returns:

Tuple of identifiers.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifiers: Tuple[str]

A list of identifiers.

class pyGHDL.dom.Type.RecordType(node, identifier, elements=None)[source]

Inheritance

Inheritance diagram of RecordType

Parameters:
__init__(node, identifier, elements=None)[source]

Initializes underlying BaseType.

Parameters:
property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of ProtectedType

Parameters:
__init__(node, identifier, methods=None)[source]

Initializes underlying BaseType.

Parameters:
property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of ProtectedTypeBody

Parameters:
__init__(node, identifier, declaredItems=None)[source]

Initializes underlying BaseType.

Parameters:
property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of AccessType

Parameters:
  • node (Iir) –

  • identifier (str) –

  • designatedSubtype (Union[Subtype, SubtypeSymbol]) –

__init__(node, identifier, designatedSubtype)[source]

Initializes underlying BaseType.

Parameters:
  • identifier (str) – Name of the type.

  • node (Iir) –

  • designatedSubtype (Union[Subtype, SubtypeSymbol]) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The 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

Inheritance diagram of FileType

Parameters:
  • node (Iir) –

  • identifier (str) –

  • designatedSubtype (Union[Subtype, SubtypeSymbol]) –

__init__(node, identifier, designatedSubtype)[source]

Initializes underlying BaseType.

Parameters:
  • identifier (str) – Name of the type.

  • node (Iir) –

  • designatedSubtype (Union[Subtype, SubtypeSymbol]) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The identifier of a model entity.

_documentation: Nullable[str]

The associated documentation of a model entity.

class pyGHDL.dom.Type.Subtype(node, subtypeName)[source]

Inheritance

Inheritance diagram of Subtype

Parameters:
  • node (Iir) –

  • subtypeName (str) –

__init__(node, subtypeName)[source]

Initializes underlying BaseType.

Parameters:
  • identifier – Name of the type.

  • node (Iir) –

  • subtypeName (str) –

property Documentation: Optional[str]

Returns a model entity’s associated documentation.

Return type:

Optional[str]

Returns:

Associated documentation of a model entity.

property Identifier: str

Returns a model entity’s identifier (name).

Return type:

str

Returns:

Name of a model entity.

property Parent: ModelEntity

Returns a reference to the parent entity.

Return type:

ModelEntity

Returns:

Parent entity.

_parent: ModelEntity

Reference to a parent entity in the model.

_identifier: str

The identifier of a model entity.

_documentation: Nullable[str]

The associated documentation of a model entity.