Instance¶
- class spydrnet_physical.ir.instance.Instance(name=None, properties=None)[source]¶
Bases:
InstanceExtending 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
cloneClone the instance in an api safe way.
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_pinReturns the pin connected to a port of the specified name and at the specified index.
get_pinsget_pins(...)
Return all outer cables connected to this port
get_portsget_ports(...)
get_wiresget_wires(...)
is_leafCheck to see if the definition that this instance contains represents a leaf cell.
is_uniqueCheck to see if the instance is unique
poppop the object from the data structure
somhingtestAttributes:
dataData stores information about the element
get_indexReturns python index of element
get_verilog_indexReturns verilog index of element
is_top_instancenameThe name of this element
parentGet the definition that contains this instance
pinsGet the pins on this instance.
propertiesReturns properties of the object
referenceGet 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