pin class
The pin class is normally created in a cellView using the dbCreatePin() function. A pin is derived from a dbObj, so it can have properties. You can create a logical pin using cellView::dbCreatePin(); to create a physical pin you need to first create a logical pin, then use cellView::dbCreatePort() to assign a physical shape to the pin.
pin::name(const char *name)
Sets the pin's name
char * pin::name()
Gets the pin name.
pin::setDir(db_PinDirection dir)
Sets the pin direction. db_PinDirection can be one of DB_PIN_INPUT, DB_PIN_OUTPUT, DB_PIN_INOUT, DB_PIN_FEEDTHRU, DB_PIN_TRISTATE.
db_PinDirection pin::getDir()
Gets the pin direction.
pin::setShape(db_PinShape s)
Sets the pin shape. db_PinShape can be one of DB_PIN_ABUTMENT, DB_PIN_RING, DB_PIN_FEED.
db_PinShape pin::getShape()
Gets the pin shape.
pin::setUse(db_PinUse use)
Sets the pin use. db_PinUse can be one of DB_PIN_SIGNAL, DB_PIN_ANALOG, DB_PIN_CLOCK, DB_PIN_GROUND, DB_PIN_POWER, DB_PIN_RESET, DB_PIN_SCAN, DB_PIN_TIEOFF.
db_PinUse pin::getUse()
Gets the pin use.
pin::setNet(net *n)
Sets the pin's net.
net * pin::getNet()
Gets the pin's net.
const char * pin::getNetName()
Gets the pin's net name as a string.
dbtype_t pin::objType()
Gets the pin object type as PIN.
pin::setPorts(dbObjList<shape> *ports)
Sets the pin's port (physical shape) list.
[ pin * ] pin::getPorts()
Gets the pin's ports (physical shapes) as a python list.
int32_t pin::getNumPorts()
Gets the number of port shapes for the pin.
pin::addPort(shape *shp)
Adds a port shape to the pin.