Glade Reference
An instance is a reference to a cellview, in another cellview. Instances correspond to GDS2 SREFs or DEF components. Instances are created using the cellView::dbCreateInst() function.
Get the left edge of the instance's bounding box
Get the bottom edge of the instance's bounding box
Get the right edge of the instance's bounding box
Get the top edge of the instance's bounding box
Checks if an instance origin is on the grid grid, which is in database units.
Set the placement status of the instance. db_PlaceStatus can be one of: DB_UNPLACED, DB_PLACED, DB_FIXED, DB_COVER, DB_UNKNOWN.
Get the placement status of the instance.
Get the placement status of the instance as a string.
Set the instance orientation. db_Orient can be one of: R0, R90, R180, R270, MX, MXR90, MY, MYR90.
Get the instance orientation.
Set the instance source type. db_SourceType can be one of: DB_SRC_NONE, DB_SRC_NETLIST, DB_SRC_DIST, DB_SRC_USER, DB_SRC_TIMING.
Get the instance source type
Get the instance source type as a string
Set the instance binding. This should probably not be set by the user.
Get the instance binding status. An instance is bound if it references a valid master.
Get the origin of the instance. Note that an instance's origin does not have to be e.g. the lower left of its bounding box - it can be anywhere.
Set the origin of the instance.
Set the instance's orientation. It can be one of R0, R90, R180, R270, MX, MXR90, MY, MYR90.
Get the instance's orientation.
Set the instance's magnification. Magnifications other than 1.0 are supported, but their use is strongly discouraged.
Get the instance's magnification. Magnifications other than 1.0 are supported, but their use is strongly discouraged.
Get the instance's lib name.
Get the instance's library.
Get the instances's cell name.
Set the instance master's cellName.
Get the instance's view name.
Set the instance's instName. cv is the cellView containing the instance.
Get the instance's instName.
Get the cellview of the instance's master.
Set the instance's master.
Get the instance's bounding box.
Updates the instance bounding box after e.g. changing origin/orient/mag.
Gets the instance's boundary rectangle. If the instance is e.g. a LEF macro then it will contain a shape on the TECH_PRBOUNDARY_LAYER, and the Rect representing this boundary shape will be returned.The shape is transformed according to the inst's origin, orientation and magnification. For symbols, the boundary layer defines a rectangle used in schematics for selection and dynamic highlighting, rather than the symbol's bounding box itself.
Returns the objects type as INST
Returns the print name i.e. "INST"
Get the nearest edge of this object.
Transform the instance by the given transform.
Scale the instance origin coordinates by scalefactor, snapping to grid.
Move the instance origin by delta. If opt is True then the database is re-optimised for the new inst 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.
Copy the instance. cv is the destination cellview, delta is the offset from the current origin.
Flatten the instance into the cellView cv, with the given transform trans.
Create an instance pin on this instance for the net n and pin name name.
Delete the instPin ip from this instance.
Find the inst pin with name name on this instance. Returns null if not found.
Get a python list of all instPins for this instance.
Get the number of instPins for this instance.
Copyright © Peardrop Design 2024.