Instance¶
- class spydrnet_physical.ir.instance.Instance(name=None, properties=None)[source]¶
Bases:
spydrnet.ir.instance.Instance
Extending base instance class
Methods:
Creates an empty object of type instance.
Check if each wire connected to this port are single wire
Returns all the outerpins of this port on this instance
clone
Clone the instance in an api safe way.
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()
.Return all outer cables connected to this port
get_ports
Shortcut to
get_ports()
.get_wires
Shortcut to
get_wires()
.is_leaf
Check to see if the definition that this instance contains represents a leaf cell.
is_unique
Check to see if the instance is unique
pop
pop the object from the data structure
somhing
test
Attributes:
data
Data stores information about the element
get_index
Returns python index of element
get_verilog_index
Returns verilog index of element
is_top_instance
name
The name of this element
parent
Get the definition that contains this instance
pins
Get the pins on this instance.
properties
Returns properties of the object
reference
Get the definition that this instance is instantiating
- __init__(name=None, properties=None)[source]¶
Creates an empty object of type instance.
- Parameters
name - (str) the name of this instance
properties - (dict) the dictionary which holds the properties
- check_all_scalar_connections(port)[source]¶
Check if each wire connected to this port are single wire
- Parameters
port (Port) – Port of the instance