Instance

class spydrnet_physical.ir.instance.Instance(name=None, properties=None)[source]

Bases: Instance

Extending base instance class

Methods:

__init__

Creates an empty object of type instance.

check_all_scalar_connections

Check if each wire connected to this port are single wire

get_port_pins

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

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_pin

Returns the pin connected to a port of the specified name and at the specified index.

get_pins

get_pins(...)

get_port_cables

Return all outer cables connected to this port

get_ports

get_ports(...)

get_wires

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

get_port_pins(ports)[source]

Returns all the outerpins of this port on this instance

Parameters:

port (Port, str) – Port of the instance

get_port_cables(ports)[source]

Return all outer cables connected to this port

Parameters:

port (Port) – Port of the instance