Glade Reference


array

An array is a reference to an array of cellViews, in another cellView. Arrays correspond to GDS2 AREFs. Arrays are created using the dbCreateArray cellView function. An array is derived from the inst class.

 

a.numRows(int rows)

Set the number of rows of this array.

 

int rows = a.rows()

Get the number of rows for this array.

 

a.numCols(int cols)

Set the number of columns for this array.

 

int cols = a.cols()

Get the number of columns for this array.

 

a.rowSpacing(int spacing)

Set the row spacing. This can be positive or negative.

 

int spacing = a.rowSpacing()

Get the row spacing.

 

a.colSpacing(int spacing)

set the column spacing for this array. This can be positive or negative.

 

int spacing = a.colSpacing()

Get the column spacing.

 

int coord = a.left()

Get the left edge of the array's bounding box

 

int coord = a.bottom()

Get the bottom edge of the array's bounding box

 

int coord = a.right()

Get the right edge of the array's bounding box

 

int coord = a.top()

Get the top edge of the array's bounding box

 

bool  a.offGrid(int grid)

Checks if an array origin is on the grid grid, which is in database units.


 a.orient(db_Orient o) 

Set the array orientation. db_Orient can be one of: R0, R90, R180, R270, MX, MXR90, MY, MYR90.


 db_Orient  a.orient () 

Get the array orientation.


a.bound(bool b)

Set the array binding. This should probably not be set by the user.

 

bool a.bound()

Get the instance binding status. An array is bound if it references a valid master.

 

double a.mag()

Get the array magnification. Magnifications other than 1.0 are supported, but their use is deprecated.

 

char *s = a.libName()

Get the array's lib name.

 

library *lib = a.lib()

Get the array's library pointer.

 

char *s = a.cellName()

Get the array's master cell name.

 

a.cellName(char *s)

Set the array master's cellName.

 

char *s = a.viewName()

Get the array's view name.

 

a.instName(cellView *cv, char *instName)

Set the array's instName. cv is the cellView containing the instance.

 

char * a.instName()

Get the array's instName.

 

cellView *cv = a.getMaster()

Get the cellview of the array's master.

 

a.setMaster(cellView *cv)

Set the array's master cellView.

 

Point p = a.origin()

Get the origin of the array. Note that an array's origin does not have to be e.g. the lower left of its bounding box - it can be anywhere.

 

a.origin(Point p)

a.origin(int x, int y)

Set the origin of the array.

 

Rect box = a.bBox()

Get the array's bounding box.

 

db_Type a.objType()

Returns the objects type as ARRAY

 

char * a.objName()

Returns the print name i.e. "ARRAY"

 

int  a.getNearestEdge(Point &p, segment &edge)

Get the nearest edge of this object to a Point p.

 

a.transform(dbTransform trans)

Transform the array by the given transform trans.

 

a.scale(double scalefactor, double grid)

Scale the array origin coordinates by scalefactor, snapping to grid.

 

a.Move(cellView cv, Point delta, bool opt=True)

Move the array origin by delta.  If opt is true then the database is re-optimised for the new array position. If there are a lot of objects to move it makes sense to turn this off and instead use the cellView update() function after moving them all.

 

dbObj obj = a.Copy(cellView cv, Point delta)

Copy the array. cv is the destination cellview, delta is the offset from the current origin.

 

dbObjList<dbObj> objs = a.Flatten(cellView cv, dbTransform trans)

Flatten the array into the cellView cv, with the given transform trans.

 

instPin ip = a.dbCreateInstPin(net n, char *name)

Create an instance pin on this array for the net n and pin name name .

 

a.dbDeleteInstPin(instPin ip)

Delete the instPin ip from this array.

 

instPin ip = a.dbFindInstPinByName(char *name)

Find the inst pin with name name on this array. Returns null if not found.

 

dbObjList<instPin> instPins = a.getInstPins()

Get a list of all instPins for this array.

 

int num = a.getNumInstPins()

Get the number of instPins for this array.

 

Contents|Index

Copyright © Peardrop Design 2016.