Professional Documents
Culture Documents
Schematic Translator
The terms and conditions governing the sale and licensing of Engineering
DataXpress products are set forth in the written contracts between
Engineering DataXpress and its customers. No representation or other
affirmation of fact contained in this publication shall be deemed to be a
warranty or give rise to any liability of Engineering DataXpress whatsoever.
The information in this document is intended for use with the releases of
OrCAD software that are specified in the manual text.
Printed in U.S.A.
DXL1701 Schematic Translator Manual Table of Contents
TABLE OF CONTENTS
About This Manual............................................................................................i
Prerequisite Knowledge...........................................................................i
Manual Organization...............................................................................i
Related Publications...............................................................................ii
Overview.........................................................................................................iii
What is EDIF?.........................................................................................iii
What is the DXL1701?...........................................................................iii
Major Features of the DXL1701 Schematic Translator..........................iv
Requirements........................................................................................iv
Section 1 - The cap2edif Module.....................................................................1
Section Overview..........................................................................1
How Does cap2edif Work?............................................................1
What Does the Configuration File Do?...................................................3
Structure of the Configuration File.........................................................3
Export Design Dialog Box .....................................................................4
Section 2 – Capture to EDIF Schematic Writer................................................1
'Introduction: cap2edif'..........................................................................1
'Key Concepts: Capture and EDIF'..........................................................1
Libraries and Directories...............................................................1
Cells, Views, Symbols, and Schematics........................................1
Pins and Ports...............................................................................2
Parameters, Properties, and Attributes........................................2
Section 3 - How to Run the Capture to EDIF Translator..................................1
Section Overview...................................................................................1
Running Capture to EDIF........................................................................1
Getting Help On the Edit Window Arguments........................................2
Preparing Schematics to be Translated.................................................2
Selecting Input, Output, and Configuration Files...................................2
Default Configuration Files...........................................................3
Using Design and Translator Specific Configuration Files............3
Using Special Characters in the Configuration Files.....................4
Generating Binary EDIF Databases..............................................5
Producing Human Readable Output.............................................5
Selecting the Symbols and Schematics to be Translated......................5
Selecting Specific Files to Translate (Without Hierarchy).............5
Selecting Symbols and Symbol Libraries to be Translated...........6
Translating a Design Tree.............................................................6
Selecting Portions of a Design Hierarchy.....................................7
Expanding Schematics with Sheets or Multiple Symbols.............7
Translating and Using Libraries..............................................................8
DXL1701 Schematic Translator Manual Table of Contents
Configuration Files.................................................................................1
Command/Configuration Options...........................................................1
Section 6 - cap2edif Error Messages...............................................................1
Status Messages....................................................................................1
Error Messages.......................................................................................1
DXL1701 Schematic Translator Manual About This Manual
Prerequisite Knowledge
This manual assumes that you are familiar with the concepts and
information listed below:
• OrCAD Capture
Manual Organization
The Overview section provides a general description of the DXL1701.
October 1999 1
DXL1701 Schematic Translator Manual About This Manual
Related Publications
The following OrCAD manual contains important information on related
topics:
October 1999 2
DXL1701 Schematic Translator Manual Overview
Overview
What is EDIF?
EDIF stands for Electronic Design Interchange Format, a data interchange
format designed to account for all types of electronic design information,
including schematic design, symbolic and physical layout, connectivity, and
textual information, such as properties.
The name of the program performing this task is cap2edif. cap2edif takes
as its input schematics and symbols created with the OrCAD Capture
schematic system and creates as its output an EDIF file describing the
schematics and symbols. You can think of this program as the "write" or
"output" module in that it allows you to port your OrCAD Capture generated
designs to other systems.
October 1999 3
DXL1701 Schematic Translator Manual Overview
Requirements
For the DXL1701 program to work properly, please ensure the following:
October 1999 4
DXL1701 Schematic Translator Manual The cap2edif Module
• cap2edif Module
The configuration file is a text file that you create for specifying
commands which control the cap2edif operation. Though it is an
optional item, the configuration file is usually involved in a
translation.
Create the configuration file as you would any other text file,
entering the information you need. Then, when you run cap2edif,
specify the name of the configuration file you want to use.
The EDIF file is created when you run the cap2edif module. Each
Capture symbol creates a symbol in the EDIF file; each page of a
Capture schematic creates a page in the EDIF file.
• Define libraries.
• Commands that specify data about a property for which EDIF has
its own standard name (called a keyword or attribute).
• Commands that specify system unit types and values for properties
and attributes.
Save As line
outdir / filename
Note that brackets [ ] are used to indicate optional parts of arguments and
an ellipsis (. . .) indicates the argument may be repeated one or more times.
These should not be included in the actual command line of the edit window
or configuration file.
The translation may be for a single Capture schematic or symbol file, or may
be a collection of schematics, schematic hierarchies, and symbol libraries.
The definitions for symbols referenced in schematic files may be translated
from the EDIF input file, or a reference may be made to symbol libraries,
which have been translated separately.
In order to select the files or design hierarchies and to help tailor the
translation process to accommodate the particular requirements of a
particular target system, users may provide options to cap2edif via
configuration files. Described in detail below is how to use these options to
perform transformations on the data as it is being mapped to the EDIF
output file.
The Capture system makes use of groups of symbols and schematics called
libraries, which are mapped into file system directories. Within the EDIF file,
collections of cells are grouped together into libraries.
The Capture symbol and schematic are represented as one entity in EDIF,
typically as a cell with a symbol and contents. Within a cell, there can be
alternative views, which can be used for a variety of purposes. Typically
multiple views for schematic systems would be used to represent alternative
symbols (e.g. DeMorgan equivalents) for the same cell (schematic/gate).
OrCAD Capture supports two views for a part. These views are called the
“Normal” view and the “Convert” view. EDIF cells with a normal view and a
convert view will be grouped into OrCAD Capture parts with a normal and
convert view. Views with names other than “Normal” and “Convert” will be
mapped into “Normal” and “Convert” views if the pin names and connect
locations are the same, otherwise they will be mapped into separate OrCAD
Capture parts.
The Capture pins and I/O connectors called hierarchical ports are the nets,
which form hierarchical connections. In EDIF these are called ports. We may
use the name port and pin interchangeably.
EDIF parameters are a part of EDIF Level 1, which is not widely supported
(most systems use level 0). Some systems may require their properties to
be represented by EDIF parameters, so there is a way to map Capture
properties to EDIF parameters.
4. In the "Save As" line, type the name of what you wish to call the EDIF file,
or use the “Browse” button.
5. In the "Configuration file" line, type the location and name of the cap2edi
configuration file, or use the “Browse” button.
7. There will be a file called cap2edi.log created in the same directory for
the design you selected for #1. Check this log file for errors and warnings.
1. Select a design in OrCAD Capture. (It doesn't matter which one since it's
not going to be translated.)
-helpall
7. There will also be a file called cap2edi.log created in the same directory
for design you selected for #1, you can check that file as well.
Open cpu.dsn
Save As cpu.edi
Configuration file toMentor.cfg
Here, the file cpu.dsn is the OrCAD schematic file generated using Capture.
A list of schematic files could have been given and a library file may also be
explicitly included. The library files defined for Capture will be automatically
searched to locate the symbol definitions used in the schematics.
The “Save As” line specifies that the EDIF output will be placed in the
cpu.edi file in the current directory.
set CAP2EDICFG=C:\cap2edi.cfg
This example command causes cap2edif to read the configuration file from
the root directory on the C: drive rather than from the current directory. NT
users may use the environment systems menu under settings, control
panel.
For many people, setting a default configuration file in the root directory will
suffice. However, a more complex arrangement of the configuration files
may be useful for specifying options that change from design to design, or
which depend on the target system. The -c option can be used nested within
a configuration file to include common options in another file.
-c c:\cap2edif\cap2edi.cfg
When name mapping options are used, it is useful to place all of these
design specific name mapping options into a separate configuration file
which could be included by the main configuration file. Since the names and
format of these options are identical for edif2cap and cap2edif, the same
configuration file can be used to translate into and out of Capture.
If a string value for an option is to contain spaces, then the value must be
enclosed in quotes. Consider the example configuration file:
Save As cpu.qdb
Normally, the ASCII EDIF output files are only read by another translator, so
the output is produced in a compressed form with no indentation and extra
spaces removed. The output file written can be pretty printed with indented
parentheses using the option in the configuration file:
-pretty
For a simple case, the schematic power in the design cmoscpu.dsn can be
selected for translation with
-i cmoscpu.dsn/POWER
In addition, the symbols in the library search path, which are referenced in
the schematic files, will also be included (unless an external library is
specified in the configuration file).
-i lib.olb/cpu.Normal
specifies that the normal view of the cpu symbol will be translated. If the
schematic file name is found, then the schematic will also be translated
along with its referenced symbols, but the referenced symbols will not have
their schematics translated. File name and symbol name extensions are
required here.
The -s option is similar to -i, except only the symbol will be translated and
the schematic will be ignored (unless specified in a -i or -t option). To
translate the symbol NAND2, use
-s nand2
-design cpu.sch
Here, not only will the cpu.sch schematic be translated, but also the symbols
which are referenced, and the schematics corresponding to those symbols in
the hierarchy. In addition, a “(design” form is added to the EDIF output file,
indicating the top cell in the hierarchy. The -design option is similar to the -t
option except that the cells specified in the -design at the top of the
hierarchy have a “(design” form added.
The -design, -t, -i, and -s options can be used to select out portions of a
design hierarchy. The -design and -t file names specify files that are the top
level cells in a design. The hierarchy will start at these files and traverse
downward until either no referenced schematic is found or the cell is
identified in a -i or -s option. The -i option specifies that the schematic and
symbol will be written, however, no schematics for cells referenced in the
schematic will be written. The -s option specifies that only the symbol
definition will be written.
Here, the cpu.dsn file forms the top of a design tree that is to be expanded.
For each symbol used in the cpu.dsn schematic, the symbol is written to the
EDIF output and a check is made to see if a corresponding schematic exists.
If found and the symbol is not referenced in a -s option, then the schematic
will be translated. If the cell is not referenced in a -i option, then the
schematic will form a new tree top and the symbols used will be expanded
in a similar manner. In this example, the schematic for the cache symbol will
be written, but the schematics for symbols referenced in cache will not be
translated. The symbol for alu will be created, but the schematic will not be
output.
-s 74ls.olb cmoslib.olb
In this example, we assume that the OrCAD Capture symbol libraries are
represented by the two files 74ls.olb, and cmoslib.olb, which contain the
symbol definitions. The EDIF output file (74ls.edi) will contain two libraries,
each containing the symbols located in the corresponding libraries. The EDIF
library names will be the same as the library file names without an
extension, e.g. 74ls. The -libname option described below may be used to
change the name of the library in the EDIF file if the target system requires
a different library name.
The EDIF file created can then be used as input to an EDIF schematic
translator on the target system in order to build a corresponding symbol
library.
After a symbol library has been translated, the schematics translated can
reference the already translated symbols, rather than include the symbol
definitions in the EDIF output. Typically, the default configuration file
identifies the libraries, which have already been translated, and contains a
line such as:
This specifies that the symbols found in the specified library files will not be
translated. Instead, their names are contained in an “(external” section of
the EDIF output file, which indicates to the receiving schematic translator
that these symbols should already have been translated. The names
specified in -external option may be mapped by the -libname option, or may
represent the mapped EDIF name.
There may be a need to regroup the packaging of cells, views and libraries.
One method is to use the library and cell name mapping options described
in the next section.
If the target system requires a specific library name in EDIF to represent the
cells defined in a Capture library, the name can be mapped as shown in the
following example:
In this example, the symbols for part definitions will be placed in the EDIF
library TTLLIB (the EDIF identifiers are converted to upper case).
If the cells are not placed into the desired libraries, or if a few cells need to
be moved to different libraries, the -cellname option may be used to define
a particular cell mapping. Consider the following example:
The / (slash) character separates the library name from the cell name, and
the . (period) character separates the cell name from the view name. Note
that the library name must be the name of an existing Capture library. In
the above example, the cell cpu will be placed in the EDIF library CPULIB,
and cell cpu2 will be placed in library CPULIB2 and will be called CPU. Cell
7400 is placed in view D (for DeMorgan equivalent) in cell 7400 of library
TTLLIB. The library or view is optional. A view should be specified for the
OrCAD name on library parts, and should be omitted on other symbols.
Normally the EDIF cell name corresponds to the symbol or schematic name,
and the view name will be Normal for library parts, otherwise 1. If the
receiving system requires another name, the -defaultview option can be
used to change all non-convert symbol view names, or the -cellname option
can be used on each symbol.
By default convert symbols are written out as an alternate view under the
same EDIF cell. The default convert view name may be set using the
-convertview option, and will be Convert if not specified. For example,
-defaultview symbol
-convertview demorgan
-cellname cpu.sym cpu
-cellname cpu.sym2 cpu2
will write normal symbols with the view name symbol, convert symbols with
the view name demorgan, except for cell cpu which will be output with a
view sym and symbol cpu2 which will be written as view sym2 under cell
cpu.
Some systems do not handle multiple views under an EDIF cell. For these
systems, convert symbols can be written out as a separate cell, with a suffix
added to the symbol name. For example,
-convertsuffix _D
specifies that a symbol with a convert definition such as 7400 will be written
as a pair of cells, 7400 and 7400_D.
Here, the cell 7400 is mapped to LS00. The cell 7402 is mapped to LS02,
and Capture pins 1, 2 and 3 are mapped to EDIF ports A, B and C. Since the /
character is used to separate library names from cell names, the \ escape
character is required so that IO_DRIVER is mapped to I/O_DRIVER.
Any instances of the title1 symbol will be omitted from the EDIF file, along
with the definition of title1. The special name (none) is recognized as
meaning do not translate the cell. Note that if a regular instance is omitted
using this option, the netlist connectivity will be modified.
Several options are available to define how names with a complement bar
are to be represented. In order to be represented in EDIF, the names must
be mapped into ASCII. By default, a \ character will be placed after each
complemented character, unless a -barcharformat or -barformat option is
used.
For details on these options, see the “Command References” section of this
manual.
The -char option translates any characters in the first argument into the
string specified by the second argument. The second line is equivalent to
-char ! _X_
-char @ _X_
-char # _X_
In the third line, the double underscore substring is translated into the
output string \.
-prefix N $
-prefix I $
-suffix _N ~
Another option might be useful for removing the directory path prefixes in a
library name such as \path\path...\name. To remove the path parts and only
use the name part, use:
-trimprefix \
This option trims all characters to the left of a \ character, including the
backslash. Note that since this option applies to all identifiers, a backslash
should not be used in any other identifiers.
" inch
in IN inch
mil MIL 1/1000 inch
ft FT Ft feet
aA Angstrom
gG Gram (.001 SI units)
Kg KG kg Kilogram (1.0 SI units)
lb LB Pounds
oz OZ Ounces
deg DEG Degrees of an angle (scale=pi/180)
mm MM Millmeters (1/1000 Meter)
degF DEGF Degrees Fahrenheit
degC DEGC Degrees Celsius
These suffixes are also processed when converting an attribute string into a
numeric value. If the value strings have a metric suffix, then the -units
values should be left in SI units. When converting an attribute string into a
number, the degF and degC suffix may be used and a conversion into
degrees Kelvin will be made. However, this conversion does not apply to the
scale factors in a -units temperature or units=temperature specification.
Translating Properties
By default, the Capture properties will be translated into EDIF properties
with the same names and will be output as string values.
-propname W FIELD1
-propname EDIFname Capturename
In this example, the Capture part FIELD1 will be output as the EDIF property
W.
By default, all the properties found in Capture schematics are written to the
EDIF output file. Properties can be prevented from being automatically
written in one of two ways. First, if an option is present of the form,
then the attribute TegasModel will not be written. Second, if the option
-noallprops
For each of the -propname lines, the units=value specification indicates that
the property will be written as a number rather than a string. For the EDIF
keyword attributes, the type is already defined and the units xis only used
for a scale factor.
The -units option specifies the conversion from the units used in Capture
attributes to the SI (metric MKS) units defined by EDIF. For example, unless
a separate scale factor is found, capacitance is in picofarads, current is in
microamps, and clock speed is in MegaHertz. If a -units definition is not
supplied, then the SI units are assumed.
Normally, the -units distance value is not used since this applies to
coordinates as well as properties.
When the string is converted to Boolean, most values will convert properly,
including the following:
If the values for a property are a specific set of string values, then a string
replacement may be specified. For example,
Setting an Owner
By default, the translator will include the graphics and text forming the title
block. If this information is not required or not supported in the target
system, the information can be suppressed with the -noborder option.
By default, each junction object will be written as a tie dot symbol instance
in the EDIF output. If tie dots are not required or not supported in the target
system, they can be suppressed with the -notiedots option.
When EDIF output is translated into some systems, the coordinate units or
schematic symbol sizes may be different. The problem may be due to the
units in which coordinates are written or the scale factor for the data.
When the EDIF data is created, the (x,y) coordinate locations are written as
a specific distance from the origin (0,0). The size of these distance units is
defined in terms of meters and is placed in the (technology section of the
EDIF file. Normally, an EDIF schematic reader should read the distance units
and then convert the incoming coordinates from meters to the internal
coordinate units of the target system. However, sometimes this does not
work properly, usually because the target system does not scale the data
properly. Some systems have unitless coordinates which do not have a
specific distance assigned. If the EDIF schematic reader cannot scale the
data properly, then the cap2edif translator must create the coordinates in a
form, which the target system can read properly. This can be accomplished
by a combination of adjusting the units and setting a scale factor as
explained below with the -units and -scale options.
By default, the distance values are written in units of mils. This allows
Capture coordinate units and English units of .001 inch to be written as an
integer value. Another resolution could be used by adding
-edifcoord .01in
If the target system does not use the Capture convention of a .1 inch pin
grid, the data can be magnified or shrunk as the schematic is written to
EDIF. Suppose that the target system uses a .25 inch pin spacing where
Capture uses .1 inch, and that a symbol .5 inch wide in Capture should be
1.25 inches wide after translation. A scale factor can be set with
-scale 2.5
Suppose the target system has a grid of .24 inch and the Capture grid is .1
inch with the symbol defined with a pin spacing of .2 inch. We could use a
scale factor,
-scale 1.2
-edifgrid .24in
option in the configuration file, the target system has a pin grid of .24 inch
and a scale factor should be computed which will be the closest to 1 which
will make the Capture grids be an even multiple of the target grid. If the
Capture grid is .1 inch then a scale factor of 0.8 will make 3 Capture grids
equal to the .24 inch target grid.
We can use all the scale factor options as in the following example:
-edifgrid .24in
-scale 2
-edifcoord .004in
Here, the pin grid scale is first matched as described above. The -scale
option provides an additional magnification by a factor of 2. Finally, the
-edifcoord option specifies the units of the EDIF coordinates to 1/250 inch
units.
In order to aid in reading the schematics, the major grid used in Capture
schematics is written as a special (userdata section in the EDIF (technology
definition. This definition is automatically generated, and does not require
any configuration file options. If the Capture major grid is .1 inch the EDIF
output will contain:
Translating Busses
Typically, the EDIF rename string contains the original name which contains
subscripts which can be parsed to reconstruct the beginning and ending
range. To convert busses into EDIF, the rename string is parsed and it is
assumed to be a list of names in the form
where beg and end are a beginning and ending subscript range, and [ ]
enclose optional parts. The subscript bracket characters may be any of [({<
>})] with range separators :-;. A comma or space may be used to separate
names or subscript ranges.
If the bus name is too complex to be parsed properly, or the parsed width
does not match the EDIF bus width, the bus name can be translated as
shown in the next section.
An individual net or bus name may be changed with the -netname option, as
needed. This may be useful for changing the names of global signals or
mapping complex bus names. Consider the example,
Here, the Capture net GND is mapped to GROUND, except in cells in library
alib and the cell pwr_reg, which map from AGND. For the cell pwr in library
alib with view 1, the net GND is mapped to GROUND.
Within the EDIF file, the graphics are organized by type and are called
figureGroups. The figureGroup is typically used to specify how lines are
drawn, e.g. color, width, linestyle, etc. as well as specify the use. The
figureGroup names used in the EDIF file correspond roughly to the options
set in the Local Configuration menu for Capture.
Here, the default names wire and bus are mapped to the names net and
bundle.
-instname dr datareq
-instname alib/;dr2 datareq
-instname alib/test.1;dr datareq
-instname test2;dr3 datareq
Here, the first line specifies the name datareq is changed into dr. The EDIF
name may be of the form library/cell.view;instname, where library/, cell,
or .view are optional in which case all libraries, cells, or views will be
matched. The other lines in the example, thus specify name dr2 for cells in
library alib except for cell test which is translated to dr. The instance name
datareq in cell test2 for all libraries will be translated into dr3.
In Capture, all the instances which do not have an instance name assigned
by the user will have a name automatically generated of the form U?A. The
-prefix option may be useful for changing this notation to a name which
matches the default names on the target system. For example, if the target
system has names of the form I$number, the names will be converted with
-prefix I$ I_
acLoad
criticality
dcFaninLoad
dcFanoutLoad
dcMaxFanin
dcMaxFanout
netDelay
portDelay
angle radians
capacitance farads
charge coulombs
conductance Siemens
current amperes
energy joules
flux Webers
frequency hertz
inductance henrys
mass kilograms
power watts
resistance ohms
time seconds
voltage volts
The following value names are used in EDIF and may be changed in the
-attername, -paramname and -propname edifval=value option. Other
names may be used in properties which are system dependent.
true
false
unconstrained
undefined
Configuration Files
Options, which control the translation, may be placed in one or more
configuration files. The default configuration file, “cap2edi.cfg”, will be
processed first, followed by any configuration files specified within the
default configuration file. The name and/or location of the default
configuration can be changed by setting the environment variable
CAP2EDICFG. Another configuration file may be read by specifying the
location and name in the “Configuration file” line of the Export Design pop-
up window. An option given last may override the value specified by a prior
option.
In a configuration file, spaces, tabs, and newlines are all treated like spaces
to separate option names and arguments. If an argument contains spaces or
starts with a dash (-), then it must be enclosed in quotes ("). Quotes or
control characters can be escaped by preceding them with a \. If an option
begins with #, then it and the remainder of the line will be treated as a
comment and ignored.
Command/Configuration Options
-adjustdescent number
This option indicates that the origins for text with a lower justification should
be shifted down (or up if number is negative) by number times the font
height (prior to scaling) when writing to EDIF. If the target system reading
EDIF assumes lower justified text is at the bottom of the text bounding box,
and it uses a font which has a descent which is 20% of the textHeight, then
an -adjustdescent .2 in the EDIF writer will lower the text as it appears in the
target system so the baseline of the text is at the original location. The
adjustment will be rounded to the closest OrCAD Capture grid unit,
typically .01 inch. In an EDIF reader, an -adjustdescent .2 will raise the
apparent location of text. Thus the same -adjustdescent option can be used
for an EDIF reader and writer interfacing to a particular external system.
-allprops
Specifies that all properties will be translated to EDIF. This option cancels a
-noallprops option given in the cap2edi.cfg file.
Similar to the -propname option but is used to specify the OrCAD Capture
attribute should be represented as an EDIF keyword.
-author name
-barcharformat string
Sprintf format for complemented character. This option may be used in lieu
of -barformat to specify a way to format individual complemented
characters. For example, -barcharformat "\%c" will cause a \ character to
precede each complemented character. If this option is supplied, then
-barformat must not be specified. The default is “%c\” unless one of the
-barxx switches is used.
-barformat string
Sprintf format for complemented signals. This is a C printf format string for
use in translating names which have a complement bar over them. The set
of adjacent characters with a bar are collected and passed to sprintf with
the specified format. For example, -barformat "~%s" places an ~ prefix in
front of the complemented characters, -barformat "%s_N" places an _N
suffix after the complemented name, and "<%s>" encloses the
complemented characters in < > characters.
-begbarformat string
Include the options given in the configuration file(s) filename [filename ...].
-convertsuffix name
Specifies a cell name suffix for convert symbols. If the input translator does
not handle multiple views for convert symbols, the convert symbol can be
output as a separate name with the specified suffix.
-convertview name
Specifies the view name for convert symbols. This option allows the view
name to be set for convert symbols. Usually the view name Convert will be
used.
-dataorigin name
Specifies the (dataOrigin string used in the (status section of the EDIF file.
-dataversion name
Specifies the version string supplied with (dataOrigin in the (status section
of the EDIF file.
-defaultview name
Specifies the default name for EDIF views. If not specified, the default view
name will be Normal for library parts, 1 for other symbols. Use this only if
the input translator (schematic reader) requires a different view name.
Specifies top-level cells for an EDIF design. This is similar to the -t option,
except an EDIF (design form will be defined for the names specified. Use this
when the input translator (schematic reader) requires a (design name form.
-displayname
If NOT specified, by default the display locations for names will be specified
on the rename string rather than the name as a whole. Some EDIF readers
do not interpret the name displays properly, and so this option moves the
display locations to the name as a whole.
-displayportclass
For the name displays of global ports (e.g. power and ground net names),
the ImplicitPortClass property display location is used in lieu of the port
name. This is required for Viewlogic, which does not handle global port
names properly.
-edifcoord number
Size in meters for the integer EDIF output coordinates. By default, the units
will be .001 inch, which is the internal unit for Capture.
-edifgrid number
Specifies a snap grid for the target system. A scale factor will be
automatically computed to match the Capture grid to the target grid. The
scale will be closest to 1, where the target grid is an even multiple of
Capture grids. The -scale option applies in addition to this option.
-endbarformat string
-fulllibrarypath
Specifies that the translator will output the full path name of all libraries to
EDIF. By default, only the file name is output and not the path name. This
option allows you to translate designs that reference parts with the same
name, in libraries with the same name, but the libraries have different
paths.
-help
Will print a summary of the basic commands and configuration file options.
-helpall
Specifies one or more input cells to be translated, where name is of the form
library/cell.view, with library/, cell and .view optional. If the library, cell, or
view name is omitted, then all libraries, cells, or views will be assumed. Also
specifies that the schematics are to be translated without hierarchy
expansion. The specified schematics or a symbol with the corresponding
schematic will be translated, but no additional levels of the hierarchy will be
included. Use this option when the hierarchy should not be traversed.
Specifies a mapping of instance name between the Capture input and EDIF
output. The edifname value will replace the EDIF (rename string. The
edifname may be of the form library/cell.view;instance where library/, cell
and .view are optional qualifiers for the EDIF context for the mapping of the
instance. Capturename is of the form instance name.
-maxerr number
-midbarformat string
-netref
-noallprops
-noaltviewsch
If several symbols are defined for a schematic, for example with a sheet
part, then output the schematic only with the first symbol view. EDIF 2 0 0
technically requires the schematic to be duplicated for each different symbol
view. Use this option if the receiving system can find the schematic for a
symbol in the contents of a different view. For hierarchical schematics, this
option will make a huge difference in the size of the EDIF file.
-noborder
-nodbprops
-nographicsym
-nopinpropdisplay
If the names of the pins in a symbol are not unique, then the EDIF port
name will be modified and the original name will be saved in a port property
called "ORIGINALPINNAME". If the names are visible, then the display
location for the Capture pin names will be specified as a propertyDisplay on
ORIGINALPINNAME. Some systems do not display port properties, so this
switch allows this fixed port property to be displayed as annotated text.
-nosemck
-nosynck
-notiedots
Inhibits outputting of tie dot symbols to the EDIF file. This option may be
used to decrease the size of the EDIF file if tie dots are not required in the
target system.
-o name
Specifies the name of the EDI or EDIF output file. If a .qdb extension is
supplied, an EDI database will be written, otherwise an EDIF file will be
written. The default output file, name.edi, will be written in the current
directory, where name is derived from the first name found in a -design, -t,
-i, or -s option.
Similar to the -propname option, but specifies that the Capture attribute
should be represented as an EDIF parameter.
-pinlistdelim string
Specifies the string separating the pin numbers in the designator attribute.
If the
-viewlogic switch is specified, "," will be assumed. Otherwise, if not specified
" " (space) will be assumed.
-pinnumberlistprop name
Specifices the property name for pin number lists. For multiple parts per
package, the pin designators in the symbol are translated as a list of
numbers. If only one number should be used, the list of numbers can be
written separately as the specified property.
-pintopinnet
This option will output zero length line graphics for a net if there are
coincident pins connecting at a particular location.
Specifies that if the characters inprefix are found at the start of an identifier,
they will be mapped into outprefix. This translation could be used to map
the complemented net name character.
-pretty
Specifies that the EDIF output file will be pretty-printed with indentation and
parentheses.
Specifies the mapping of part fields in Capture into EDIF properties. The
edifname argument is of the form [type/]name[.subname], where type/ is
the optional construct to which the attribute applies, one of cell or port,
name is a property name and .subname may optionally qualify the values
listed in the section “Special Considerations for EDIF” which represent a
structure. The Capturename argument is the name of a part field or value,
a property defined within the Capture system. If edifname is (none), then
the specified property will be ignored. If a -propname option is not specified
for a property, then the Capturename and edifname will be assumed to be
the same.
The optional owner argument may be used to specify an owner string. The
units argument specifies the conversion between Capture units and SI
(metric) units and is used to derive a scale factor for converting numbers.
The val may be a unit name, a scale factor, or unitname:scale. If a unit
name alone is given, the scale factor is derived from the -units option.
Otherwise, the specified scale factor will be assumed. The
edifval=Captureval argument allows a translation for Boolean or
enumerated types, e.g. true=1 false=0.
-scale number
-separator string
-sheetname1
-subscrformat "[:],"
The characters in this option are used to format EDIF bus names. The first
character is the first character of the range suffix, the second character is
the separator between the beginning and ending range, and the third
character is the last character of the range suffix. The fourth character,
used for bus bundles, is not allowed in Capture; therefore it is not used
during translation.
Specifies that if the characters insuffix are found at the end of an identifier,
they will be mapped into outsuffix.
-textscale number
Indicates that the EDIF text height is number times the system text height.
If number is less than 1.0, the text will be made smaller when writing to
EDIF. Consider this example. Suppose the text height is set to .10" in
Capture. If the target system interprets text height as the line-line spacing
(i.e. the point size of the font), then -textscale .6 converts the text height
to .06" in EDIF.
-tolower
-toupper
-trimprefix trimchars
-trimsuffix trimchars
Sets the scale factor for numeric units. A separate conversion applies to
each EDIF unit, unitname, one of the names in the “Special Considerations
for EDIF” section described earlier. The conversion defined by this option
provides a default per unitname which can be overridden by the
units=value argument on the -attrname command option. If no -units is
specified then the input numbers will not be scaled. See “Creating Numeric
Properties and Setting a Unit Scale Factor” in a previous section.
-viewlogic
Sets all the options necessary for producing EDIF output which can be read
by Viewlogic’s edif2vl2 schematic translator (reader).
-vllibname
This switch causes all EDIF cells to include the form (userData libname. This
form is used by Viewlogic’s edif2vl2 schematic translator (reader) to put
parts in the correct libraries. Be sure to update the viewdraw.ini file with
the library alias names for each library before translating into Viewlogic.
or
Error messages specific to the schematic or symbol file appear after these
lines.
The translator may be aborted after a specified number of errors have been
reached as in the example:
-maxerr 100
where execution will terminate after 100 error messages have been printed.
Error Messages
ERROR: Bad cell name name
There is a problem with the mapped EDIF name for a cell, which
should be of the form library/cell.view. Check the configuration file
options for an error in a -cellname.
Two instances on the same page have the same name name. The
second instance will be renamed to “nameX_number” where
number is 0 or greater.
Something went wrong, and there was no data written to the EDIF
file. There was probably some error in the input specification.
Two pages with the same name have been detected. The second
one will receive the name “A0”.
Cap2edif could not find library libName. If you are using the
-cellname option with a library/cell[.view] form, the library name
must specify a valid Capture library. Check the next line of the log
file for a Capture error message for more information.
The translator was not able to find the specified input file.
The translator was not able to create the output file, usually either
because the user does not have write permission in the current
directory, or the file already exists and the user does not have
write permission.
The translator could not find a pin for the specified netsymbol.