Debian Codegraph @

doc/html/box.html

raw symbols SCIP
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>box</H2>
22 <HR>
23 Move box dist units in direction or (with no arguments) show box size.
24 <HR>
25
26 <H3>Shortcuts:</H3>
27 <BLOCKQUOTE>
28 Key macro <B>b</B> implements the command <B>box</B> (with no arguments),
29 which prints information about the box to the console (terminal
30 <TT>stdout</TT>).
31 </BLOCKQUOTE>
32
33 <H3>Usage:</H3>
34 <BLOCKQUOTE>
35 <B>box</B> [<I>option</I>] <BR><BR>
36 <BLOCKQUOTE>
37 where <I>option</I> is one of the following:
38 <DL>
39 <DT> [<A HREF=direction.html><I>direction</I></A>
40 [<A HREF=distance.html><I>distance</I></A>]]
41 <DD> Move the box in the indicated direction by the indicated distance.
42 <DT> <B>width</B> [<I>width</I>]
43 <DD> Set or return box width
44 <DT> <B>height</B> [<I>height</I>]
45 <DD> Set or return box height
46 <DT> <B>size</B> [<I>width height</I>]
47 <DD> Set or return box size
48 <DT> <B>position</B> [<I>llx lly</I>] [<B>-edit</B>]
49 <DD> Set or return box position
50 <DT> <B>values</B> [<I>llx lly urx ury</I>] [<B>-edit</B>]
51 <DD> Set or return box coordinates.
52 <DT> <B>move</B> <I>direction distance</I>|<B>cursor</B>
53 <DD> Move box position
54 <DT> <B>grow</B> <I>direction distance</I>
55 <DD> Expand box size
56 <DT> <B>shrink</B> <I>direction distance</I>
57 <DD> Shrink box size
58 <DT> <B>corner</B> <I>direction distance</I>|<B>cursor</B>
59 <DD> Reposition a box corner
60 <DT> <B>exists</B>
61 <DD> Is the cursor box present?
62 <DT> <B>help</B>
63 <DD> Print help information
64 </DL>
65 </BLOCKQUOTE>
66 </BLOCKQUOTE>
67
68 <H3>Summary:</H3>
69 <BLOCKQUOTE>
70 The <B>box</B> command, with no arguments, prints information about
71 the current position and size of the cursor box to the console
72 (terminal <TT>stdout</TT>). The output shows the lower-left
73 and upper-right coordinates of the box, plus the box width, height,
74 and area. These coordinates and dimensions are shown both in
75 microns and in lambda units. If the internal grid has been
76 subdivided to a finer grid than lambda, then internal units will
77 also be reported. <P>
78
79 With arguments, the <B>box</B> command adjusts the position and
80 dimensions of the cursor box as outlined in the Usage section
81 (see above). The <B>-edit</B> switch causes coordinate values
82 to be reported relative to the origin of the current edit cell,
83 if the edit cell is not the topmost cell in the layout window. <P>
84
85 For a discussion of valid distances, see the page
86 <A HREF=distance.html><I>distance</I></A>. This includes
87 dimensional values such as <I>width</I> and <I>height</I>, e.g.,
88 <BLOCKQUOTE>
89 <B>box width 1.2um</B>
90 </BLOCKQUOTE>
91 Note that because metric dimensions do not always match lambda
92 dimensions, the dimension may be rounded down to the nearest
93 lambda. This is important in case this use of <B>box</B> is
94 intended to meet some DRC requirement. For the options <B>move</B>
95 and <B>corner</B>, the <I>distance</I> may be the keyword
96 "<B>cursor</B>", indicating that the box should be moved or
97 the corner repositioned to the position of the cursor.
98 These versions of the command implement the standard mouse
99 button bindings for the "box tool" in layout windows. <P>
100
101 For a discussion of valid directions, see the page
102 <A HREF=direction.html><B>direction</B></A>.
103 Note that special cases <B>box grow center</B> and
104 <B>box shrink center</B> will cause the box to expand or shrink on
105 all sides, whereas <B>box move center</B> is nonfunctional.
106 Also, the <B>box corner</B> command expects the direction to be
107 a nonmanhattan direction (<B>ur</B>, <B>bl</B>, etc.), indicating
108 the corner to be repositioned.
109 </BLOCKQUOTE>
110
111 <H3>Implementation Notes:</H3>
112 <BLOCKQUOTE>
113 <B>box</B> is implemented as a <B>magic</B> built-in command.
114 Command options with keywords and no arguments return Tcl results in
115 the Tcl version of <B>magic</B>. However, to be backwardly compatible
116 with versions of <B>magic</B> prior to 7.3, the <B>box</B> command with
117 no arguments prints information directly to <TT>stdout</TT> (the
118 command-line console). The separate option <B>box values</B> is
119 provided to return the two box coordinates (lower-left and upper-right)
120 as a Tcl list. <P>
121
122 The use of returned Tcl values allows various useful constructs on the
123 command-line, such as:
124 <BLOCKQUOTE>
125 <B>box move e [box width]</B>
126 <B>box height [box width]</B>
127 </BLOCKQUOTE>
128 The first example moves the box to the right by the width of the box,
129 while the second example makes the box square by adjusting the height
130 to match the width.
131 </BLOCKQUOTE>
132
133 <H3>See Also:</H3>
134 <BLOCKQUOTE>
135 <A HREF=snap.html><B>snap</B></A>
136 <A HREF=scalegrid.html><B>scalegrid</B></A>
137 </BLOCKQUOTE>
138
139 <P><IMG SRC=graphics/line1.gif><P>
140 <TABLE BORDER=0>
141 <TR>
142 <TD> <A HREF=commands.html>Return to command index</A>
143 </TR>
144 </TABLE>
145 <P><I>Last updated:</I> November 8, 2004 at 2:53pm <P>
146 </BODY>
147 </HTML>