pyVHDLModel.Declaration

This module contains parts of an abstract document language model for VHDL.

Classes

  • EntityClass: An EntityClass is an enumeration. It represents a VHDL language entity class (entity, label, …).

  • Attribute: Represents an attribute declaration.

  • AttributeSpecification: Represents an attribute specification.

  • Alias: ModelEntity is the base-class for all classes in the VHDL language model, except for mixin classes (see multiple


Classes

class pyVHDLModel.Declaration.EntityClass(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

An EntityClass is an enumeration. It represents a VHDL language entity class (entity, label, …).

Inheritance

Inheritance diagram of EntityClass

Entity = 0

Entity

Architecture = 1

Architecture

Configuration = 2

Configuration

Procedure = 3

Procedure

Function = 4

Function

Package = 5

Package

Type = 6

Type

Subtype = 7

Subtype

Constant = 8

Constant

Signal = 9

Signal

Variable = 10

Variable

Component = 11

Component

Label = 12

Label

Literal = 13

Literal

Units = 14

Units

Group = 15

Group

File = 16

File

Property = 17

Property

Sequence = 18

Sequence

View = 19

View

Others = 20

Others

class pyVHDLModel.Declaration.Attribute(identifier, subtype, documentation=None, parent=None)[source]

Represents an attribute declaration.

Example

attribute TotalBits : natural;

Inheritance

Inheritance diagram of Attribute

Parameters:
__init__(identifier, subtype, documentation=None, parent=None)[source]

Initializes a VHDL model entity.

Parameters:
  • parent (ModelEntity) – The parent model entity of this entity.

  • identifier (str)

  • subtype (Symbol)

  • documentation (str | None)

Return type:

None

_identifier: str

The identifier of a model entity.

_normalizedIdentifier: str

The normalized (lower case) identifier of a model entity.

_documentation: Optional[str]

The associated documentation of a model entity.

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

Read-only property to access the model entity’s parent element reference in a logical hierarchy (_parent).

Returns:

Reference to the parent entity.

_parent: ModelEntity

Reference to a parent entity in the logical model hierarchy.

class pyVHDLModel.Declaration.AttributeSpecification(identifiers, attribute, entityClass, expression, documentation=None, parent=None)[source]

Represents an attribute specification.

Example

attribute TotalBits of BusType : subtype is 32;

Inheritance

Inheritance diagram of AttributeSpecification

Parameters:
__init__(identifiers, attribute, entityClass, expression, documentation=None, parent=None)[source]

Initializes a VHDL model entity.

Parameters:
Return type:

None

_documentation: Optional[str]

The associated documentation of a model entity.

property Documentation: str | None

Returns a model entity’s associated documentation.

Returns:

Associated documentation of a model entity.

property Parent: ModelEntity

Read-only property to access the model entity’s parent element reference in a logical hierarchy (_parent).

Returns:

Reference to the parent entity.

_parent: ModelEntity

Reference to a parent entity in the logical model hierarchy.

class pyVHDLModel.Declaration.Alias(identifier, documentation=None, parent=None)[source]

Inheritance

Inheritance diagram of Alias

Parameters:
_identifier: str

The identifier of a model entity.

_normalizedIdentifier: str

The normalized (lower case) identifier of a model entity.

_documentation: Optional[str]

The associated documentation of a model entity.

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

Read-only property to access the model entity’s parent element reference in a logical hierarchy (_parent).

Returns:

Reference to the parent entity.

_parent: ModelEntity

Reference to a parent entity in the logical model hierarchy.

__init__(identifier, documentation=None, parent=None)[source]

Initializes underlying BaseType.

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

  • documentation (str | None)

  • parent (ModelEntity)

Return type:

None