Download Capture User's Guide

Transcript
capug.book Page 256 Thursday, November 12, 1998 3:38 PM
Chapter 14 Preparing to create a netlist
Swap file format
Note OrCAD Layout creates a combined
swap and update file. See Capture’s online
help for more information on creating a
combined swap and update file.
A swap file is an ASCII text file containing old and new
part references. A swap file is typically created by another
application, such as OrCAD Layout. You can also create a
swap (.SWP) file using a text editor that can save the file in
ASCII format. The file can include comments; any text to
the right of a semicolon is ignored by the Back Annotate
tool. Each line in a swap file, unless preceded by a
semicolon, causes one action. The elements of each line
may be separated with any number of space or tab
characters. In general, the first element of the line specifies
the type of swap. If no swap type is specified,
CHANGEREF is assumed. The other swap types are
GATESWAP, PINSWAP, and CHANGEPIN.
Note Swap files created by OrCAD’s PCB
386+ are was/is files. These files contain
no keyword identifiers; therefore, each line
is assumed to be a CHANGEREF instruction.
In the swap file example above, the line
without a keyword identifier (the second
line) is an example of how changes are
specified in a was/is file generated by PCB
386+.
The following example illustrates a swap file. The
comments to the right of the semicolons describe what the
swap file will do.
CHANGEREF
reference U1 to U2
U1
U1C
renerence U1C to U2C
GATESWAP
U1
and U2
GATESWAP
U1A
and U1B
CHANEGPIN
U7
to pin 2
CHANGEPIN
U7
to pin 1
CHANGEPIN
U5B
named D0 to D1
CHANGEPIN
U5B
named D1 to Do
U2
;Change part
U2C
;Change part
U2
;Swap parts U1
U1B
;Swap gates UA
1
2
;Change pin 1
2
1
;Change pin 2
“D0”
“D1”
;Change pin
“D1”
“D0”
;Change pin
Note that there are two CHANGEPIN commands for each
pin swap. If you entered just one line to change pins, for
example:
CHANGEPIN
U7
1
2
The original pin 1 is changed to pin 2; however, if you
already have a pin 2, you will end up with two of them,
unless you change the original pin 2 to something else. For
this reason, a second line is needed to go with the first line.
256