| 1 | |
| 2 | <HTML> |
| 3 | <HEAD> |
| 4 | <STYLE type="text/css"> |
| 5 | H1 {color: black } |
| 6 | H2 {color: maroon } |
| 7 | H3 {color: #007090 } |
| 8 | A.head:link {color: #0060a0 } |
| 9 | A.head:visited {color: #3040c0 } |
| 10 | A.head:active {color: white } |
| 11 | A.head:hover {color: yellow } |
| 12 | A.red:link {color: red } |
| 13 | A.red:visited {color: maroon } |
| 14 | A.red:active {color: yellow } |
| 15 | </STYLE> |
| 16 | </HEAD> |
| 17 | <TITLE>Magic-7.3 Command Reference</TITLE> |
| 18 | <BODY BACKGROUND=graphics/blpaper.gif> |
| 19 | <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3"> |
| 20 | <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1> |
| 21 | |
| 22 | <H2>instance</H2> |
| 23 | <HR> |
| 24 | Operations on cell instances (uses). |
| 25 | <HR> |
| 26 | |
| 27 | <H3>Usage:</H3> |
| 28 | <BLOCKQUOTE> |
| 29 | <B>instance</B> <I>option</I> <BR><BR> |
| 30 | <BLOCKQUOTE> |
| 31 | where <I>option</I> is one of the following: |
| 32 | <DL> |
| 33 | <DT> [<B>list</B>] <B>children</B> [<I>name</I>] |
| 34 | <DD> List all of the children definitions of cell use <I>name</I>, |
| 35 | or the children of the currently selected cell instance. |
| 36 | <DT> [<B>list</B>] <B>parent</B> [<I>name</I>] |
| 37 | <DD> List the parent cell definition of cell use <I>name</I>, |
| 38 | or the parent of the currently selected cell instance. |
| 39 | <DT> [<B>list</B>] <B>exists</B>|<B>self</B> [<I>name</I>] |
| 40 | <DD> Returns the name of the instance if the cell exists, or false |
| 41 | (0) if the instance does not exist (is not loaded into the |
| 42 | database; the cell may still exist on disk). If <I>name</I> |
| 43 | is not present, returns the name of the currently selected |
| 44 | instance. |
| 45 | <DT> [<B>list</B>] <B>allcells</B> |
| 46 | <DD> List all of the cell instances in the database. Note that |
| 47 | expansion is not automatic, so cells that are not expanded |
| 48 | are not searched. |
| 49 | </DL> |
| 50 | </BLOCKQUOTE> |
| 51 | </BLOCKQUOTE> |
| 52 | |
| 53 | <H3>Summary:</H3> |
| 54 | <BLOCKQUOTE> |
| 55 | The <B>instance</B> command performs various operations on |
| 56 | cell uses, or instances. For the first four options listed |
| 57 | above, <B>instance</B> lists cells by their relationship to |
| 58 | cell use <I>name</I>, or to the current selection if no |
| 59 | <I>name</I> is given. The optional argument <B>list</B> |
| 60 | returns the result as a list. In particular, in the Tcl |
| 61 | version of magic, this list is a Tcl result that may be |
| 62 | operated on by Tcl procedures. <P> |
| 63 | </BLOCKQUOTE> |
| 64 | |
| 65 | <H3>Implementation Notes:</H3> |
| 66 | <BLOCKQUOTE> |
| 67 | <B>instance</B> is implemented as a built-in function in <B>magic</B> |
| 68 | The Tcl version of magic returns Tcl results when the "<B>list</B>" |
| 69 | option is present. <B>instance</B> is essentially an alias for the |
| 70 | <B>cellname</B> command, and takes many of the same options, but |
| 71 | references are to cell instances rather that cell definitions |
| 72 | (q.v.). A number of options to <B>cellname</B> are meaningless |
| 73 | for instances. <P> |
| 74 | |
| 75 | The command option <B>instance list exists</B> is nonsensical from |
| 76 | the standpoint of the end-user (if the cell is selected, of course |
| 77 | it exists). However, it is a very useful function for Tcl scripts |
| 78 | to determine the name of the cell instance that is currently |
| 79 | selected. |
| 80 | </BLOCKQUOTE> |
| 81 | |
| 82 | <H3>Bugs:</H3> |
| 83 | <BLOCKQUOTE> |
| 84 | Technically, <B>instance rename</B> should be implemented as a |
| 85 | replacement for the command <B>identify</B>. |
| 86 | </BLOCKQUOTE> |
| 87 | |
| 88 | <H3>See Also:</H3> |
| 89 | <BLOCKQUOTE> |
| 90 | <A HREF=cellname.html><B>cellname</B></A> <BR> |
| 91 | <A HREF=load.html><B>load</B></A> <BR> |
| 92 | <A HREF=tk_path_name.html><I>tk_path_name</I></A> <BR> |
| 93 | </BLOCKQUOTE> |
| 94 | |
| 95 | <P><IMG SRC=graphics/line1.gif><P> |
| 96 | <TABLE BORDER=0> |
| 97 | <TR> |
| 98 | <TD> <A HREF=commands.html>Return to command index</A> |
| 99 | </TR> |
| 100 | </TABLE> |
| 101 | <P><I>Last updated:</I> October 8, 2004 at 8:06am <P> |
| 102 | </BODY> |
| 103 | </HTML> |