pyGHDL.libghdl.utils#

Functions


Functions

pyGHDL.libghdl.utils.name_image(Id)[source]#

Lookup a Id and return its string.

Return type:

str

Parameters:

Id (NameId) –

pyGHDL.libghdl.utils.fields_image(idx)[source]#

String representation of Nodes_Meta.fields idx.

Return type:

str

Parameters:

idx (int) –

pyGHDL.libghdl.utils.kind_image(k)[source]#

String representation of Nodes.Iir_Kind k.

Return type:

str

Parameters:

k (int) –

pyGHDL.libghdl.utils.types_image(t)[source]#

String representation of Nodes_Meta.Types t.

Return type:

str

Parameters:

t (int) –

pyGHDL.libghdl.utils.attr_image(a)[source]#

String representation of Nodes_Meta.Attr a.

Return type:

str

Parameters:

a (int) –

pyGHDL.libghdl.utils.leftest_location(n)[source]#
pyGHDL.libghdl.utils.fields_iter(n)[source]#

Iterate on fields of node n.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.chain_iter(n)[source]#

Iterate of a chain headed by node n.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.chain_to_list(n)[source]#

Convert a chain headed by node n to a Python list.

Return type:

List[Any]

pyGHDL.libghdl.utils.nodes_iter(n)[source]#

Iterate all nodes of n, including n. Nodes are returned only once.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.list_iter(lst)[source]#

Iterate all element of Iir_List lst.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.flist_iter(lst)[source]#

Iterate all element of Iir_List lst.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.declarations_iter(n)[source]#

Iterate all declarations in node n.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.concurrent_stmts_iter(n)[source]#

Iterate concurrent statements in node n.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.constructs_iter(n)[source]#

Iterate library units, concurrent statements and declarations that appear directly within a declarative part.

Return type:

Generator[Any, None, None]

pyGHDL.libghdl.utils.sequential_iter(n)[source]#

Iterate sequential statements. The first node must be either a process or a subprogram body.

Return type:

Generator[Any, None, None]