pyGHDL.libghdl.libraries
#
Variables
Functions
Get_Libraries_Chain()
: Get the chain of libraries. Can be used only to read (it mustn’t be modified).Add_Design_Unit_Into_Library()
: Add or replace an design unit in the work library. DECL must not have a chainPurge_Design_File()
: Remove the same file asDesign_File
from work library and all of its units.Find_Entity_For_Component()
: Find an entity whose name isName
in any library.Get_Library_No_Create()
: Get the library namedIdent
.Find_Primary_Unit()
: Just return the design_unit forName
, orNULL
if not found.
Variables
- pyGHDL.libghdl.libraries.Library_Location#
A location for library declarations (such as library WORK).
Use the property
.value
to access the variable’s value.c_int(1)
- pyGHDL.libghdl.libraries.Work_Library#
Library declaration for the work library.
Note
The identifier of the work_library is
work_library_name
, which may be different from ‘WORK’.Use the property
.value
to access the variable’s value.c_int(0)
Functions
- pyGHDL.libghdl.libraries.Get_Libraries_Chain()[source]#
Get the chain of libraries. Can be used only to read (it mustn’t be modified).
- pyGHDL.libghdl.libraries.Add_Design_Unit_Into_Library(Unit, Keep_Obsolete)[source]#
Add or replace an design unit in the work library. DECL must not have a chain (because it may be modified).
If the design_file of UNIT is not already in the library, a new one is created.
Units are always appended to the design_file. Therefore, the order is kept.
- Parameters:
- Return type:
- pyGHDL.libghdl.libraries.Purge_Design_File(Design_File)[source]#
Remove the same file as
Design_File
from work library and all of its units.
- pyGHDL.libghdl.libraries.Find_Entity_For_Component(Name)[source]#
Find an entity whose name is
Name
in any library.
If there is no such entity, returnNull_Iir
.
If there are several entities, returnNull_Iir
;