| 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>tool</H2> |
| 22 | <HR> |
| 23 | Change layout tool or print information about what the |
| 24 | button bindings are for the current tool. This page describes the |
| 25 | <B>tool</B> command as implemented in the non-Tcl version of magic. |
| 26 | <HR> |
| 27 | |
| 28 | <H3>Shortcuts:</H3> |
| 29 | <BLOCKQUOTE> |
| 30 | Key macro <I>space</I> implements the command <B>tool</B>. <BR> |
| 31 | Key macro <I>shift-space</I> implements the command <B>tool box</B>. |
| 32 | </BLOCKQUOTE> |
| 33 | |
| 34 | <H3>Usage:</H3> |
| 35 | <BLOCKQUOTE> |
| 36 | <B>tool</B> [<I>name</I>|<B>info</B>] <BR><BR> |
| 37 | <BLOCKQUOTE> |
| 38 | where <I>name</I> may be one of <B>box</B>, <B>wiring</B>, |
| 39 | <B>netlist</B>, or <B>rsim</B>. |
| 40 | </BLOCKQUOTE> |
| 41 | </BLOCKQUOTE> |
| 42 | |
| 43 | <H3>Summary:</H3> |
| 44 | <BLOCKQUOTE> |
| 45 | The <B>tool</B> command selects or queries the mode of operation |
| 46 | of the mouse buttons in the layout window. Each <B>tool</B> |
| 47 | type has a unique set of button bindings. <P> |
| 48 | |
| 49 | Without arguments, the <B>tool</B> command selects the next |
| 50 | tool type in round-robin fashion. With a tool type as argument, |
| 51 | the button bindings switch to those for the indicated tool. |
| 52 | With the <B>info</B> option, a summary of the mouse buttons is |
| 53 | given for the current tool. <P> |
| 54 | |
| 55 | The mouse bindings for each of the three tools is as follows: |
| 56 | <UL> |
| 57 | <LI><I>Box Tool</I> |
| 58 | <DL> |
| 59 | <DT> <B>left</B> |
| 60 | <DD> Move the box so its lower-left corner is at cursor position |
| 61 | <DT> <B>right</B> |
| 62 | <DD> Resize box by moving upper-right corner to cursor position |
| 63 | <DT> <B>middle</B> |
| 64 | <DD> Paint box area with material underneath cursor |
| 65 | </DL> |
| 66 | In addition, you can move or resize the box by different corners |
| 67 | by pressing left or right, holding it down, moving the cursor |
| 68 | near a different corner and clicking the other (left or right) |
| 69 | button down then up without releasing the initial button. |
| 70 | <LI><I>Wiring Tool</I> |
| 71 | <DL> |
| 72 | <DT> <B>left</B> |
| 73 | <DD> Pick a wiring layer and width (same as "<B>wire type</B>") |
| 74 | <DT> <B>right</B> |
| 75 | <DD> Add a leg to the wire (same as "<B>wire leg</B>") |
| 76 | <DT> <B>middle</B> |
| 77 | <DD> Place a contact to switch layers (same as "<B>wire switch</B>") |
| 78 | </DL> |
| 79 | <LI><I>Netlist Tool</I> |
| 80 | <DL> |
| 81 | <DT> <B>left</B> |
| 82 | <DD> Select the net containing the terminal nearest the cursor |
| 83 | <DT> <B>right</B> |
| 84 | <DD> Toggle the terminal nearest the cursor into/out of current net |
| 85 | <DT> <B>middle</B> |
| 86 | <DD> Join current net and net containing terminal nearest the cursor |
| 87 | </DL> |
| 88 | <LI><I>Rsim Tool</I> |
| 89 | <DL> |
| 90 | <DT> <B>left</B> |
| 91 | <DD> |
| 92 | <DT> <B>right</B> |
| 93 | <DD> |
| 94 | <DT> <B>middle</B> |
| 95 | <DD> |
| 96 | </DL> |
| 97 | </UL> |
| 98 | </BLOCKQUOTE> |
| 99 | |
| 100 | <H3>Implementation Notes:</H3> |
| 101 | <BLOCKQUOTE> |
| 102 | <B>tool</B> is implemented as a built-in command in the non-Tcl |
| 103 | version of <B>magic</B>. |
| 104 | </BLOCKQUOTE> |
| 105 | |
| 106 | <H3>See Also:</H3> |
| 107 | <BLOCKQUOTE> |
| 108 | <A HREF=changetool.html><B>tool</B> <I>(Tcl version)</I></A> |
| 109 | </BLOCKQUOTE> |
| 110 | |
| 111 | <P><IMG SRC=graphics/line1.gif><P> |
| 112 | <TABLE BORDER=0> |
| 113 | <TR> |
| 114 | <TD> <A HREF=commands.html>Return to command index</A> |
| 115 | </TR> |
| 116 | </TABLE> |
| 117 | <P><I>Last updated:</I> December 4, 2005 at 5:11pm <P> |
| 118 | </BODY> |
| 119 | </HTML> |