Library¶
- class spydrnet_physical.ir.library.Library(name=None, properties=None)[source]¶
Bases:
LibraryMethods:
__init__creates an empty object of type Library
add_definitionAdd an existing definition to the library.
cloneClone the library in an API safe manner.
create_definitionCreate a definition, add it to the library, and return the definition
Creates 1-to-1 wrapper on top of current top_instance
getget the item from the data structure
get_cablesget_cables(...)
get_definitionsget_definitions(...)
get_hcablesget_hcables(...)
get_hinstancesget_hinstances(...)
get_hpinsget_hpins(...)
get_hportsget_hports(...)
get_hwiresget_hwires(...)
get_instancesget_instances(...)
get_librariesget_libraries(...)
get_netlistsget_netlists(...)
get_pinsget_pins(...)
get_portsget_ports(...)
get_wiresget_wires(...)
poppop the object from the data structure
remove_definitionRemove the given definition from the library.
remove_definitions_fromRemove a set of definitions from the library.
somhingAttributes:
dataData stores information about the element
definitionsReturn a list of all the definitions that are included in this library
get_indexReturns python index of element
get_verilog_indexReturns verilog index of element
nameThe name of this element
netlistGet the netlist that contains this library
propertiesReturns properties of the object
- create_top_wrapper(name=None, inst_name=None, port_map=None)[source]¶
Creates 1-to-1 wrapper on top of current top_instance
- Parameters:
name (str) – New top wrapper name (default: <top>_wrapper).
inst_name (str) – current top instance name (default: <top>_1).
port_map (Callable) – Function to return alternate name for port
- Returns:
returns new wrapper definition
- Return type: