pyGHDL.dom.Symbol

This module implements derived symbol classes from pyVHDLModel.Symbol.

Classes


Classes

class pyGHDL.dom.Symbol.Symbol(identifierNode, name, possibleReferences)[source]

Generic reference (name) to a language entity where no single, fixed PossibleReference value fits - e.g. an alias’s target, which may or may not be restricted to an object depending on whether a subtype indication is present.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.Symbol.

Inheritance

Inheritance diagram of Symbol

Parameters:
__init__(identifierNode, name, possibleReferences)[source]

Initializes a symbol.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the language entity this symbol stands for.

  • possibleReferences (PossibleReference) – An enumeration to filter possible references.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()[source]

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()[source]

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()[source]

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.LibraryReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to a library.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.LibraryReferenceSymbol.

Example

library ieee;
--      ^^^^

Inheritance

Inheritance diagram of LibraryReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to a library.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the library.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Library: Library | None

Property to access the library (_reference).

Returns:

The library, or None if not set.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.PackageReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to a package.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.PackageReferenceSymbol.

Example

use ieee.numeric_std;
--  ^^^^^^^^^^^^^^^^

Inheritance

Inheritance diagram of PackageReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to a package.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the package.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Package: Package | None

Property to access the package (_reference).

Returns:

The package, or None if not set.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ModeViewSymbol(identifierNode, name)[source]

Represents a reference (name) to a mode view declaration.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ModeViewSymbol.

Example

port (p : view MyView);
--          ^^^^^^

Inheritance

Inheritance diagram of ModeViewSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference to a mode view (VHDL-2019).

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the mode view.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property ModeView: ModeViewDeclaration | None

Property to access the mode view (_reference).

Returns:

The mode view, or None if not set.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.SubprogramReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to a subprogram (procedure or function).

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.SubprogramReferenceSymbol.

Example

function f is new g generic map (...);
--                  ^

Inheritance

Inheritance diagram of SubprogramReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference to a subprogram.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the subprogram.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Subprogram: Subprogram | None

Property to access the subprogram (_reference).

Returns:

The subprogram, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ConfigurationSymbol(identifierNode, name)[source]

Represents a reference (name) to a configuration declaration, e.g. in an entity aspect of a binding indication.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ConfigurationSymbol.

Example

for U1 : comp use configuration work.cfg;
--                              ^^^^^^^

Inheritance

Inheritance diagram of ConfigurationSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference to a configuration.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the configuration.

Return type:

None

property Configuration: Configuration | None

Property to access the configuration (_reference).

Returns:

The configuration, or None if not set.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.SignalSymbol(identifierNode, name)[source]

Represents a reference (name) to a signal, e.g. the target of a signal assignment.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.SignalSymbol.

Example

s <= '1';
--^

Inheritance

Inheritance diagram of SignalSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a signal symbol.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the signal.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Signal: Signal | None

Property to access the signal (_reference).

Returns:

The signal, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.VariableSymbol(identifierNode, name)[source]

Represents a reference (name) to a variable, e.g. the target of a variable assignment.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.VariableSymbol.

Example

v := '1';
--^

Inheritance

Inheritance diagram of VariableSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a variable symbol.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the variable.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Variable: Variable | None

Property to access the variable (_reference).

Returns:

The variable, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ContextReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to a context.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ContextReferenceSymbol.

Example

context ieee.ieee_std_context;
--      ^^^^^^^^^^^^^^^^^^^^^

Inheritance

Inheritance diagram of ContextReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to a context.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the context.

Return type:

None

property Context: Context

Property to access the context (_reference).

Returns:

The context.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.PackageMemberReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to a package member.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.PackageMemberReferenceSymbol.

Example

use ieee.numeric_std.unsigned;
--  ^^^^^^^^^^^^^^^^^^^^^^^^^

Inheritance

Inheritance diagram of PackageMemberReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to a package member.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the package member.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Member: Package | None

