| 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>tech</H2> |
| 22 | <HR> |
| 23 | Query properties of the current technology, or change the current |
| 24 | technology. |
| 25 | <HR> |
| 26 | |
| 27 | <H3>Usage:</H3> |
| 28 | <BLOCKQUOTE> |
| 29 | <B>tech</B> <I>option</I> <BR><BR> |
| 30 | <BLOCKQUOTE> |
| 31 | where <I>option</I> may be one of the following: |
| 32 | <DL> |
| 33 | <DT> <B>load</B> <I>filename</I> [<B>-noprompt</B>][<B>-nooverride</B>] |
| 34 | <DD> Load a new technology from the file <I>filename</I>[<TT>.tech</TT>]. |
| 35 | <DT> <B>help</B> |
| 36 | <DD> Display help information |
| 37 | <DT> <B>name</B> |
| 38 | <DD> Show current technology name |
| 39 | <DT> <B>filename</B> |
| 40 | <DD> Show current technology filename |
| 41 | <DT> <B>version</B> |
| 42 | <DD> Show current technology version and description strings |
| 43 | <DT> <B>lambda</B> |
| 44 | <DD> Show internal units per lambda |
| 45 | <DT> <B>planes</B> |
| 46 | <DD> Show defined planes |
| 47 | <DT> <B>layers</B> [<I>layer</I>] |
| 48 | <DD> Show defined layers |
| 49 | <DT> <B>drc</B> <I>option</I> |
| 50 | <DD> Query the DRC ruleset, where <I>option</I> is one of the |
| 51 | following: |
| 52 | <DL> |
| 53 | <DT> <B>width</B> <I>layer</I> |
| 54 | <DD> Return the minimum allowed width for the indicated |
| 55 | layer type. |
| 56 | <DT> <B>spacing</B> <I>layer1</I> [<I>layer2</I>] |
| 57 | <DD> Return the minimum allowed spacing between |
| 58 | <I>layer1</I> and <I>layer2</I>, if <I>layer2</I> |
| 59 | is specified, or between <I>layer1</I> and itself, |
| 60 | if not. |
| 61 | </DL> |
| 62 | </DL> |
| 63 | </BLOCKQUOTE> |
| 64 | </BLOCKQUOTE> |
| 65 | |
| 66 | <H3>Summary:</H3> |
| 67 | <BLOCKQUOTE> |
| 68 | The <B>tech</B> command queries aspects of the current |
| 69 | technology, and can also be used to change the current |
| 70 | technology. The <B>tech load</B> command completely |
| 71 | replaces the technology. Normally a call to <B>tech load</B> |
| 72 | generates a dialog window asking the user for confirmation, |
| 73 | since the <B>tech load</B> command is potentially destructive |
| 74 | and can cause loss of an existing layout. The <B>-noprompt</B> |
| 75 | option forces a technology load without presenting a dialog. |
| 76 | This is particularly useful to put a "<B>tech load</B> <I>name</I> |
| 77 | <B>-noprompt</B>" command in a <TT>.magic</TT> startup |
| 78 | file in the directory of a project, so that it is not necessary to |
| 79 | specify the technology on the command line when invoking <B>magic</B>. |
| 80 | However, occasionally one may want to run magic from the same |
| 81 | project directory with a different technology. |
| 82 | The <B>-nooverride</B> option prevents the <B>tech load</B> command |
| 83 | from overriding a technology name entered on the UNIX |
| 84 | command line when starting <B>magic</B>. <P> |
| 85 | |
| 86 | Technology file reloading is especially useful when |
| 87 | developing a technology file, to immediately see the |
| 88 | results of a change made to the file. The current |
| 89 | technology can be reloaded with the simple Tcl command |
| 90 | "<B>tech load [tech filename]</B>". <P> |
| 91 | |
| 92 | Note that there is a slightly different meaning between |
| 93 | the command "<B>tech layers</B>" and "<B>tech layers "*"</B>". |
| 94 | The former prints a formatted list of layers, including all |
| 95 | aliases for each layer, to the console. The second returns |
| 96 | a Tcl list of all layers, with only the primary name for |
| 97 | each layer. <P> |
| 98 | |
| 99 | A few aspects of the technology must be queried from other |
| 100 | commands. The CIF/GDS input and output styles are given |
| 101 | by the <B>cif istyle</B> and <B>cif ostyle</B> commands, while |
| 102 | the extraction style is given by the <B>extract style</B> |
| 103 | command. <P> |
| 104 | |
| 105 | The <B>drc</B> option is intended for use by Tcl scripted |
| 106 | procedures that wish to place layout while satisfying the |
| 107 | DRC rules. The two accepted <I>rule</I> options are |
| 108 | <B>spacing</B> and <B>width</B>. |
| 109 | </BLOCKQUOTE> |
| 110 | |
| 111 | <H3>Implementation Notes:</H3> |
| 112 | <BLOCKQUOTE> |
| 113 | <B>tech</B> is implemented as a built-in command in <B>magic</B>. |
| 114 | The command replaces the original <B>techinfo</B> command, which |
| 115 | no longer exists. |
| 116 | </BLOCKQUOTE> |
| 117 | |
| 118 | <H3>Bugs:</H3> |
| 119 | <BLOCKQUOTE> |
| 120 | <B>tech drc</B> may not return the correct value in all cases. |
| 121 | </BLOCKQUOTE> |
| 122 | |
| 123 | <P><IMG SRC=graphics/line1.gif><P> |
| 124 | <TABLE BORDER=0> |
| 125 | <TR> |
| 126 | <TD> <A HREF=commands.html>Return to command index</A> |
| 127 | </TR> |
| 128 | </TABLE> |
| 129 | <P><I>Last updated:</I> October 16, 2004 at 1:59pm <P> |
| 130 | </BODY> |
| 131 | </HTML> |