pyGHDL.libghdl.vhdl.disp_tree

Python binding for the Ada package Vhdl.Disp_Tree in libghdl.

Dumps a node and its sub-nodes for debugging. It is written against the meta-model, so it needs no change when a node kind is added.

Functions


Functions

pyGHDL.libghdl.vhdl.disp_tree.Disp_Tree(Tree, Flat=False)[source]

Disp a tree for debugging.

Parameters:
  • Tree (TypeVar(Iir, bound= c_int)) – The node to display.

  • Flat (bool) – True to print only the node itself, without its sub-nodes.

Return type:

None

pyGHDL.libghdl.vhdl.disp_tree.Disp_Iir(N, Indent, Depth)[source]

Disp a node for debugging.

Parameters:
  • N (TypeVar(Iir, bound= c_int)) – The node to display.

  • Indent (int) – The indentation level to print at.

  • Depth (int) – How many levels of sub-nodes to print.

Return type:

None