getnode [option]
where option may be one of the following:
- abort [string]
- Stop the getnode search when the node name string is encountered.
- alias [on|off]
- If on, reports all names found for the node. For each node selected, the result is then a list of the node's canonical name followed by its other names; for example, {{R Q} {P N}} for two nodes. If off, only the canonical name of each node is returned.
- globals [on|off]
- If on, any global node name (names ending with "!") will terminate the search, returning the global name. If off, global names are treated like local node names.
- fast
- Return the first name encountered, rather than finding the canonical node name.
The getnode command queries areas of selected paint for netlist node names. The converse of this command is goto.
getnode is implemented as a built-in command in magic. The node name search uses the same algorithm as the netlist connectivity selection function, and for very large networks, can be quite slow. Like "select net", it follows connections made by labels of the same name in a cell according to the "extract do unique" setting, so that the node is the same as in the extracted netlist (see the select command). A port name of the top cell takes precedence over any other name, so once one has been found, the search stops there (unless alias is on). For example, if the selection is on a pad with a port label in the top cell, the name is returned without tracing the rest of the net. Connections through an implicit (undrawn) substrate are not followed.
goto

| Return to command index |
Last updated: November 12, 2026 at 2:35pm