Glade Reference


pin class

The pin class is normally created in a cellView using the dbCreatePin() function. A pin is derived from a dbObj . 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.

 

p.name(const char *name)

Sets the pin's name

 

char *name = p.name()

Gets the pin name.

 

p.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 dir = p.getDir()

Gets the pin direction.

 

p.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 s = p.getShape()

Gets the pin shape.

 

p.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 use = p.getUse()

Gets the pin use.

 

p.setNet(net *n)

Sets the pin's net.

 

net *n = p.getNet()

Gets the pin's net.

 

const char *name = p.getNetName()

Gets the pin's net name as a string.

 

dbtype_t t = p.objType()

Gets the pin object type as PIN.

 

p.setPorts(dbObjList<shape> *ports)

Sets the pin's port (physical shape) list.

 

list = p.getPorts()

Gets the pin's port (physical shape) list.

 

int p.getNumPorts()

Gets the number of port shapes for the pin.

 

p.addPort(shape *shp)

Adds a port shape to the pin.

 

Contents|Index

Copyright © Peardrop Design 2020.