| 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>drc</H2> |
| 22 | <HR> |
| 23 | Background design rule checker control and status. |
| 24 | <HR> |
| 25 | |
| 26 | <H3>Usage:</H3> |
| 27 | <BLOCKQUOTE> |
| 28 | <B>drc</B> <I>option</I> <BR><BR> |
| 29 | <BLOCKQUOTE> |
| 30 | where <I>option</I> is one of the following: |
| 31 | <DL> |
| 32 | <DT> <B>catchup</B> |
| 33 | <DD> Run checker and wait for it to complete |
| 34 | <DT> <B>check</B> |
| 35 | <DD> Recheck area under box in all cells |
| 36 | <DT> <B>count</B> [<B>total</B>] |
| 37 | <DD> Count error tiles in each cell under box. Option <B>total</B> |
| 38 | returns the total number of DRC error tiles in the cell. |
| 39 | <DT> <B>euclidean on</B>|<B>off</B> |
| 40 | <DD> Enable/disable Euclidean geometry checking |
| 41 | <DT> <B>find</B> [<I>nth</I>] |
| 42 | <DD> Locate next (or <I>nth</I>) error in current cell |
| 43 | <DT> <B>help</B> |
| 44 | <DD> Print help information |
| 45 | <DT> <B>off</B> |
| 46 | <DD> Turn off background checker |
| 47 | <DT> <B>on</B> |
| 48 | <DD> Reenable background checker |
| 49 | <DT> <B>status</B> |
| 50 | <DD> Report whether the background checker is on or off. |
| 51 | <DT> <B>printrules</B> [<I>file</I>] |
| 52 | <DD> Print out design rules in <I>file</I> or to <TT>stdout</TT> |
| 53 | <DT> <B>rulestats</B> |
| 54 | <DD> Print out statistics about design rule database |
| 55 | <DT> <B>statistics</B> |
| 56 | <DD> Print out statistics gathered by checker |
| 57 | <DT> <B>why</B> |
| 58 | <DD> Print out reasons for errors under box |
| 59 | <DT> <B>*halo</B> [<I>value</I>] |
| 60 | <DD> Without option <I>value</I>, prints out the DRC halo distance, |
| 61 | which is the largest distance at which a DRC interaction can |
| 62 | occur outside of any area to be checked. Becuase large DRC |
| 63 | haloes can cause very long delays in the interactive DRC |
| 64 | checks, it can be helpful to use <I>value</I> to force a |
| 65 | smaller halo. This causes certain DRC errors to be missed, |
| 66 | but allows all the basic short-distance design rules to be |
| 67 | checked without undue processing delays. |
| 68 | <DT> <B>*stepsize</B> [<I>value</I>] |
| 69 | <DD> The step size is the length of a side of the area into which |
| 70 | the DRC checker routine breaks up larger areas for more |
| 71 | efficient processing. Changing this value can greatly |
| 72 | effect the speed of the DRC checker, although it is |
| 73 | difficult to predict what step size is "optimal". Without |
| 74 | option <I>value</I>, returns the current value of the |
| 75 | step size. |
| 76 | </DL> |
| 77 | </BLOCKQUOTE> |
| 78 | </BLOCKQUOTE> |
| 79 | |
| 80 | <H3>Summary:</H3> |
| 81 | <BLOCKQUOTE> |
| 82 | The <B>drc</B> command controls the behavior of magic's "background" |
| 83 | design rule checker. Normally the design rule checker is invoked |
| 84 | whenever the design is changed and checks all parts of the design |
| 85 | close to the changed area that might have been affected by the |
| 86 | change. The design rule checker flags areas that have been checked |
| 87 | as it runs. It starts whenever a layout change has been made or |
| 88 | after any command has been executed if areas of the layout still |
| 89 | need to be checked. Any macro keystroke in the layout window or |
| 90 | command executed on the command line will interrupt the design |
| 91 | rule checker pending completion of the action, at which time |
| 92 | the design rule checker will be reactivated. <P> |
| 93 | |
| 94 | The <B>drc on</B> and <B>drc off</B> options are the main controls |
| 95 | for starting and stopping the design rule checker. <B>drc status</B> |
| 96 | returns the status of the background checker, either "on" or "off". |
| 97 | The Tcl version of magic returns a boolean value (0 or 1). <P> |
| 98 | |
| 99 | The <B>drc check</B> option marks all areas of the layout under the |
| 100 | box as requiring a check and restarts the design rule checker. <P> |
| 101 | |
| 102 | The <B>drc why</B> and <B>drc find</B> commands can be used to |
| 103 | query errors in the layout discovered by the design rule checker. |
| 104 | <B>drc why</B> reports the reason for all error regions found |
| 105 | inside the <B>magic</B> cursor box. The <B>drc find</B> command |
| 106 | can be used to find errors that may not be visible inside the |
| 107 | current window view, or that may be difficult to find on a large |
| 108 | layout. <P> |
| 109 | |
| 110 | The <B>drc euclidean on</B> command can be useful in cases where |
| 111 | vendor design rules intend a Euclidean distance metric (minimum |
| 112 | linear distance) rather than a Manhattan distance metric (minimum |
| 113 | distance in either the <B>x</B> or <B>y</B> direction, evaluated |
| 114 | separately). The default option is "off", as most vendor rules |
| 115 | and design rule checkers assume Manhattan distances when checking |
| 116 | rules. <P> |
| 117 | |
| 118 | The remaining options are relativly obscure and unlikely to be |
| 119 | useful to the typical end-user.</P> |
| 120 | </BLOCKQUOTE> |
| 121 | |
| 122 | <H3>Implementation Notes:</H3> |
| 123 | <BLOCKQUOTE> |
| 124 | <B>drc</B> is implemented as a built-in <B>magic</B> command. |
| 125 | </BLOCKQUOTE> |
| 126 | |
| 127 | <P><IMG SRC=graphics/line1.gif><P> |
| 128 | <TABLE BORDER=0> |
| 129 | <TR> |
| 130 | <TD> <A HREF=commands.html>Return to command index</A> |
| 131 | </TR> |
| 132 | </TABLE> |
| 133 | <P><I>Last updated:</I> December 4, 2005 at 5:39pm <P> |
| 134 | </BODY> |
| 135 | </HTML> |