Library¶
- class spydrnet_physical.ir.library.Library(name=None, properties=None)[source]¶
Bases:
spydrnet.ir.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
Shortcut to
get_cables()
.get_definitions
Shortcut to
get_definitions()
.get_hcables
Shortcut to
get_hcables()
.get_hinstances
Shortcut to
get_hinstances()
.get_hpins
Shortcut to
get_hpins()
.get_hports
Shortcut to
get_hports()
.get_hwires
Shortcut to
get_hwires()
.get_instances
Shortcut to
get_instances()
.get_libraries
Shortcut to
get_libraries()
.get_netlists
Shortcut to
get_netlists()
.get_pins
Shortcut to
get_pins()
.get_ports
Shortcut to
get_ports()
.get_wires
Shortcut to
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