Port

Overview

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

Methods

Port.__init__([name, properties, is_downto, ...])

Setup an empty port

Port.direction

Gets the direction of the port.

Port.pins

Get a list of the pins that are in the port

Port.create_pin()

Create a pin and add it to the port.

Port.add_pin(pin[, position])

Add a pin to the port at the given position.

Port.remove_pin(pin)

Remove the given pin from the port.

Port.remove_pins_from(pins)

Remove several pins from the port at once.

Port.clone()

Clone the port in an api safe way.

Port.get_netlists(...)

Shortcut to get_netlists().

Port.get_libraries(...)

Shortcut to get_libraries().

Port.get_definitions(...)

Shortcut to get_definitions().

Port.get_instances(...)

Shortcut to get_instances().

Port.get_ports(...)

Shortcut to get_ports().

Port.get_pins(...)

Shortcut to get_pins().

Port.get_cables(...)

Shortcut to get_cables().

Port.get_wires(...)

Shortcut to get_wires().

Port.get_hinstances(...)

Shortcut to get_hinstances().

Port.get_hports(...)

Shortcut to get_hports().

Port.get_hpins(...)

Shortcut to get_hpins().

Port.get_hcables(...)

Shortcut to get_hcables().

Port.get_hwires(...)

Shortcut to get_hwires().