| 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>select</H2> |
| 22 | <HR> |
| 23 | Select or unselect portions of the layout according to the options, or |
| 24 | create a new cell definition from a selection. |
| 25 | <HR> |
| 26 | |
| 27 | <H3>Shortcuts:</H3> |
| 28 | <BLOCKQUOTE> |
| 29 | Key macro <B>,</B> (comma) implements the command <B>select clear</B>. <BR> |
| 30 | Key macro <B>s</B> implements the command <B>select</B>. <BR> |
| 31 | Key macro <B>S</B> implements the command <B>select more</B>. <BR> |
| 32 | Key macro <I>Control-</I><B>S</B> implements the |
| 33 | command <B>select less</B>. <BR> |
| 34 | Key macro <B>a</B> implements the command <B>select visible</B>. <BR> |
| 35 | Key macro <B>A</B> implements the command <B>select more visible</B>. <BR> |
| 36 | Key macro <I>Control-</I><B>A</B> implements the |
| 37 | command <B>select less visible</B>. <BR> |
| 38 | Key macro <B>i</B> implements the command <B>select cell</B>. <BR> |
| 39 | Key macro <B>I</B> implements the command <B>select more cell</B>. <BR> |
| 40 | Key macro <I>Control-</I><B>I</B> implements the |
| 41 | command <B>select less cell</B>. |
| 42 | </BLOCKQUOTE> |
| 43 | |
| 44 | <H3>Usage:</H3> |
| 45 | <BLOCKQUOTE> |
| 46 | <B>select</B> <I>option</I> <BR><BR> |
| 47 | <BLOCKQUOTE> |
| 48 | where <I>option</I> may be one of the following: |
| 49 | <DL> |
| 50 | <DT> [<B>more</B> | <B>less</B>] [<I>layers</I>] |
| 51 | <DD> [De]select material under cursor, or |
| 52 | [de]select a subcell if the cursor is over space. |
| 53 | <DT> <B>nocycle</B> [<I>layers</I>] |
| 54 | <DD> Select material without cycling through different tile |
| 55 | types when "select" is called from the same cursor position |
| 56 | more than once. |
| 57 | <DT> [<B>more</B> | <B>less</B>] <B>area</B> [<I>layers</I>] |
| 58 | <DD> [De]select all material under box in layers <I>layers</I> |
| 59 | <DT> [<B>more</B> | <B>less</B>] <B>visible</B> [<I>layers</I>] |
| 60 | <DD> [De]select all visible material under box in layers <I>layers</I>. |
| 61 | <DT> [<B>more</B> | <B>less</B>] <B>box</B> [<I>layers</I>] |
| 62 | <DD> [De]select material specified by the boundary of the cursor box |
| 63 | <DT> [<B>more</B> | <B>less</B>] <B>chunk</B> [<I>layers</I>] |
| 64 | <DD> [De]select a network chunk (largest rectangle) specified by |
| 65 | the lower left corner of the cursor box |
| 66 | <DT> [<B>more</B> | <B>less</B>] <B>region</B> [<I>layers</I>] |
| 67 | <DD> [De]select a network region specified by |
| 68 | the lower left corner of the cursor box |
| 69 | <DT> [<B>more</B> | <B>less</B>] <B>net</B> [<I>layers</I>] |
| 70 | <DD> [De]select an entire electrical network specified by |
| 71 | the lower left corner of the cursor box |
| 72 | <DT> [<B>more</B> | <B>less</B>] <B>cell</B> [<I>name</I>] |
| 73 | <DD> [De]select the cell under cursor, or the cell use (instance) |
| 74 | named <I>name</I>. |
| 75 | <DT> <B>top cell</B> |
| 76 | <DD> Select the topmost cell in the window, which does not have |
| 77 | an instance name and therefore cannot be selected with the |
| 78 | <B>select cell</B> command. |
| 79 | <DT> <B>save</B> <I>cell</I> |
| 80 | <DD> Save selection as cell named <I>cell</I>, which is also |
| 81 | saved to disk as <I>cell</I><TT>.mag</TT>. |
| 82 | <DT> <B>clear</B> |
| 83 | <DD> Clear selection |
| 84 | <DT> <B>pick</B> |
| 85 | <DD> Remove the selection from the layout, but retain the |
| 86 | selection buffer for interactive processing. |
| 87 | <DT> <B>keep</B> |
| 88 | <DD> Copy the selection from the layout into the selection |
| 89 | buffer, and keep the selection buffer for interactive |
| 90 | processing. |
| 91 | <DT> <B>move</B> <I>x y</I> |
| 92 | <DD> Move the selection buffer to position <I>x y</I>, |
| 93 | relative to the cell definition origin. |
| 94 | <DT> <B>help</B> |
| 95 | <DD> Print help information |
| 96 | </DL> |
| 97 | </BLOCKQUOTE> |
| 98 | </BLOCKQUOTE> |
| 99 | |
| 100 | <H3>Summary:</H3> |
| 101 | <BLOCKQUOTE> |
| 102 | The <B>select</B> command changes what material is in the current |
| 103 | selection. <B>magic</B> maintains a separate cell definition |
| 104 | that represents the current selection. Without the options |
| 105 | <B>more</B> or <B>less</B>, the selection is cleared prior to |
| 106 | executing the new selection command. Otherwise, <B>more</B> |
| 107 | adds to the existing selection and <B>less</B> subtracts from |
| 108 | it. <P> |
| 109 | |
| 110 | Network selection differs from other types of selection in |
| 111 | that <B>magic</B> uses a sophisticated algorithm to determine |
| 112 | what is electrically connected together throughout the layout. |
| 113 | A <B>chunk</B> is the largest rectangle containing a single |
| 114 | layer type. A <B>region</B> is the largest network area |
| 115 | containing a single layer type. The region stops where the |
| 116 | net connects to a different layer type. The <B>net</B> is |
| 117 | the entire electrical network. <P> |
| 118 | |
| 119 | The <B>select save</B> options differs from the rest in that it |
| 120 | does not alter the current selection, but creates a new cell |
| 121 | definition from the current selection. Note that this cell |
| 122 | is created as a top-level cell, and does not replace the current |
| 123 | selection as a use in the edit cell. To do that requires |
| 124 | "<B>select save</B> <I>cell</I>" followed by "<B>delete</B>" |
| 125 | and "<B>getcell child 0 0 parent 0 0</B>". The last command |
| 126 | syntax is used because the bounds of the selection may differ |
| 127 | from the cursor box. |
| 128 | </BLOCKQUOTE> |
| 129 | |
| 130 | <H3>Implementation Notes:</H3> |
| 131 | <BLOCKQUOTE> |
| 132 | <B>select</B> is implemented as a built-in command in <B>magic</B>. |
| 133 | The <B>select keep</B>, <B>select move</B>, and <B>select pick</B> |
| 134 | are interactive functions used by the "pick" tool. |
| 135 | </BLOCKQUOTE> |
| 136 | |
| 137 | <H3>Bugs:</H3> |
| 138 | <BLOCKQUOTE> |
| 139 | To be consistent, <B>select save</B> should be a separate command, |
| 140 | since like other commands it operates on the selection rather than |
| 141 | alter what is in the selection. |
| 142 | </BLOCKQUOTE> |
| 143 | |
| 144 | <P><IMG SRC=graphics/line1.gif><P> |
| 145 | <TABLE BORDER=0> |
| 146 | <TR> |
| 147 | <TD> <A HREF=commands.html>Return to command index</A> |
| 148 | </TR> |
| 149 | </TABLE> |
| 150 | <P><I>Last updated:</I> December 4, 2005 at 5:06pm <P> |
| 151 | </BODY> |
| 152 | </HTML> |