find_net
find_net [ -names_netExpr[ -net_type {[signal][power][ground][clock][tieOff][tieHi][tieLo][scan][analog][all]} ] | -insts_instName[ -terms_termName] | -route_specs_routeSpec] [ -setd_setObj| -window_idi_windowIDx | -include_composite_nets [ true | false ] ] [ -ignore_case ] [ -no_wildcard ] [ -instance_paths_path] [ -delimiters_char] [ -silent ]
Description
Searches a particular window or an existing set of objects for one of the following:
- Nets with names that match the given expression and, optionally, of a certain type
- The net that connects to the term of the given instance
- Nets with the given routespec
If neither the -set argument nor the -window_id argument is specified, the scope of the search is the active window.
The GUI equivalent for this command is Edit—Find (Instance).
Arguments
|
Specifies the hierarchical delimiter. If not specified, the default delimiter character for the active oaNamespace is used. A NULL string ("") can be specified to prevent the path from being decomposed and is useful for flattened designs. This option cannot be used with wildcards. |
|
|
Specifies the name of the instance. Searches for the net that connects to the given term of the instance if |
|
|
Finds all nets whose names match the expression or a space-delimited list of expressions. The expressions can include special characters described in Pattern Matching. If this argument is not included, then all nets within the specified scope are included in the resultant set. |
|
|
Finds all nets of the types specified. |
|
|
Disables all wildcard processing. By default, wildcards can be used. |
|
|
Suppresses informational messages, such as the number of items found. By default, these messages are displayed. |
|
|
Specifies a terminal name. Used with the |
|
Value Returned
|
Returns the identifier for a set containing all nets whose names matched the given expression for the given set or cellview. |
Examples
The following example searches for any nets whose names contain the string RESULTS_CONV_INST_n. The resultant set of nets is stored in the Tcl variable net.
set net [find_net -cell_view_id 1 -net *RESULTS_CONV_INST_n*]
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 returns an unfolded shape.
setvar db.user_namespace def
find_net -instance_path fb_io/Fbd_data\\\[47\\\]_pad_macro -name j_ShiftDr -delimiter "" -no_wildcard
The following example highlights the net connected to the A0 term of the B_32_INST/i_9182/i_9187/i_217 instance.
add_highlight -color cyan -name termA -set [find_net -inst B_32_INST/i_9182/i_9187/i_217 -term A0]
Related Topics
Examples of Tcl Core Commands and Virtuoso Space-based Router Commands
Return to top