find_instance_of
find_instance_of [ -libs_libExpr] [ -cells_cellExpr] [ -views_viewExpr] [ -setd_setObj| -window_idi_windowID] [ -find_radiusf_userunit{-ref_pt {f_xf_y} | -ref_insts_instName} ] [ -exclude_vias ] [ -ignore_case ] [ -no_wildcard ] [ -silent ]
Description
Searches a particular cellview or an existing set of objects for instances of master cellviews with names that match the given expressions. If neither the -set argument nor the -cell_view_id argument is specified, the scope of the search is the active cellview. You can define the area of the search using the -find_radius argument to search within a specific radius of an instance or a given coordinate.
The GUI equivalent for this command is Edit—Find (Instance).
Arguments
|
Finds all instances whose master cell names match the expression. The expression can include special characters described in Pattern Matching. If this argument is not specified, then the resultant set will include instances with any master cell name. |
||
|
Excludes vias from consideration. By default, vias are included. |
||
|
Searches for instances whose bounding box falls within the given radius (in microns) from a reference given by one of the following: |
||
|
Uses the bounding box of the given instance as the reference. |
||
|
Finds all instances whose master library names match the expression. The expression can include special characters described in Pattern Matching. If this argument is not specified, then resultant set will include instances with any master library name. |
||
|
Suppresses informational messages, such as the number of items found. By default, these messages are output. |
||
|
Finds all instances whose master view names match the expression. The expression can include special characters described in Pattern Matching. If this argument is not specified, then the resultant set will include instances with any master view name. |
||
Value Returned
|
Returns the identifier for a set containing all instances that matched the lib/cell/view criteria for the given set or cellview. |
Examples
The following example searches in the active window for any instances whose master cell names begin with the letters corner. The resultant set of instances is stored in the Tcl variable master.
set master [find_instance_of -cell corner*]
Tcl set variables can be passed to other Space-based Router commands that use the -set argument. For more information on set functions, refer to Manipulate Sets
The following example finds all BUFA1 cells within a 20 micron radius of the bounding box of inst_I2.
find_instance_of -cell BUFA1 -ref_inst inst_I2 -find_radius 20
Related Topics
Examples of Tcl Core Commands and Virtuoso Space-based Router Commands
Return to top