Property to access the member (_reference).

Returns:

The member, or None if not set.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.AllPackageMembersReferenceSymbol(identifierNode, name)[source]

Represents a reference (name) to all members in a package.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.AllPackageMembersReferenceSymbol.

Example

use ieee.numeric_std.all;
--  ^^^^^^^^^^^^^^^^^^^^

Inheritance

Inheritance diagram of AllPackageMembersReferenceSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to all package members.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the package whose members are all referenced.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Members: Package

Property to access the members (_reference).

Returns:

The members.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.EntityInstantiationSymbol(identifierNode, name)[source]

Represents a reference (name) to an entity in a direct entity instantiation.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.EntityInstantiationSymbol.

Example

inst : entity work.Counter;
--            ^^^^^^^^^^^^

Inheritance

Inheritance diagram of EntityInstantiationSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to an entity in a direct entity instantiation.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the instantiated entity.

Return type:

None

property Entity: Entity

Property to access the entity (_reference).

Returns:

The entity.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ComponentInstantiationSymbol(identifierNode, name)[source]

Represents a reference (name) to a component in a component instantiation.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ComponentInstantiationSymbol.

Example

inst : component Counter;
--               ^^^^^^^

Inheritance

Inheritance diagram of ComponentInstantiationSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to an entity in a component instantiation.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the instantiated component.

Return type:

None

property Component: Component

Property to access the component (_reference).

Returns:

The component.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ConfigurationInstantiationSymbol(identifierNode, name)[source]

Represents a reference (name) to a configuration in a configuration instantiation.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ConfigurationInstantiationSymbol.

Example

inst : configuration Counter;
--                   ^^^^^^^

Inheritance

Inheritance diagram of ConfigurationInstantiationSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to an entity in a configuration instantiation.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the instantiated configuration.

Return type:

None

property Configuration: Configuration

Property to access the configuration (_reference).

Returns:

The configuration.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.EntitySymbol(identifierNode, name)[source]

Represents a reference (name) to an entity in an architecture declaration.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.EntitySymbol.

Example

architecture rtl of Counter is
--                  ^^^^^^^
begin
end architecture;

Inheritance

Inheritance diagram of EntitySymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to an entity in an architecture declaration.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the entity the architecture belongs to.

Return type:

None

property Entity: Entity

Property to access the entity (_reference).

Returns:

The entity.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ArchitectureSymbol(identifierNode, name)[source]

An entity reference in an entity instantiation with architecture name.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ArchitectureSymbol.

Inheritance

Inheritance diagram of ArchitectureSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes an architecture symbol.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the architecture.

Return type:

None

property Architecture: Architecture

Property to access the architecture (_reference).

Returns:

The architecture.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.PackageSymbol(identifierNode, name)[source]

Represents a reference (name) to a package in a package body declaration.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.PackageSymbol.

Example

package body utilities is
--           ^^^^^^^^^
end package body;

Inheritance

Inheritance diagram of PackageSymbol

Parameters:
__init__(identifierNode, name)[source]

Initializes a reference (name) to a package in a package body declaration.

Parameters:
  • identifierNode (TypeVar(Iir, bound= c_int)) – The IIR node of the name this symbol was translated from.

  • name (Name) – The name referencing the package the package body belongs to.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Package: Package

Property to access the package (_reference).

Returns:

The package.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.SimpleSubtypeSymbol(node, subtypeName)[source]

Represents a reference to a type or subtype by its type mark.

The referenced language entity is available as Reference once resolved.

Example

signal s : bit := '0';
--         ^^^           <- Name

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.SimpleSubtypeSymbol.

Inheritance

Inheritance diagram of SimpleSubtypeSymbol

Parameters:
__init__(node, subtypeName)[source]

Initializes a simple subtype symbol.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • subtypeName (Name) – The name of the referenced subtype.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Subtype: Subtype

Property to access the subtype (_reference).

Returns:

