Debian Codegraph @

doc/html/array.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>array</H2>
22 <HR>
23 Array everything in the current selection
24 <HR>
25
26 <H3>Usage:</H3>
27 <BLOCKQUOTE>
28 <B>array</B> <I>option</I> <BR><BR>
29 <BLOCKQUOTE>
30 where <I>option</I> is one of the following:
31 <DL>
32 <DT> <I>xsize ysize</I>
33 <DD> Array the selection with <I>xsize</I> copies in the <B>x</B>
34 (horizontal) direction and <I>ysize</I> copies in the <B>y</B>
35 (vertical) direction. Array pitch is determined by the
36 current cursor box.
37 <DT> <I>xlo xhi ylo yhi</I>
38 <DD> Array the selection with indices <I>xlo, xhi, ylo</I>, and
39 <I>yhi</I> inclusive. Thus, (<I>xhi</I> - <I>xlo</I> + 1)
40 copies will be created in the <B>x</B> direction and
41 (<I>yhi</I> - <I>ylo</I> + 1) copies will be created in the
42 <B>y</B> direction. Arrayed cell uses will be numbered according
43 to the indices. Array pitch is determined by the current
44 cursor box.
45 <DT> <B>count</B> [[<I>xlo</I>] <I>xhi</I> [<I>ylo</I>] <I>yhi</I>]
46 <DD> With no arguments, returns the array indices of the currently
47 selected cell. With arguments, is equivalent to the first two
48 options (see above).
49 <DT> <B>width</B> [<I>value</I>]
50 <DD> With no arguments, returns the array spacing in <B>x</B> of
51 the currently selected cell. With arguments, redefines the
52 spacing in <B>x</B> between cells in the array.
53 <DT> <B>height</B> [<I>value</I>]
54 <DD> With no arguments, returns the array spacing in <B>y</B> of
55 the currently selected cell. With arguments, redefines the
56 spacing in <B>y</B> between cells in the array.
57 <DT> <B>pitch</B> [<I>x y</I>]
58 <DD> With no arguments, returns the array spacing in <B>x</B> and
59 <B>y</B> of the currently selected cell. With arguments,
60 redefines the spacing in <B>x</B> and <B>y</B> between cells
61 in the array.
62 <DT> <B>position</B> [<I>x y</I>]
63 <DD> With no arguments, returns the position of the array origin.
64 With arguments, redefines the array origin.
65 <DT> <B>help</B>
66 <DD> Print help information
67 </DL>
68 </BLOCKQUOTE>
69 </BLOCKQUOTE>
70
71 <H3>Summary:</H3>
72 <BLOCKQUOTE>
73 The <B>array</B> command creates multiple copies of the current
74 paint selection. In the case of selected paint, only the first
75 two options are available, and the function makes multiple copies
76 of the selected paint in the <B>x</B> and/or <B>y</B> direction(s).
77 In the case of selected cells, the cell is copied multiple times
78 but is maintained in the database as an <I>array</I> type, rather
79 than multiple individual uses. As an <I>array</I> type, certain
80 functions such as <B>move</B> or <B>copy</B> operate on the array
81 as a single unit, and subsequent calles to the <B>array</B>
82 command may resize the array. <P>
83
84 The cursor box defines the pitch between cells or paint copies
85 in the array. The height of the box is the pitch in <B>y</B>,
86 and the width of the box is the pitch in <B>x</B>. <P>
87
88 The Tcl version allows useful constructs on the command line
89 such as:
90 <BLOCKQUOTE>
91 <B>array width [expr {1 + [array width]}]</B> <BR>
92 <B>move s [array height]</B>
93 </BLOCKQUOTE>
94 The first example expands the pitch of the array by 1 unit in
95 the <B>x</B> direction without requiring explicitly sizing the
96 cursor box to match the array pitch. The second example moves
97 the array down by the <B>y</B pitch of the array, for instance,
98 to make room for one more cell. Cells are arrayed to the
99 right and above the current selection, so this is the only
100 useful way to expand an array to the left or down.
101 </BLOCKQUOTE>
102
103 <H3>Implementation Notes:</H3>
104 <BLOCKQUOTE>
105 <B>array</B> is implemented as a <B>magic</B> built-in command.
106 Command options which return values from a selected array
107 generate Tcl results in the Tcl version of <B>magic</B>.
108 </BLOCKQUOTE>
109
110 <P><IMG SRC=graphics/line1.gif><P>
111 <TABLE BORDER=0>
112 <TR>
113 <TD> <A HREF=commands.html>Return to command index</A>
114 </TR>
115 </TABLE>
116 <P><I>Last updated:</I> October 16, 2004 at 2:20pm <P>
117 </BODY>
118 </HTML>