.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)cifplot.1 4.1 (Berkeley) 4/29/85
cifplot \- CIF interpreter and plotter
takes a description in Cal-Tech Intermediate Form (CIF) and
CIF is a low-level graphics language suitable for describing
integrated circuit layouts.
Although CIF can be used for other graphics applications,
for ease of discussion it will be assumed that CIF is used to
describe integrated circuit designs.
interprets any legal CIF 2.0 description including symbol renaming
and Delete Definition commands.
a number of local extensions have been added to CIF,
including text on plots and include files.
These are discussed later.
Care has been taken to avoid any arbitrary restrictions on
the CIF programs that can be plotted.
with the name of the CIF file to be plotted.
If the CIF description is divided among several files call
with the names of all files to be used.
reads the CIF description from the files in the order
that they appear on the command line.
command should be only in the last file since
ignores everything after the
After reading the CIF description but before plotting,
will print a estimate of the size of the plot
and then ask if it should continue to produce a plot.
A typical run might look as follows:
cifplot lib.cif sorter.cif
Window -5700 174000 -76500 168900
Scale: 1 micron is 0.004075 inches
The plot will be 0.610833 feet
will produce a plot on the Benson-Varian plotter.
recognizes several command line options.
These can be used to change the size and scale of the plot,
change default plot options,
and to select the output device.
Several options may be selected.
A dash(-) must precede each option specifier.
The following is a list of options that may be included on
\fB\-w\fI xmin xmax ymin ymax
The -w options specifies the window;
by default the window is set to be large enough
to contain the entire plot.
The windowing commands lets you plot just a small
section of your chip, enabling you to see it in better
should be specified in CIF coordinates.
The -s option sets the scale of the plot.
By default the scale is set so that the window will fill the
is a floating point number specifying the number of inches
A recommended size is 0.02.
Normally all layers are plotted.
The -l option specifies which layers NOT to plot.
consists of the layer names separated by commas, no spaces.
There are two reserved names:
in the list suppresses the plotting of text;
suppresses the bounding box around symbols.
This option lets you limit the amount of detail plotted
in a hierarchically designed chip.
It will only instanciate the plot down
Sometimes too much detail can hide important features in a circuit.
Draw a grid over the plot with spacing every
Don't print the border outlines around the merged features on each layer.
Plot at half normal resolution.
Accept only standard CIF. User
extensions produce warnings.
Do not ask for confirmation.
Produce a listing of the CIF file on standard output as it is parsed.
Not recommended unless debugging hand-coded CIF
since CIF code can be rather long.
Approximate a roundflash with an
(I.e. roundflashes are approximated by octagons.)
equals 0 then output circles for roundflashes.
(It is best not to use full circles since they significantly
(Full circles not yet implemented.)
Print the text at the top of the plot.
Treat comments as though they were spaces.
Sometimes CIF files created at other universities
will have several errors due to syntactically incorrect comments.
(I.e. the comments may appear in the middle of a CIF command or
the comment does not end with a semi-colon.)
Of course, CIF files should not have any errors
and these comment related errors must be fixed
before transmitting the file for fabrication.
But many times fixing these errors seems to be more trouble
than it is worth, especially if you just want to get a plot.
This option is useful in getting rid of many of these
comment related syntax errors.
Rotate the plot 90 degrees.
Send output to the varian.
(This is the default option.)
Send output directly to the versatec.
Store the output in a temporary file then
dump the output quickly onto the Versatec.
also takes up a lot of disk space.
Send output byte stream to standard output.
Useful for setting up pipes.
is the number of bytes per line that the plotting device expects.
Send output to HP2648A terminal.
is running in the foreground on an HP2648
and that there is a scratch tape in the left tape drive of the terminal.
(Not yet fully implemented.)
From the CIF file create a circuit description
suitable for switch level simulation.
which contains the circuit description, and
which contains the node numbers and their location
used in the circuit description.
When this option is invoked no plot is made.
Therefore it is advisable not to use any of the other
options that deal only with plotting.
options are still appropriate.
To get a plot of the circuit with the node numbers call
in the list of CIF files to be plotted.
(This file must appear in the list of files
before the file with the CIF End command.)
(Not yet fully implemented.)
The -P option lets you specify your own
layers and stipple patterns.
may contain an arbitrary number of layer descriptors.
A layer descriptor is the layer name in double quotes,
Each integer specifies 32 bits
where ones are black and zeroes are white.
Thus the 8 integers specify a 32 by 8 bit stipple pattern.
The integers may be in decimal, octal, or hex.
Hex numbers start with '0x';
octal numbers start with '0'.
The CIF syntax requires that layer names be made up of
only uppercase letters and digits,
and not longer than four characters.
The following is example of a layer description
0x08080808 0x04040404 0x02020202 0x01010101
0x80808080 0x40404040 0x20202020 0x10101010
The -F option indicates which font you want for your text.
The file must be in the directory '/usr/lib/vfont'.
The default font is Roman 6 point.
Obviously, this option is only useful if you have text on your plot.
After parsing the CIF files, store an equivalent but easy to parse
CIF description in the specified file.
This option removes the include and array commands (see next section)
and replaces them with equivalent standard CIF statements.
The resulting file is suitable for transmission to other facilities
In the definition of CIF provisions were made for local extensions.
All extension commands begin with a number.
Part of the purpose of these extensions is to test what features
would be suitable to include as part of the standard language.
But it is important to realize that these extensions are not
standard CIF and that many programs interpreting CIF do not
If you use these extensions it is advisable to create another
options described above before submitting your circuit for fabrication.
The following is a list of extensions recognized by
Read from the specified file
as though it appeared in place of this command.
Include files can be nested up to 6 deep.
\fB0A\fI s m n dx dy \fB;
spacing in the x-direction
spacing in the y-direction.
are signed integers in CIF units.
Print out the message on standard output when it is read.
\fB2\fI "text" transform \fB;
\fB2C\fI "text" transform \fB;
at the position specified by the transformation.
The allowed transformations are the same as the
those allowed for the Call command.
The transformation affects only the point at which the beginning
of the text is to appear.
The text is always plotted horizontally,
thus the mirror and rotate transformations
are not really of much use.
Normally text is placed above and to the right of the reference point.
command centers the text about the reference point.
.BI 94 " name x y layer" ;
is associated with the point
Any mask geometry crossing this point is also associated with
is present then just geometry crossing the point
on that layer is associated with
For plotting this command is similar to text on plot.
When doing circuit extraction this command is used to
give an explicit name to a node.
must not have any spaces in it,
and it should not be a number.
A Guide to LSI Implementation
for a description of CIF.
Introduction to VLSI Systems
Output should be spooled.