The subtype.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ConstrainedScalarSubtypeSymbol(node, subtypeName, rng)[source]

Represents a reference to a scalar subtype narrowed by a range.

The referenced language entity is available as Reference once resolved. The range is mandatory: a type mark without a range constraint is a SimpleSubtypeSymbol.

Example

for i in integer range 0 to 3 loop
--       ^^^^^^^                     <- Name
--                     ^^^^^^        <- Constraint

A range constraint written as a range attribute is a RangeFromName referring to a RangeAttributeSymbol:

subtype index is natural range vector'range;
--               ^^^^^^^                      <- Name
--                             ^^^^^^^^^^^^   <- Constraint

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ConstrainedScalarSubtypeSymbol.

Inheritance

Inheritance diagram of ConstrainedScalarSubtypeSymbol

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

Initializes a reference to a scalar subtype narrowed by a range.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • subtypeName (Name) – The name of the referenced subtype.

  • rng (Range) – The range constraining the scalar subtype.

Return type:

None

property Constraint: Range

Read-only property to access the scalar type’s range constraint (_constraint).

Returns:

The constraint of the scalar subtype.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Subtype: Subtype

Property to access the subtype (_reference).

Returns:

The subtype.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_constraint: Range

The range constraining the scalar subtype.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ConstrainedArraySubtypeSymbol(node, subtypeName, constraints)[source]

Represents a reference to an array subtype narrowed by index ranges.

The referenced language entity is available as Reference once resolved.

Example

signal v : bit_vector(7 downto 0);
--         ^^^^^^^^^^                <- Name
--                    ^^^^^^^^^^     <- Constraints

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ConstrainedArraySubtypeSymbol.

Inheritance

Inheritance diagram of ConstrainedArraySubtypeSymbol

Parameters:
__init__(node, subtypeName, constraints)[source]

Initializes a reference to an array subtype narrowed by index ranges.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • subtypeName (Name) – The name of the referenced subtype.

  • constraints (List) – List of all index ranges, one per dimension.

Return type:

None

property Constraints: List[Range]

Read-only property to access the constraints (_constraints).

Returns:

List of constraints.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Subtype: Subtype

Property to access the subtype (_reference).

Returns:

The subtype.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_constraints: List

List of all index ranges, one per dimension.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.ConstrainedRecordSubtypeSymbol(node, subtypeName, constraints)[source]

Represents a reference to a record subtype with constrained elements.

The referenced language entity is available as Reference once resolved.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.ConstrainedRecordSubtypeSymbol.

Inheritance

Inheritance diagram of ConstrainedRecordSubtypeSymbol

Parameters:
__init__(node, subtypeName, constraints)[source]

Initializes a reference to a record subtype with constrained elements.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • subtypeName (Name) – The name of the referenced subtype.

  • constraints (Mapping) – Dictionary of the constraint per constrained record element.

Return type:

None

classmethod parse(node)[source]

Translates an IIR node to a ConstrainedRecordSubtypeSymbol.

Parameters:

node (TypeVar(Iir, bound= c_int)) – The IIR node this object is translated from.

Returns:

The translated object.

property Constraints: Dict[RecordElementSymbol, Range]

Read-only property to access the constraints (_constraints).

Returns:

Dictionary of constraints.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

property Subtype: Subtype

Property to access the subtype (_reference).

Returns:

The subtype.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_constraints: Dict[RecordElementSymbol, Any]

Dictionary of the constraint per constrained record element.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.RecordElementSymbol(node, name)[source]

Represents a reference to a record element.

The referenced language entity is available as Reference once resolved.

Example

r := (a => '1', b => '0');
--    ^                      <- Name

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.RecordElementSymbol.

Inheritance

Inheritance diagram of RecordElementSymbol

Parameters:
__init__(node, name)[source]

Initializes a reference to a record element.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • name (SimpleName) – The name referencing the record element.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.RangeAttributeSymbol(node, name)[source]

