| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <STYLE type="text/css"> |
| 4 | H1 {color: black } |
| 5 | H2 {color: maroon } |
| 6 | H3 {color: #007090 } |
| 7 | A.head:link {color: #0060a0 } |
| 8 | A.head:visited {color: #3040c0 } |
| 9 | A.head:active {color: white } |
| 10 | A.head:hover {color: yellow } |
| 11 | A.red:link {color: red } |
| 12 | A.red:visited {color: maroon } |
| 13 | A.red:active {color: yellow } |
| 14 | </STYLE> |
| 15 | </HEAD> |
| 16 | <TITLE>Magic-7.3 Command Reference</TITLE> |
| 17 | <BODY BACKGROUND=graphics/blpaper.gif> |
| 18 | <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3"> |
| 19 | <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1> |
| 20 | |
| 21 | <H2>what</H2> |
| 22 | <HR> |
| 23 | Print out information about what material is in the current selection. |
| 24 | Short summary. |
| 25 | <HR> |
| 26 | |
| 27 | <H3>Shortcuts:</H3> |
| 28 | <BLOCKQUOTE> |
| 29 | Key macro <B>/</B> (slash) implements the command <B>what</B>. |
| 30 | </BLOCKQUOTE> |
| 31 | |
| 32 | <H3>Usage:</H3> |
| 33 | <BLOCKQUOTE> |
| 34 | <B>what</B> [<B>-list</B>] <BR><BR> |
| 35 | </BLOCKQUOTE> |
| 36 | |
| 37 | <H3>Summary:</H3> |
| 38 | <BLOCKQUOTE> |
| 39 | The <B>what</B> command queries what material is in the current |
| 40 | selection. This includes a report on layers, labels, and subcell |
| 41 | instances that are selected. <P> |
| 42 | |
| 43 | In the Tcl version of <B>magic</B>, the <B>-list</B> option |
| 44 | returns the result as a Tcl list containing three sub-lists. |
| 45 | The first sub-list contains the types found, the second contains |
| 46 | the labels found, and the third contains the subcells found. |
| 47 | Each label in the second sub-list is itself a list of three |
| 48 | items: The label text, the layer the label is attached to, and |
| 49 | the cell def containing the label. Each subcell in the third |
| 50 | sub-list is itself a list of two items: The subcell instance |
| 51 | ID name, and the cell definition name. |
| 52 | </BLOCKQUOTE> |
| 53 | |
| 54 | <H3>Implementation Notes:</H3> |
| 55 | <BLOCKQUOTE> |
| 56 | <B>what</B> is implemented as a built-in command in <B>magic</B>. |
| 57 | </BLOCKQUOTE> |
| 58 | |
| 59 | <P><IMG SRC=graphics/line1.gif><P> |
| 60 | <TABLE BORDER=0> |
| 61 | <TR> |
| 62 | <TD> <A HREF=commands.html>Return to command index</A> |
| 63 | </TR> |
| 64 | </TABLE> |
| 65 | <P><I>Last updated:</I> October 15, 2004 at 6:25am <P> |
| 66 | </BODY> |
| 67 | </HTML> |