Debian Codegraph @

doc/html/plot.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>plot</H2>
22 <HR>
23 Hardcopy plotting
24 <HR>
25
26 <H3>Usage:</H3>
27 <BLOCKQUOTE>
28 <B>plot</B> <I>option</I> <BR><BR>
29 <BLOCKQUOTE>
30 where <I>option</I> may be one of the following:
31 <DL>
32 <DT> <B>postscript</B> <I>file</I> [<I>layers</I>]
33 <DD> Generate a PostScript file of layout underneath the box.
34 <DT> <B>pnm</B> <I>file</I> [<I>scale</I> [<I>layers</I>]]
35 <DD> Generate a <TT>.pnm</TT> ("portable anymap") file of
36 layout underneath the box. The output size is propotional
37 to <I>scale</I>, where a scale of 1 is one output pixel per
38 <B>magic</B> internal unit. The default <I>scale</I>
39 value, if unspecified, is 0.5.
40 <DT> <B>parameters</B> [<I>name value</I>]
41 <DD> Set or print out plotting parameters (see Summary below).
42 <DT> <B>help</B>
43 <DD> Print help information
44 </DL>
45 </BLOCKQUOTE>
46 </BLOCKQUOTE>
47
48 <H3>Summary:</H3>
49 <BLOCKQUOTE>
50 The <B>plot</B> command generates hardcopy plots of a layout.
51 The use of <B>plot</B> for any particular output format requires
52 that the parameters of the format be defined in the <B>plot</B>
53 section of the technology file. However, from magic-7.3.56, the
54 PNM handler will create a default set of output styles from the
55 existing layout styles for the technology. This makes <B>plot
56 pnm</B> compatible with <I>all</I> technology files, regardless
57 of whether or not a section exists for "<B>style pnm</B>". <P>
58
59 Each <B>plot</B> format has its own set of parameters, but all
60 parameters are controlled with the <B>plot parameters</B> option.
61 Valid parameters and their defaults are as follows:
62 <BLOCKQUOTE>
63 General parameters:
64 <TABLE BORDER=0>
65 <TR> <TD> <I>parameter name</I> </TD><TD> <I>default value</I> </TD> </TR>
66 <TR> <TD> <B>showCellNames</B> </TD><TD> <B>true</B> </TD> </TR>
67 </TABLE>
68 PostScript parameters:
69 <TABLE BORDER=0>
70 <TR> <TD> <I>parameter name</I> </TD><TD> <I>default value</I> </TD>
71 <TD> <I>explanation</I> </TD> </TR>
72 <TR> <TD> <B>PS_cellIdFont</B> </TD><TD> <B>/Helvetica</B> </TD>
73 <TD> Font used for writing cell use IDs</TD></TR>
74 <TR> <TD> <B>PS_cellNameFont</B> </TD><TD> <B>/HelveticaBold</B> </TD>
75 <TD> Font used for writing cell definition names</TD></TR>
76 <TR> <TD> <B>PS_labelFont</B> </TD><TD> <B>/Helvetica</B> </TD>
77 <TD> Font used for writing label text</TD></TR>
78 <TR> <TD> <B>PS_cellIdSize</B> </TD><TD> <B>8</B> </TD>
79 <TD> Font size for writing cell use IDs (in points)</TD></TR>
80 <TR> <TD> <B>PS_cellNameSize</B> </TD><TD> <B>12</B> </TD>
81 <TD> Font size for writing cell definition names (in points)</TD></TR>
82 <TR> <TD> <B>PS_labelSize</B> </TD><TD> <B>12</B> </TD>
83 <TD> Font size for writing label text (in points)</TD></TR>
84 <TR> <TD> <B>PS_boundary</B> </TD><TD> <B>true</B> </TD>
85 <TD> Whether to draw boundaries around layers in addition to
86 fill patterns</TD></TR>
87 <TR> <TD> <B>PS_width</B> </TD><TD> <B>612 (8.5in)</B> </TD>
88 <TD> Page width of the target output</TD></TR>
89 <TR> <TD> <B>PS_height</B> </TD><TD> <B>792 (11in)</B> </TD>
90 <TD> Page height of the target output</TD></TR>
91 <TR> <TD> <B>PS_margin</B> </TD><TD> <B>72 (1in)</B> </TD>
92 <TD> Minimum margin to allow on all sides of the output page</TD></TR>
93 </TABLE>
94 PNM parameters:
95 <TABLE BORDER=0>
96 <TR> <TD> <I>parameter name</I> </TD><TD> <I>default value</I> </TD>
97 <TD> <I>explanation</I> </TD> </TR>
98 <TR> <TD> <B>pnmmaxmem</B> </TD><TD> <B>65536</B> </TD>
99 <TD>Maximum memory (in KB) to use to generate output. Larger
100 values allow larger chunks of the layout to be processed
101 at a time. Normally, anything larger than the default
102 will just take a long time to render, so it's better
103 to leave it alone and let the <B>plot pnm</B> routine
104 downsample the image to fit in memory if the size
105 of the layout requires it.</TD> </TR>
106 <TR> <TD> <B>pnmbackground</B> </TD><TD> <B>255</B> </TD>
107 <TD>Value of the background, where 0=black and 255=white.
108 White is default to match the printed page, which is
109 where the plots usually end up. A value of 200 is
110 approximately the default background color in <B>magic</B>.
111 </TD> </TR>
112 <TR> <TD> <B>pnmdownsample</B> </TD><TD> <B>0</B> </TD>
113 <TD>Number of bits to downsample the original layout.
114 In the first pass, one pixel is generated for each
115 <I>n</I> magic internal units in each of x and y,
116 where <I>n</I> is the downsampling value.
117 Each downsampling bit therefore represents a factor
118 of 4 in decreased computation time.
119 Generally speaking, downsampling causes information to
120 be lost in the translation from layout to the PNM file.
121 However, if the grid has been scaled from the original
122 lambda, then downsampling up to the scale factor will
123 have no impact on the output other than speeding up
124 the rendering (because the minimum feature size is
125 still in lambda, so no feature will be overstepped by
126 the downsampling). For example, for a grid scaling
127 of 1:10 the proper downsampling would be 3 bits.
128 Note that layouts that are too large for the allocated
129 memory blocksize <B>pnmmaxmem</B> will force
130 downsampling regardless of the value of
131 <B>pnmdownsample</B>. </TD> </TR>
132 </TABLE>
133 </BLOCKQUOTE>
134
135 PostScript plotting is best suited for drawing small layouts with
136 relatively few components. PNM plotting is best suited for drawing
137 large layouts. For chip-size layouts, the PNM plots are virtually
138 identical to chip photographs. From magic version 7.3.56, plotting
139 PNM files requires no special entries in the technology file.
140 Although such entries can fine-tune the output, this is usually
141 not necessary. Also, since version 7.3.56, magic makes intelligent
142 decisions about memory usage, so it's generally not necessary to
143 change the PNM plot parameters.
144 </BLOCKQUOTE>
145
146 <H3>Implementation Notes:</H3>
147 <BLOCKQUOTE>
148 <B>plot</B> is implemented as a built-in command in <B>magic</B>. <P>
149 Original plot styles <B>versatec</B> and <B>gremlin</B> have been
150 removed, but shells of the code are retained so that magic doesn't
151 complain when encountering styles for these types in a technology
152 file.
153 </BLOCKQUOTE>
154
155 <P><IMG SRC=graphics/line1.gif><P>
156 <TABLE BORDER=0>
157 <TR>
158 <TD> <A HREF=commands.html>Return to command index</A>
159 </TR>
160 </TABLE>
161 <P><I>Last updated:</I> December 4, 2005 at 3:24pm <P>
162 </BODY>
163 </HTML>