pyGHDL.dom.Names#

Classes

  • SimpleName: A simple name is a name made from a single word.

  • ParenthesisName: Name is the base-class for all names in the VHDL language model.

  • IndexedName: Name is the base-class for all names in the VHDL language model.

  • SlicedName: Name is the base-class for all names in the VHDL language model.

  • SelectedName: A selected name is a name made from multiple words separated by a dot (.).

  • AttributeName: Name is the base-class for all names in the VHDL language model.

  • AllName: The all name represents the reserved word all used in names.

  • OpenName: The open name represents the reserved word open.


Classes

class pyGHDL.dom.Names.SimpleName(node, identifier)[source]#

Inheritance

Inheritance diagram of SimpleName

Parameters:
  • node (Iir) –

  • identifier (str) –

__init__(node, identifier)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • identifier (str) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.ParenthesisName(node, prefix, associations)[source]#

Inheritance

Inheritance diagram of ParenthesisName

Parameters:
  • node (Iir) –

  • prefix (Name) –

  • associations (List) –

__init__(node, prefix, associations)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • prefix (Name) –

  • associations (List) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.IndexedName(node, identifier)[source]#

Inheritance

Inheritance diagram of IndexedName

Parameters:
  • node (Iir) –

  • identifier (str) –

__init__(node, identifier)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • identifier (str) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.SlicedName(node, identifier)[source]#

Inheritance

Inheritance diagram of SlicedName

Parameters:
  • node (Iir) –

  • identifier (str) –

__init__(node, identifier)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • identifier (str) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.SelectedName(node, identifier, prefix)[source]#

Inheritance

Inheritance diagram of SelectedName

Parameters:
  • node (Iir) –

  • identifier (str) –

  • prefix (Name) –

__init__(node, identifier, prefix)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • identifier (str) –

  • prefix (Name) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.AttributeName(node, identifier, prefix)[source]#

Inheritance

Inheritance diagram of AttributeName

Parameters:
  • node (Iir) –

  • identifier (str) –

  • prefix (Name) –

__init__(node, identifier, prefix)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • identifier (str) –

  • prefix (Name) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.AllName(node, prefix)[source]#

Inheritance

Inheritance diagram of AllName

Parameters:
  • node (Iir) –

  • prefix (Name) –

__init__(node, prefix)[source]#

Initializes a VHDL model entity.

Parameters:
  • node (Iir) –

  • prefix (Name) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()#

Return str(self).

Return type:

str

class pyGHDL.dom.Names.OpenName(node)[source]#

Inheritance

Inheritance diagram of OpenName

Parameters:

node (Iir) –

__init__(node)[source]#

Initializes a VHDL model entity.

Parameters:

node (Iir) –

_parent: ModelEntity#

Reference to a parent entity in the model.

property HasPrefix: bool#

Returns true, if the name has a prefix.

This is true for all names except simple names.

Returns:

True, if the name as a prefix.

property Identifier: str#

The identifier the name is referencing.

Returns:

The referenced identifier.

property NormalizedIdentifier: str#

The normalized identifier the name is referencing.

Returns:

The referenced identifier (normalized).

property Parent: ModelEntity#

Returns a reference to the parent entity.

Returns:

Parent entity.

property Prefix: Name | None#

The name’s prefix in a chain of names.

Returns:

The name left from current name, if not a simple name, otherwise None.

property Root: Name#

The root (left-most) element in a chain of names.

In case the name is a simple name, the root points to the name itself.

Returns:

The name’s root element.

__repr__()#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str