pyGHDL.dom._Utils

Functions


Functions

pyGHDL.dom._Utils.CheckForErrors()[source]

Check if an error occurred in libghdl and raise an exception if so.

Behavior:

  1. read the error buffer and clear it afterwards

  2. convert it into a list of internal messages for a LibGHDLException

  3. raise a DOMException with a nested LibGHDLException as a __cause__.

Raises:

DOMException – If an error occurred in libghdl.

Return type:

None

pyGHDL.dom._Utils.GetIirKindOfNode(node)[source]

Return the kind of a node in the IIR tree.

Return type:

Iir_Kind

Returns:

The IIR kind of a node.

Raises:

ValueError – If parameter node is Null_Iir.

Parameters:

node (Iir) –

pyGHDL.dom._Utils.GetNameOfNode(node)[source]

Return the Python string from node node identifier.

Raises:

ValueError – If parameter node is Null_Iir.

Return type:

str

Parameters:

node (Iir) –

pyGHDL.dom._Utils.GetDocumentationOfNode(node)[source]
Return type:

str

Parameters:

node (Iir) –

pyGHDL.dom._Utils.GetModeOfNode(node)[source]

Return the mode of a node.

Raises:
Return type:

Mode

Parameters:

node (Iir) –