| 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>ext2spice, exttospice</H2> |
| 22 | <HR> |
| 23 | Convert extracted file(s) to a SPICE format file. |
| 24 | <HR> |
| 25 | |
| 26 | <H3>Usage:</H3> |
| 27 | <BLOCKQUOTE> |
| 28 | <B>ext2spice</B> [<I>option</I>] <BR><BR> |
| 29 | <BLOCKQUOTE> |
| 30 | where <I>option</I> is one of the following: |
| 31 | <DL> |
| 32 | <DT> [<B>run</B>] [<I>runtime_options</I>] |
| 33 | <DD> Run <B>ext2spice</B> on current cell, with command-line options |
| 34 | (see Summary, below). |
| 35 | <DT> <B>default</B> |
| 36 | <DD> Reset to default values |
| 37 | <DT> <B>format hspice</B>|<B>spice2</B>|<B>spice3</B> |
| 38 | <DD> Set output format. <B>spice3</B> is the default, |
| 39 | for compatibility with <B>tclspice</B>. This is a |
| 40 | change from previous versions of magic, where the |
| 41 | default was <B>hspice</B>. |
| 42 | <DT> <B>rthresh</B> [<I>value</I>] |
| 43 | <DD> Set resistance threshold value. Lumped resistances |
| 44 | below this value will not be written to the output. The |
| 45 | value is in ohms, or may be the keyword <B>infinite</B> |
| 46 | to prohibit writing any lumped resistances to the output. |
| 47 | <DT> <B>cthresh</B> [<I>value</I>] |
| 48 | <DD> Set capacitance threshold value. The value is in femtofarads, |
| 49 | or may be the keyword <B>infinite</B> to prohibit writing |
| 50 | any parasitic capacitances to the output. |
| 51 | <DT> <B>merge</B> [<I>merge_option</I>] |
| 52 | <DD> Merge parallel devices/transistors. The valid merge options are: |
| 53 | <BLOCKQUOTE> |
| 54 | <DL> |
| 55 | <DT><B>conservative</B> |
| 56 | <DD> Merge transistors and capacitors having the same device |
| 57 | type and node connections and having the same width and |
| 58 | length. Widths are summed in the final output for |
| 59 | transistors. Capacitor values are summed in the final |
| 60 | output. |
| 61 | <DT><B>aggressive</B> |
| 62 | <DD> Merge transistors having the same node |
| 63 | connections and having the same length. Widths |
| 64 | are summed in the final output. Merge any capacitors |
| 65 | having the same device type and node connections. |
| 66 | Capacitance is summed in the final output. |
| 67 | <DT><B>none</B> |
| 68 | <DD> Do not merge any devices. |
| 69 | </DL> |
| 70 | </BLOCKQUOTE> |
| 71 | <DT> <B>extresist on</B>|<B>off</B> |
| 72 | <DD> Incorporate output from the command <B>extresist</B> into |
| 73 | the final SPICE file. |
| 74 | <DT> <B>resistor tee</B> [<B>on</B>|<B>off</B>] |
| 75 | <DD> Model resistor capacitance as a T-network. Each resistor |
| 76 | device is split into two, with all substrate and overlap |
| 77 | capacitance placed on the node between the two half-length |
| 78 | devices. Without this option, resistor devices lose all |
| 79 | parasitic capacitance information, and <B>ext2spice</B> |
| 80 | may produce warnings about unknown nodes. However, use of |
| 81 | this option may conflict with LVS (layout-vs.-schematic), |
| 82 | when only one resistor is expected per drawn device. |
| 83 | <DT> <B>subcircuits</B> [<B>on</B>|<B>off</B>] |
| 84 | <DD> When set to <B>on</B> (the default), standard cells become |
| 85 | subcircuit calls ("X") in the SPICE output. The contents |
| 86 | of the standard cells are not output, and it is assumed |
| 87 | that a pre-characterized SPICE deck exists modeling the |
| 88 | behavior of each standard cell definition. Standard cells |
| 89 | are defined by the use of the <B>port</B> method for |
| 90 | labeling input and output ports. When set to <B>off</B>, |
| 91 | ports are ignored, and the entire circuit hierarchy is |
| 92 | flattened down to the device level. |
| 93 | <DT> <B>help</B> |
| 94 | <DD> Print help information. |
| 95 | </DL> |
| 96 | </BLOCKQUOTE> |
| 97 | </BLOCKQUOTE> |
| 98 | |
| 99 | <H3>Summary:</H3> |
| 100 | <BLOCKQUOTE> |
| 101 | Without options, or with the option <B>run</B>, |
| 102 | the <B>ext2spice</B> command converts the hierarchical extracted |
| 103 | netlist information produced by the <B>extract</B> command in |
| 104 | a series of <TT>.ext</TT> files into a flattened representation |
| 105 | in SPICE format, used for detailed analog simulation. <P> |
| 106 | |
| 107 | <I>runtime_options</I> may be passed on the command line, and |
| 108 | represent the original command-line options passed to the |
| 109 | standalone version of ext2spice. A number of the original |
| 110 | command-line options have been deprecated in the Tcl-based |
| 111 | version, and some are duplicated by other <B>ext2spice</B> options. |
| 112 | Valid <I>runtime_options</I> are: |
| 113 | <BLOCKQUOTE> |
| 114 | <DL> |
| 115 | <DT> <B>-B</B> |
| 116 | <DD> Don't output transistor or node attributes in the SPICE file. |
| 117 | This option will also disable the output of information such |
| 118 | as the area and perimeter of source and drain diffusion and |
| 119 | the FET substrate. |
| 120 | <DT> <B>-F</B> |
| 121 | <DD> Don't output nodes that aren't connected to devices (floating |
| 122 | nodes). |
| 123 | <DT> <B>-t</B><I>char</I> |
| 124 | <DD> Trim characters from node names when writing the output file. |
| 125 | <I>char</I> should be either "<B>#</B>" or "<B>!</B>". The |
| 126 | option may be used twice if both characters require trimming. |
| 127 | <DT> <B>-y</B> <I>num</I> |
| 128 | <DD> Select the precision for outputting capacitors. The default is |
| 129 | 1 which means that the capacitors will be printed to a precision |
| 130 | of 0.1 fF. |
| 131 | <DT> <B>-J</B> <B>hier</B>|<B>flat</B> |
| 132 | <DD> Select the source/drain area and perimeter extraction algorithm. |
| 133 | If <B>hier</B> is selected then the areas and perimeters are |
| 134 | extracted only within each subcell. For each device in a |
| 135 | subcell the area and perimeter of its source and drain within |
| 136 | this subcell are output. If two or more devices share a |
| 137 | source/drain node then the total area and perimeter will be |
| 138 | output in only one of them and the other will have 0. If |
| 139 | <B>flat</B> is selected the same rules apply, only the scope |
| 140 | of search for area and perimeter is the whole netlist. In |
| 141 | general, <B>flat</B> (which is the default) will give accurate |
| 142 | results (it will take into account shared sources/drains). |
| 143 | </DL> |
| 144 | </BLOCKQUOTE> |
| 145 | |
| 146 | With options, the command sets various parameters affecting the |
| 147 | output format and content. <P> |
| 148 | </BLOCKQUOTE> |
| 149 | |
| 150 | <H3>Implementation Notes:</H3> |
| 151 | <BLOCKQUOTE> |
| 152 | <B>ext2spice</B> is implemented as a separate loadable Tcl package, |
| 153 | but one which depends on the presence of the standard "tclmagic" |
| 154 | package. <B>magic</B> is set up with a placeholder command for |
| 155 | <B>ext2spice</B>, and will automatically load the Tcl package when |
| 156 | this command is invoked. <P> |
| 157 | |
| 158 | <B>exttospice</B> is an alias for <B>ext2spice</B>, to satisfy the |
| 159 | grammatically anal retentive. |
| 160 | </BLOCKQUOTE> |
| 161 | |
| 162 | <H3>See Also:</H3> |
| 163 | <BLOCKQUOTE> |
| 164 | <A HREF=extract.html><B>extract</B></A> <BR> |
| 165 | <A HREF=ext2sim.html><B>ext2sim</B></A> <BR> |
| 166 | </BLOCKQUOTE> |
| 167 | |
| 168 | <P><IMG SRC=graphics/line1.gif><P> |
| 169 | <TABLE BORDER=0> |
| 170 | <TR> |
| 171 | <TD> <A HREF=commands.html>Return to command index</A> |
| 172 | </TR> |
| 173 | </TABLE> |
| 174 | <P><I>Last updated:</I> October 12, 2005 at 9:40pm <P> |
| 175 | </BODY> |
| 176 | </HTML> |