pyGHDL.libghdl.vhdl.nodes_utils
#
Functions
Strip_Denoting_Name()
: IfName
is a simple or an expanded name, return the denoted declaration.Get_Entity()
: This is a wrapper aroundGet_Entity_Name
to return the entity declarationIs_Second_Subprogram_Specification()
: Check ifSpec
is the subprogram specification of a subprogram bodyGet_Entity_From_Entity_Aspect()
: Extract the entity fromAspect
.Get_Interface_Of_Formal()
: Get the interface corresponding to the formal nameFormal
. This is
Functions
- pyGHDL.libghdl.vhdl.nodes_utils.Strip_Denoting_Name(Name)[source]#
If
Name
is a simple or an expanded name, return the denoted declaration. Otherwise, returnName
.
- pyGHDL.libghdl.vhdl.nodes_utils.Get_Entity(Decl)[source]#
This is a wrapper around
Get_Entity_Name
to return the entity declaration of the entity name ofDecl
, orNull_Iir
in case of error.
- pyGHDL.libghdl.vhdl.nodes_utils.Is_Second_Subprogram_Specification(Spec)[source]#
Check if
Spec
is the subprogram specification of a subprogram body which was previously declared. In that case, the only use ofSpec
is to match the body with its declaration.
- pyGHDL.libghdl.vhdl.nodes_utils.Get_Entity_From_Entity_Aspect(Aspect)[source]#
Extract the entity from
Aspect
.If
Aspect
is a component declaration, returnAspect
. If it’s open, returnNull_Iir