Cable¶
- class spydrnet_physical.ir.cable.Cable(name=None, properties=None, is_downto=None, is_scalar=None, lower_index=None)[source]¶
Bases:
CableThis class extends the default Cable class
Attributes:
Returns number of wires in the cable
Checks if the wire is connected to any definition port (InnerConnection)
dataData stores information about the element
definitionGet the definition that this bundle belongs to.
is_arrayThis is the logical inverse of is_scalar.
is_downtoGet the downto status of the bundle.
is_scalarReturn True if the item is a scalar False otherwise.
lower_indexGet the value of the lower index of the array.
nameThe name of this element
propertiesReturns properties of the object
wiresGets a list of wires that are in this cable
Methods:
Connects cable to the port of definition.
Connects cable to the port of the given instance.
Create assignment beetween self and provided cable
split__init__Create a cable with no wires and default values for a bundle.
add_wireAdds a wire to the cable at the given position.
This fucntion check if the cable is concatenated while connecting to other ports
cloneClone the Cable and all of its wires in an api safe way the following will be true of the returned cable
create_wireCreates a wire and adds it to the cable.
create_wiresCreates wire_count wires for this cable and adds them to it.
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_indexReturns the python index of element
get_instancesget_instances(...)
get_librariesget_libraries(...)
get_netlistsget_netlists(...)
get_pinsget_pins(...)
get_portsget_ports(...)
get_verilog_indexReturns the verilog index of element
get_wiresget_wires(...)
poppop the object from the data structure
remove_wireremoves the given wire from the cable and return it.
remove_wires_fromRemove all wires given from the cable.
somhing- property size¶
Returns number of wires in the cable
- Returns:
Returns size of cable
- Return type:
int
- property is_port_cable¶
Checks if the wire is connected to any definition port (InnerConnection)
- Returns:
true if wire belongs to definition port
- Return type:
bool
- connect_port(port, reverse=False)[source]¶
Connects cable to the port of definition.
This is internal connection to the InnerPins of the definition
- Parameters:
port (Port) – Port to connect
- connect_instance_port(instance, port)[source]¶
Connects cable to the port of the given instance.
- Parameters:
instance (Instance) – Instance to consider
port (Port) – Port to connect