Cable

Overview

class spydrnet.Cable(name=None, properties=None, is_downto=None, is_scalar=None, lower_index=None)

Methods

Cable.__init__([name, properties, ...])

Create a cable with no wires and default values for a bundle.

Cable.wires

Gets a list of wires that are in this cable

Cable.create_wire()

Creates a wire and adds it to the cable.

Cable.add_wire(wire[, position])

Adds a wire to the cable at the given position.

Cable.create_wires(wire_count)

Creates wire_count wires for this cable and adds them to it.

Cable.remove_wire(wire)

removes the given wire from the cable and return it.

Cable.remove_wires_from(wires)

Remove all wires given from the cable.

Cable.clone()

Clone the Cable and all of its wires in an api safe way the following will be true of the returned cable

Cable.get_netlists(...)

Shortcut to get_netlists().

Cable.get_libraries(...)

Shortcut to get_libraries().

Cable.get_definitions(...)

Shortcut to get_definitions().

Cable.get_instances(...)

Shortcut to get_instances().

Cable.get_ports(...)

Shortcut to get_ports().

Cable.get_pins(...)

Shortcut to get_pins().

Cable.get_cables(...)

Shortcut to get_cables().

Cable.get_wires(...)

Shortcut to get_wires().

Cable.get_hinstances(...)

Shortcut to get_hinstances().

Cable.get_hports(...)

Shortcut to get_hports().

Cable.get_hpins(...)

Shortcut to get_hpins().

Cable.get_hcables(...)

Shortcut to get_hcables().

Cable.get_hwires(...)

Shortcut to get_hwires().