A symbol referencing a range attribute, e.g. vector'range.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.RangeAttributeSymbol.

Inheritance

Inheritance diagram of RangeAttributeSymbol

Parameters:
__init__(node, name)[source]

Initialize a range attribute symbol.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • name (Name) – The attribute name referencing the range.

Return type:

None

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.SimpleObjectOrFunctionCallSymbol(node, name)[source]

Represents a reference that is either an object or a parameterless function call.

Which of the two it is cannot be decided before the name is resolved. The referenced language entity is available as Reference once resolved.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.SimpleObjectOrFunctionCallSymbol.

Inheritance

Inheritance diagram of SimpleObjectOrFunctionCallSymbol

Parameters:
__init__(node, name)[source]

Initializes a reference that is either an object or a parameterless function call.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • name (Name) – The name referencing the object or parameterless function.

Return type:

None

classmethod parse(node)[source]

Translates an IIR node to a SimpleObjectOrFunctionCallSymbol.

Parameters:

node (TypeVar(Iir, bound= c_int)) – The IIR node this object is translated from.

Returns:

The translated object.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.

class pyGHDL.dom.Symbol.IndexedObjectOrFunctionCallSymbol(node, name)[source]

Represents a reference that is either an indexed object, a function call or a type conversion.

The referenced language entity is available as Reference once resolved.

Attention

All three are written the same way - arr(0), f(0) and integer(0) are indistinguishable as syntax, so a parser produces one shape for them and only name resolution tells them apart.

This class implements a pyGHDL.dom object derived from pyVHDLModel.Symbol.IndexedObjectOrFunctionCallSymbol.

Inheritance

Inheritance diagram of IndexedObjectOrFunctionCallSymbol

Parameters:
__init__(node, name)[source]

Initializes a reference that is either an indexed object, a function call or a type conversion.

Parameters:
  • node (TypeVar(Iir, bound= c_int)) – The IIR node this object was translated from.

  • name (Name) – The name referencing the object, function or type being converted.

Return type:

None

classmethod parse(node)[source]

Translates an IIR node to an IndexedObjectOrFunctionCallSymbol.

Parameters:

node (TypeVar(Iir, bound= c_int)) – The IIR node this object is translated from.

Returns:

The translated object.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None) – An attribute class, an iterable of attribute classes, or None to accept every attribute.

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Dictionary of methods and the matching attributes attached to them.

Raises:
  • ValueError – If an element of parameter ‘predicate’ is not a sub-class of Attribute.

  • ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.

property IsResolved: bool

Check if the symbol is resolved, i.e. _reference is set.

Returns:

True, if the symbol is resolved.

property Name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

Read-only property to access the name (_name).

Returns:

The name.

property Position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

Cached read-only property to access an IIR’s position in source code (_position).

If _position is None, resolve the position object from _iirNode

Returns:

The IIR’s position in the source file.

property Reference: Any | None

Read-only property to access the reference (_reference).

Returns:

The reference, or None if not set.

__bool__()

Reports whether this symbol has been resolved.

Return type:

bool

Returns:

True if the symbol references a model entity.

__repr__()

Formats a representation of the symbol.

Format: SignalSymbol: 'clk' -> <signal>, or ... -> ? while unresolved

Return type:

str

Returns:

String representation of the symbol.

__str__()

Formats the symbol.

Format: the referenced model entity once resolved, else the name plus ?

Return type:

str

Returns:

Formatted symbol.

_name: <pyTooling.Decorators.readonly object at 0x7d2df2337dd0>

The name to reference the language entity.

_possibleReferences: PossibleReference

An enumeration to filter possible references.

_reference: Any | None

The resolved language entity, otherwise None.

_iirNode: Iir

The IIR node in libghdl’s tree this DOM object was translated from.

_position: <pyTooling.Decorators.readonly object at 0x7d2df247c1d0>

The IIR node’s position in the source file, resolved on first access and then cached.