Glade Reference


net class

The net class is normally created in a cellView using the dbCreateNet() function. A net is derived from a dbObj. Nets have pins (which represent connections at this level of hierarchy with upper levels of hierarchy) and instPins (which represent connections with instances, i.e. lower levels of hierarchy). These provide a means for hierarchical connectivity from the pins on an instance of the cellView to the instPins on instances in the cellView.

 

n.name(char *name)

Sets the name of the net.

 

char *name = n.name()

Gets the net name.

 

db_Type t = n.objType()

Gets the net object type as NET

 

char *name = n.objName()

Gets the net object name as "NET".

 

instPin *ip = n.dbCreateInstPin(char *instname, char *pinname)

Creates an inst pin for this net with instname as the instance name and pinname as the name of the pin.

 

n.dbDeleteInstPin(instPin *ip)

Deletes an inst pin of this net.

 

n.dbDeleteinstPin(char *instname, char *pinname)

Deletes an inst pin of this net.

 

int num = n.getNumInstPins()

Gets the number of inst pins for this net.

 

n.addInstPin(instPin *ip)

Add an inst pin for this net.

 

list = n.getInstPins()

Get the net's inst pin list.

 

double l = n.getHPWL(double &x, double &y)

Gets the half perimeter wirelength of this net.

 

n.setSpecial(bool special)

Sets the net as a specialnet.

 

bool n.isSpecial()

Gets the net's specialnet status.

 

n.setPins(dbObjList<pin> *pins)

Set the net's pin list

 

list = n.getPins()

Gets the net's pin list.

 

n.addPin(pin *p)

Add a pin to this net.

 

n.setShapes(dbObjList<shape> *shapes)

Sets the net's shape list.

 

list = n.getShapes()

Gets the net's shape list.

 

int n.getNumShapes()

Get the number of shapes associated with this net.

 

n.addShape(dbObj *shp)

Add a shape to the net's shape list.

 

n.deleteShape(dbObj *shp)

Delete a shape from the net's shape list.

 

Contents|Index

Copyright © Peardrop Design 2016.