Definition

Overview

class spydrnet.Definition(name=None, properties=None)

Methods

Definition.__init__([name, properties])

Creates an empty object of type definition

Definition.is_leaf()

Check to see if this definition represents a leaf cell.

Getter Functions

Definition.__init__([name, properties])

Creates an empty object of type definition

Definition.get_netlists(...)

Shortcut to get_netlists().

Definition.library

Get the library that contains this definition

Definition.ports

Get the ports that are instanced in this definition

Definition.cables

Get the cables that are instanced in this definition.

Definition.children

Return a list of all instances instantiated in this definition

Definition.references

Get a list of all the instances of this definition

Definition.is_leaf()

Check to see if this definition represents a leaf cell.

Definition.create_port([name, properties, ...])

Create a port, add it to the definition, and return that port.

Definition.add_port(port[, position])

Add a preexisting port to the definition.

Definition.remove_port(port)

Remove a port from the definition.

Definition.remove_ports_from(ports)

Remove a set of ports from the definition.

Definition.create_child([name, properties, ...])

Create an instance to add to the definition, add it, and return the instance.

Definition.add_child(instance[, position])

Add an existing instance to the definition.

Definition.remove_child(child)

Remove an instance from the definition.

Definition.remove_children_from(children)

Remove a set of instances from the definition.

Definition.create_cable([name, properties, ...])

Create a cable, add it to the definition, and return the cable.

Definition.add_cable(cable[, position])

Add a cable to the definition.

Definition.remove_cable(cable)

Remove a cable from the definition.

Definition.remove_cables_from(cables)

Remove a set of cables from the definition.

Definition.clone()

Clone the definition in an api safe way.

Definition.get_netlists(...)

Shortcut to get_netlists().

Definition.get_libraries(...)

Shortcut to get_libraries().

Definition.get_definitions(...)

Shortcut to get_definitions().

Definition.get_instances(...)

Shortcut to get_instances().

Definition.get_ports(...)

Shortcut to get_ports().

Definition.get_pins(...)

Shortcut to get_pins().

Definition.get_cables(...)

Shortcut to get_cables().

Definition.get_wires(...)

Shortcut to get_wires().

Definition.get_hinstances(...)

Shortcut to get_hinstances().

Definition.get_hports(...)

Shortcut to get_hports().

Definition.get_hpins(...)

Shortcut to get_hpins().

Definition.get_hcables(...)

Shortcut to get_hcables().

Definition.get_hwires(...)

Shortcut to get_hwires().