Library¶
- class spydrnet_physical.ir.library.Library(name=None, properties=None)[source]¶
Bases:
Library
Methods:
__init__
creates an empty object of type Library
add_definition
Add an existing definition to the library.
clone
Clone the library in an API safe manner.
create_definition
Create a definition, add it to the library, and return the definition
Creates 1-to-1 wrapper on top of current top_instance
get
get the item from the data structure
get_cables
get_cables(...)
get_definitions
get_definitions(...)
get_hcables
get_hcables(...)
get_hinstances
get_hinstances(...)
get_hpins
get_hpins(...)
get_hports
get_hports(...)
get_hwires
get_hwires(...)
get_instances
get_instances(...)
get_libraries
get_libraries(...)
get_netlists
get_netlists(...)
get_pins
get_pins(...)
get_ports
get_ports(...)
get_wires
get_wires(...)
pop
pop the object from the data structure
remove_definition
Remove the given definition from the library.
remove_definitions_from
Remove a set of definitions from the library.
somhing
Attributes:
data
Data stores information about the element
definitions
Return a list of all the definitions that are included in this library
get_index
Returns python index of element
get_verilog_index
Returns verilog index of element
name
The name of this element
netlist
Get the netlist that contains this library
properties
Returns 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: