pyVHDLModel.Instantiation
This module contains parts of an abstract document language model for VHDL.
Instantiations of packages, procedures, functions and protected types.
Classes
GenericInstantiationMixin
: Undocumented.GenericEntityInstantiationMixin
: Undocumented.SubprogramInstantiationMixin
: Undocumented.ProcedureInstantiation
:ModelEntity
is the base-class for all classes in the VHDL language model, except for mixin classes (see multipleFunctionInstantiation
:ModelEntity
is the base-class for all classes in the VHDL language model, except for mixin classes (see multiplePackageInstantiation
: A base-class for all primary design units.
Classes
- class pyVHDLModel.Instantiation.ProcedureInstantiation(identifier, documentation=None, parent=None)[source]
Inheritance
- Parameters:
identifier (str)
documentation (str | None)
parent (ModelEntity)
- 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.
- __init__(identifier, documentation=None, parent=None)
Initializes a VHDL model entity.
- Parameters:
parent (
ModelEntity
) – The parent model entity of this entity.identifier (str)
documentation (str | None)
- Return type:
None
- _documentation: Nullable[str]
The associated documentation of a model entity.
- _identifier: str
The identifier of a model entity.
- _normalizedIdentifier: str
The normalized (lower case) identifier of a model entity.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyVHDLModel.Instantiation.FunctionInstantiation(identifier, isPure=True, documentation=None, parent=None)[source]
Inheritance
- Parameters:
identifier (str)
isPure (bool)
documentation (str | None)
parent (ModelEntity)
- 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.
- __init__(identifier, isPure=True, documentation=None, parent=None)
Initializes a VHDL model entity.
- Parameters:
parent (
ModelEntity
) – The parent model entity of this entity.identifier (str)
isPure (bool)
documentation (str | None)
- Return type:
None
- _documentation: Nullable[str]
The associated documentation of a model entity.
- _identifier: str
The identifier of a model entity.
- _normalizedIdentifier: str
The normalized (lower case) identifier of a model entity.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyVHDLModel.Instantiation.PackageInstantiation(identifier, uninstantiatedPackage, documentation=None, parent=None)[source]
Inheritance
- Parameters:
identifier (str)
uninstantiatedPackage (PackageReferenceSymbol)
documentation (str | None)
parent (ModelEntity)
- __init__(identifier, uninstantiatedPackage, documentation=None, parent=None)[source]
Initializes a design unit.
- Parameters:
identifier (
str
) – Identifier (name) of the design unit.contextItems – A sequence of library, use or context clauses.
documentation (
Optional
[str
]) – Associated documentation of the design unit.parent (
ModelEntity
) – Reference to the logical parent in the model hierarchy.uninstantiatedPackage (PackageReferenceSymbol)
- Return type:
None
- property ContextItems: List[LibraryClause | UseClause | ContextReference]
Read-only property to access the sequence of all context items comprising library, use and context clauses (
_contextItems
).- Returns:
Sequence of context items.
- property ContextReferences: List[ContextReference]
Read-only property to access the sequence of context clauses (
_contextReferences
).- Returns:
Sequence of context clauses.
- property DependencyVertex: Vertex
Read-only property to access the corresponding dependency vertex (
_dependencyVertex
).The dependency vertex references this design unit by its value field.
- Returns:
The corresponding dependency vertex.
- property Documentation: str | None
Returns a model entity’s associated documentation.
- Returns:
Associated documentation of a model entity.
- property HierarchyVertex: Vertex
Read-only property to access the corresponding hierarchy vertex (
_hierarchyVertex
).The hierarchy vertex references this design unit by its value field.
- Returns:
The corresponding hierarchy vertex.
- property Identifier: str
Returns a model entity’s identifier (name).
- Returns:
Name of a model entity.
- property LibraryReferences: List[LibraryClause]
Read-only property to access the sequence of library clauses (
_libraryReferences
).- Returns:
Sequence of library clauses.
- property NormalizedIdentifier: str
Returns a model entity’s normalized identifier (lower case name).
- Returns:
Normalized name of a model entity.
- property PackageReferences: List[UseClause]
Read-only property to access the sequence of use clauses (
_packageReferences
).- Returns:
Sequence of use clauses.
- 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.
- _contextItems: List['ContextUnion']
List of all context items (library, use and context clauses).
- _contextReferences: List['ContextReference']
List of context clauses.
- _dependencyVertex: Vertex[None, None, str, 'DesignUnit', None, None, None, None, None, None, None, None, None, None, None, None, None]
Reference to the vertex in the dependency graph representing the design unit.
This reference is set byCreateDependencyGraph()
.
- _document: Document
The VHDL library, the design unit was analyzed into.
- _documentation: Nullable[str]
The associated documentation of a model entity.
- _hierarchyVertex: Vertex[None, None, str, 'DesignUnit', None, None, None, None, None, None, None, None, None, None, None, None, None]
The vertex in the hierarchy graph
- _identifier: str
The identifier of a model entity.
- _libraryReferences: List['LibraryClause']
List of library clauses.
- _normalizedIdentifier: str
The normalized (lower case) identifier of a model entity.
- _packageReferences: List['UseClause']
List of use clauses.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _referencedContexts: Dict[str, 'Context']
Referenced contexts based on explicit context references or implicit inheritance
- _referencedLibraries: Dict[str, 'Library']
Referenced libraries based on explicit library clauses or implicit inheritance
- _referencedPackages: Dict[str, Dict[str, 'Package']]
Referenced packages based on explicit use clauses or implicit inheritance