pyGHDL.dom._Utils¶
Functions
- CheckForErrors(): Check if an error occurred in libghdl and raise an exception if so.
- GetIirKindOfNode(): Return the kind of a node in the IIR tree.
- GetNameOfNode(): Return the Python string from node- nodeidentifier.
- GetDocumentationOfNode(): Undocumented.
- GetModeOfNode(): Return the mode of a- node.
Functions
- pyGHDL.dom._Utils.CheckForErrors()[source]¶
- Check if an error occurred in libghdl and raise an exception if so. - Behavior: - read the error buffer and clear it afterwards 
- convert it into a list of internal messages for a - LibGHDLException
- raise a - DOMExceptionwith a nested- LibGHDLExceptionas a- __cause__.
 - Raises:
- DOMException – If an error occurred in libghdl. 
- Return type:
 
- pyGHDL.dom._Utils.GetIirKindOfNode(node)[source]¶
- Return the kind of a node in the IIR tree. - Return type:
- Returns:
- The IIR kind of a node. 
- Raises:
- ValueError – If parameter - nodeis- Null_Iir.
- Parameters:
- node (Iir) – 
 
- pyGHDL.dom._Utils.GetNameOfNode(node)[source]¶
- Return the Python string from node - nodeidentifier.- Raises:
- ValueError – If parameter - nodeis- Null_Iir.
- Return type:
- Parameters:
- node (Iir) – 
 
- pyGHDL.dom._Utils.GetModeOfNode(node)[source]¶
- Return the mode of a - node.- Raises:
- ValueError – If parameter - nodeis- Null_Iir.
- DOMException – If mode returned by libghdl is not known by - __MODE_TRANSLATION.
 
- Return type:
- Parameters:
- node (Iir) –