pyGHDL.libghdl.vhdl.utils
Helpers on top of the raw pyGHDL.libghdl.vhdl bindings.
Functions
Get_Source_Identifier(): LikeGet_Identifierbut return aNameIdfor the same casing as it appears in the source file.Get_Source_Identifier_Str(): Return a declaration’s identifier as it was written in the source file.
Functions
- pyGHDL.libghdl.vhdl.utils.Get_Source_Identifier(Decl)[source]
Like
Get_Identifierbut return aNameIdfor the same casing as it appears in the source file. Not useful for analysis as VHDL is case insensitive, but could be useful for error messages or tooling.
- pyGHDL.libghdl.vhdl.utils.Get_Source_Identifier_Str(n)[source]
Return a declaration’s identifier as it was written in the source file.
Get_Name_Ptr()returns the normalized identifier, which is lower: case; this reads the characters back out of the source buffer instead, so the original casing is preserved.