Command Line Tools User Guide: (Formerly The Development System Reference Guide)
Command Line Tools User Guide: (Formerly The Development System Reference Guide)
Guide
(Formerly the Development System Reference Guide)
Chapter 7 MAP............................................................................................................89
MAP Overview..................................................................................................... 89
MAP Design Flow............................................................................................ 90
MAP Device Support ....................................................................................... 90
MAP Input Files .............................................................................................. 90
MAP Output Files............................................................................................ 91
MAP Process......................................................................................................... 91
MAP Syntax.......................................................................................................... 92
MAP Options........................................................................................................ 94
-activity_file (Activity File) ............................................................................... 94
Chapter 13 TRACE....................................................................................................185
TRACE Overview............................................................................................... 185
TRACE flow with primary input and output files.............................................. 185
TRACE Device Support................................................................................... 186
TRACE Input Files .......................................................................................... 186
TRACE Output Files ....................................................................................... 186
TRACE Syntax.................................................................................................... 186
TRACE Options ................................................................................................. 187
-a (Advanced Analysis) ................................................................................... 187
-e (Generate an Error Report)........................................................................... 187
-f (Execute Commands File) ............................................................................. 188
-fastpaths (Report Fastest Paths) ...................................................................... 188
-intstyle (Integration Style) .............................................................................. 188
-filter (Filter File)............................................................................................. 188
-l (Limit Timing Report) .................................................................................. 188
-n (Report Paths Per Endpoint)......................................................................... 189
-nodatasheet (No Data Sheet)........................................................................... 189
-o (Output Timing Report File Name)............................................................... 189
-s (Change Speed) ........................................................................................... 189
-stamp (Generates STAMP timing model files) .................................................. 190
-tsi (Generate a Timing Specification Interaction Report) ................................... 190
-u (Report Uncovered Paths)............................................................................ 190
-v (Generate a Verbose Report) ........................................................................ 191
-xml (XML Output File Name) ......................................................................... 191
TRACE Command Line Examples .................................................................... 191
TRACE Reports .................................................................................................. 192
Timing Verification with TRACE...................................................................... 192
Reporting with TRACE ................................................................................... 194
Data Sheet Report ........................................................................................... 196
Guaranteed Setup and Hold Reporting............................................................. 198
Summary Report ............................................................................................ 199
Error Report ................................................................................................... 202
Verbose Report ............................................................................................... 205
OFFSET Constraints........................................................................................... 208
OFFSET IN Constraint Examples ..................................................................... 208
OFFSET OUT Constraint Examples .................................................................. 213
PERIOD Constraints .......................................................................................... 215
PERIOD Header ............................................................................................. 216
PERIOD Path.................................................................................................. 216
PERIOD Path Details....................................................................................... 217
PERIOD Constraint with PHASE ..................................................................... 218
PERIOD Path with Phase................................................................................. 218
Minimum Period Statistics............................................................................... 219
Halting TRACE .................................................................................................. 219
Chapter 19 CPLDFit..................................................................................................279
CPLDFit Overview............................................................................................. 279
CPLDFit Design Flow ..................................................................................... 279
CPLDFit Device Support ................................................................................. 279
CPLDFit Input Files ........................................................................................ 279
CPLDFit Output Files...................................................................................... 280
CPLDFit Syntax .................................................................................................. 280
CPLDFit Options................................................................................................ 281
-blkfanin (Specify Maximum Fanin for Function Blocks).................................... 281
-exhaust (Enable Exhaustive Fitting) ................................................................ 282
-ignoredatagate (Ignore DATA_GATE Attributes) ............................................. 282
-ignoretspec (Ignore Timing Specifications) ...................................................... 282
-init (Set Power Up Value) ............................................................................... 282
-inputs (Number of Inputs to Use During Optimization) ................................... 282
-iostd (Specify I/O Standard)............................................................................ 283
-keepio (Prevent Optimization of Unused Inputs) ............................................. 283
-loc (Keep Specified Location Constraints) ........................................................ 283
-localfbk (Use Local Feedback)......................................................................... 283
-log (Specify Log File) ..................................................................................... 284
-nofbnand (Disable Use of Foldback NANDs)................................................... 284
-nogclkopt (Disable Global Clock Optimization) ............................................... 284
-nogsropt (Disable Global Set/Reset Optimization) ............................................ 284
-nogtsopt (Disable Global Output-Enable Optimization).................................... 284
-noisp (Turn Off Reserving ISP Pin).................................................................. 284
-nomlopt (Disable Multi-level Logic Optimization) ........................................... 285
-nouim (Disable FASTConnect/UIM Optimization) ........................................... 285
-ofmt (Specify Output Format)......................................................................... 285
-optimize (Optimize Logic for Density or Speed)............................................... 285
-p (Part Number) ............................................................................................ 285
-pinfbk (Use Pin Feedback).............................................................................. 286
-power (Set Power Mode) ................................................................................ 286
-pterms (Number of Pterms to Use During Optimization).................................. 286
-slew (Set Slew Rate) ....................................................................................... 286
-terminate (Set to Termination Mode) ............................................................... 286
-unused (Set Termination Mode of Unused I/Os)............................................... 287
-wysiwyg (Do Not Perform Optimization)........................................................ 287
Introduction
This chapter describes the command line programs for the ISE® Design Suite. This
guide was formerly known as the Development System Reference Guide, but has been
renamed to Command Line Tools User Guide. This chapter contains the following sections:
• Command Line Program Overview
• Command Line Syntax
• Command Line Options
• Invoking Command Line Programs
You can run these programs in the standard design flow or use special options to run the
programs for design preservation. Each command line program has multiple options,
which allow you to control how a program executes. For example, you can set options to
change output file names, to set a part number for your design, or to specify files to read
in when executing the program. You can also use options to create guide files and run
guide mode to maintain the performance of a previously implemented design.
Some of the command line programs described in this guide underlie many of the
Xilinx Graphical User Interfaces (GUIs). The GUIs can be used with the command
line programs or alone. For information on the GUIs, see the online Help provided
with each Xilinx tool.
Syntax
-f command_file
Example
Following is an example of a command file:
#command line options for par for design mine.ncd
-w
0l 5
/home/yourname/designs/xilinx/mine.ncd
#directory for output designs
/home/yourname/designs/xilinx/output.dir
#use timing constraints file
/home/yourname/designs/xilinx/mine.pcf
-h (Help)
When you enter the program name followed by this option, you will get a message
listing all options for the program and their parameters, as well as the file types used by
the program. The message also explains each of the options.
Syntax
-h
-help
Symbol Description
[] Encloses items that are optional.
{} Encloses items that may be repeated.
italics Indicates a variable name or number for which
you must substitute information.
, Shows a range for an integer variable.
- Shows the start of an option name.
: Binds a variable name to a range.
| Logical OR to show a choice of one out of
many items. The OR operator may only
separate logical groups or literal keywords.
() Encloses a logical grouping for a choice
between sub-formats.
Example
Following are examples of syntax used for file names:
• infile[.ncd] shows that typing the .ncd extension is optional but that the extension
must be .ncd.
• infile.edn shows that the .edn extension is optional and is appended only if there
is no other extension in the file name.
For architecture-specific programs, such as BitGen, you can enter the following to get a
verbose help message for the specified architecture:
program_name -h architecture_name
You can redirect the help message to a file to read later or to print out by entering the
following:
program_name -h > filename
On the Linux command line, enter the following to redirect the help message to a file
and return to the command prompt.
program_name -h > & filename
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
This option can specify an architecture only, a complete part specification (device,
package, and speed), or a partial specification (for example, device and package only).
The part number or device name must be from a device library you have installed on
your system.
A complete Xilinx® part number consists of the following elements:
• Architecture (for example, spartan3e)
• Device (for example, xc3s100e)
• Package (for example, vq100)
• Speed (for example, -4)
Note The Speedprint program lists block delays for device speed grades. The -s option
lets you specify a speed grade. If you do not specify a speed grade, Speedprint reports
the default speed grade for the device you are targeting.
Examples
The following examples show how to specify parts on the command line.
Specification Examples
Architecture only virtex4
virtex5
spartan3
spartan3a
xc9500
xpla3 (CoolRunner™ XPLA3 devices)
Device only xc4vfx12
xc3s100e
DevicePackage xc4fx12sf363
xc3s100evq100
Device-Package xc4vfx12-sf363
xc3s100e-vq100
DeviceSpeed-Package xc4vfx1210-sf363
xc3s100e4-vq100
DevicePackage-Speed xc4fx12sf363-10
xc3s100evq100-4
Device-Speed-Package xc4vfx12-10-sf363
xc3s100e-4-vq100
Device-SpeedPackage xc4vfx12-10sf363
xc3s100e-4vq100
Design Flow
This chapter describes the process for creating, implementing, verifying, and
downloading designs for Xilinx® FPGA and CPLD devices. For a complete
description of Xilinx FPGA and CPLDs devices, refer to the Xilinx Data Sheets at:
http://www.xilinx.com/support/documentation/index.htm
This chapter contains the following sections:
• Design Flow Overview
• Design Entry and Synthesis
• Design Implementation
• Design Verification
• FPGA Design Tips
Hierarchical Design
Design hierarchy is important in both schematic and HDL entry for the following
reasons:
• Helps you conceptualize your design
• Adds structure to your design
• Promotes easier design debugging
• Makes it easier to combine different design entry methods (schematic, HDL, or state
editor) for different parts of your design
• Makes it easier to design incrementally, which consists of designing, implementing,
and verifying individual parts of a design in stages
• Reduces optimization time
• Facilitates concurrent design, which is the process of dividing a design among a
number of people who develop different parts of the design in parallel.
In hierarchical designing, a specific hierarchical name identifies each library element,
unique block, and instance you create. The following example shows a hierarchical
name with a 2-input OR gate in the first instance of a multiplexer in a 4-bit counter:
/Acc/alu_1/mult_4/8count_3/4bit_0/mux_1/or2
Xilinx® strongly recommends that you name the components and nets in your design.
These names are preserved and used by FPGA Editor. These names are also used for
back-annotation and appear in the debug and analysis tools. If you do not name your
components and nets, the Schematic Editor automatically generates the names. For
example, if left unnamed, the software might name the previous example, as follows:
/$1a123/$1b942/$1c23/$1d235/$1e121/$1g123/$1h57
Note It is difficult to analyze circuits with automatically generated names, because the
names only have meaning for Xilinx software.
Partitions
In hierarchical design flows, such as Design Preservation and Partial Reconfiguration,
partitions are used to define hierarchical boundaries so that a complex design can be
broken up into smaller blocks. Partitions create a boundary or insulation around the
hierarchical module, which isolates the module from other parts of the design. A
partition that has been implemented and exported can be re-inserted into the design
using a simple cut-and-paste type function, which preserves the placement and
routing results for the isolated module. All of the partition definitions and controls
are done in a file called xpartition.pxml. For more information on using the different
hierarchical design flows and implementing partitions, please see the Hierarchical
Design Methodology Guide (UG 748).
PXML File
Partition definitions are contained in the xpartition.pxml file. The PXML file is
case-sensitive, and must be named xpartition.pxml. The top level module of the design
must be defined as a partition in addition to any optional lower level partitions. The
PXML file can be created by hand, from scripts, or from a graphical user interface
(GUI) software tool, such as PlanAhead. The PXML will be picked up automatically
by the ISE implementation tools when located in the current working directory. For
more information about using the xpartition.pxml file, see the Hierarchical Design
Methodology Guide (UG 748). An example xpartition.pxml file is available at
%XILINX%/PlanAhead/testcases (where %XILINX% is your installation directory)
as if you wish to create a PXML file by hand.
<?xml version="1.0" encoding="UTF-8" ?>
Library Elements
Primitives and macros are the “building blocks” of component libraries. Xilinx®
libraries provide primitives, as well as common high-level macro functions. Primitives
are basic circuit elements, such as AND and OR gates. Each primitive has a unique
library name, symbol, and description. Macros contain multiple library elements, which
can include primitives and other macros.
You can use the following types of macros with Xilinx FPGAs:
• Soft macros have pre-defined functionality but have flexible mapping, placement,
and routing. Soft macros are available for all FPGAs.
• Relationally placed macros (RPMs) have fixed mapping and relative placement.
RPMs are available for all device families, except the XC9500 family.
Macros are not available for synthesis because synthesis tools have their own module
generators and do not require RPMs. If you wish to override the module generation, you
can instantiate modules created using CORE Generator. For most leading-edge synthesis
tools, this does not offer an advantage unless it is for a module that cannot be inferred.
Functional Simulation
After you create your design, you can simulate it. Functional simulation tests the
logic in your design to determine if it works properly. You can save time during
subsequent design steps if you perform functional simulation early in the design flow.
See Simulation for more information.
Constraints
You may want to constrain your design within certain timing or placement parameters.
You can specify mapping, block placement, and timing specifications.
You can enter constraints manually or use the Constraints Editor or FPGA Editor, which
are graphical user interface (GUI) tools provided by Xilinx®. You can use the Timing
Analyzer GUI or TRACE command line program to evaluate the circuit against these
constraints by generating a static timing analysis of your design. See the TRACE chapter
and the online Help provided with the ISE® Design Suite for more information. For
more information on constraints, see the Constraints Guide.
Block Placement
Block placement can be constrained to a specific location, to one of multiple locations, or
to a location range. Locations can be specified in the schematic, with synthesis tools,
or in the User Constraints File (UCF). Poor block placement can adversely affect both
the placement and the routing of a design. Only I/O blocks require placement to meet
external pin requirements.
Timing Specifications
You can specify timing requirements for paths in your design. PAR uses these timing
specifications to achieve optimum performance when placing and routing your design.
Design Implementation
Design Implementation begins with the mapping or fitting of a logical design file to a
specific device and is complete when the physical design is successfully routed and a
bitstream is generated. You can alter constraints during implementation just as you did
during the Design Entry step. See Constraints for information.
The following figure shows the design implementation process for FPGA designs:
The following figure shows the design implementation process for CPLD designs:
Note MAP provides options that enable advanced optimizations that are capable
of improving timing results beyond standard implementations. These advanced
optimizations can transform a design prior to or after placement. Optimizations can
be applied at two different stages in the Xilinx design flow. The first stage happens
right after the initial mapping of the logic to the architecture slices; the second stage if
after placement. See Re-Synthesis and Physical Synthesis Optimizations in the MAP
chapter for more information.
Design Verification
Design verification is testing the functionality and performance of your design. You can
verify Xilinx® designs in the following ways:
• Simulation (functional and timing)
• Static timing analysis
• In-circuit verification
The following table lists the different design tools used for each verification type.
Verification Tools
Verification Type Tools
Simulation Third-party simulators (integrated and
non-integrated)
Static Timing Analysis TRACE (command line program)
Timing Analyzer (GUI)
Mentor Graphics TAU and Innoveda BLAST
software for use with the STAMP file format
(for I/O timing verification only)
In-Circuit Verification Design Rule Checker (command line program)
Download cable
Design verification procedures should occur throughout your design process, as shown
in the following figures.
The following figure shows the verification methods of the design flow for CPLDs.
Simulation
You can run functional or timing simulation to verify your design. This section describes
the back-annotation process that must occur prior to timing simulation. It also describes
the functional and timing simulation methods for both schematic and HDL-based
designs.
Back-Annotation
Before timing simulation can occur, the physical design information must be translated
and distributed back to the logical design. For FPGAs, this back-annotation process is
done with a program called NetGen. For CPLDs, back-annotation is performed with
the TSim Timing Simulator. These programs create a database, which translates the
back-annotated information into a netlist format that can be used for timing simulation.
Back-Annotation (CPLDs)
NetGen
NetGen is a command line program that distributes information about delays, setup
and hold times, clock to out, and pulse widths found in the physical Native Circuit
Description (NCD) design file back to the logical Native Generic Database (NGD) file
and generates a Verilog or VHDL netlist for use with supported timing simulation,
equivalence checking, and static timing analysis tools.
NetGen reads an NCD as input. The NCD file can be a mapped-only design, or a
partially or fully placed and routed design. An NGM file, created by MAP, is an optional
source of input. NetGen merges mapping information from the optional NGM file with
placement, routing, and timing information from the NCD file.
Note NetGen reads an NGA file as input to generate a timing simulation netlist for
CPLD designs.
See the NetGen chapter for detailed information.
Functional Simulation
Functional simulation determines if the logic in your design is correct before you
implement it in a device. Functional simulation can take place at the earliest stages of
the design flow. Because timing information for the implemented design is not available
at this stage, the simulator tests the logic in the design using unit delays.
Note It is usually faster and easier to correct design errors if you perform functional
simulation early in the design flow.
Timing Simulation
Timing simulation verifies that your design runs at the desired speed for your device
under worst-case conditions. This process is performed after your design is mapped,
placed, and routed for FPGAs or fitted for CPLDs. At this time, all design delays are
known.
Timing simulation is valuable because it can verify timing relationships and determine
the critical paths for the design under worst-case conditions. It can also determine
whether or not the design contains set-up or hold violations.
Before you can simulate your design, you must go through the back-annotation process,
above. During this process, NetGen creates suitable formats for various simulators.
HDL-Based Simulation
Xilinx® supports functional and timing simulation of HDL designs at the following
points:
• Register Transfer Level (RTL) simulation, which may include the following:
– Instantiated UNISIM library components
– CORE Generator™ models
– Hard IP (SecureIP)
• Post-synthesis functional simulation with one of the following:
– Gate-level UNISIM library components
– CORE Generator models
– Hard IP (SecureIP)
• Post-implementation back-annotated timing simulation with the following:
– SIMPRIM library components
– Hard IP (SecureIP)
– Standard Delay Format (SDF) file
The following figure shows when you can perform functional and timing simulation:
The three primary simulation points can be expanded to allow for two post-synthesis
simulations. These points can be used if the synthesis tool cannot write VHDL or
Verilog, or if the netlist is not in terms of UNISIM components. The following table lists
all the simulation points available in the HDL design flow.
These simulation points are described in the “Simulation Points” section of the Synthesis
and Simulation Design Guide.
The libraries required to support the simulation flows are described in detail in the
“VHDL/Verilog Libraries and Models” section of the Synthesis and Simulation Design
Guide. The flows and libraries support close functional equivalence of initialization
behavior between functional and timing simulations. This is due to the addition of
methodologies and library cells to simulate Global Set/Reset (GSR) and Global 3-State
(GTS) behavior.
Xilinx VHDL simulation supports the VITAL standard. This standard allows you
to simulate with any VITAL-compliant simulator. Built-in Verilog support allows
you to simulate with the Cadence Verilog-XL and compatible simulators. Xilinx HDL
simulation supports all current Xilinx FPGA and CPLD devices. Refer to the Synthesis
and Simulation Design Guide for the list of supported VHDL and Verilog standards.
In-Circuit Verification
As a final test, you can verify how your design performs in the target application.
In-circuit verification tests the circuit under typical operating conditions. Because you
can program your FPGA devices repeatedly, you can easily load different iterations of
your design into your device and test it in-circuit. To verify your design in-circuit,
download your design bitstream into a device with the appropriate Xilinx® cable.
Note For information about Xilinx cables and hardware, see the iMPACT online help.
Probe
The Xilinx PROBE function in FPGA Editor provides real-time debug capability good
for analyzing a few signals at a time. Using PROBE a designer can quickly identify and
route any internal signals to available I/O pins without having to replace and route the
design. The real-time activity of the signal can then be monitored using normal lab test
equipment such as logic/state analyzers and oscilloscopes.
PARTGen
This chapter describes PARTGen. This chapter contains the following sections.
• PARTGen Overview
• PARTGen Command Line Syntax
• PARTGen Command Line Options
PARTGen Overview
PARTGen is a Xilinx® command line tool that displays architectural details about
supported Xilinx devices.
Device Support
This program is compatible with the following device families:
• Spartan®-3, Spartan-3A, Spartan-3E, and Spartan-6
• Virtex®-4, Virtex-5, and Virtex-6
• CoolRunner™ XPLA3 and CoolRunner-II
• XC9500 and XC9500XL
The partlist file is a series of part entries. There is one entry for every part supported
in the installed software. The following sections describe the information contained
in the partlist file.
• PARTGen Partlist File Header
• PARTGen Partlist File Device Attributes for Both -p and -v Options
• PARTGen Partlist File Device Attributes for -v Option Only
For IOSTD_DRIVE and IOSTD_SLEW, the default values are reported first in the
list. For true/false values:
– 1 indicates true
– 0 indicates false
A value of 100.000000 for IOSTD_VREF indicates that this keyword is undefined
for this standard.
• SO and WASSO Calculations
PARTGen now exports I/O standard and device properties in a machine readable
format. This allows third party tools to perform SSO and WASSO calculations.
SSO data consists of two parts:
– The maximum number of SSOs allowed per power/ground pair
– The number of power/ground pairs for a given bank.
This data has been added to the partlist.xct and partlist.xml output for
each device/package combination. The number of power/ground pairs is listed
by bank number:
PER_BANK_PWRGND_PAIRS\
BANK_SSO NAME=0 TYPE=INT 1\
BANK_SSO NAME=1 TYPE=INT 1\
BANK_SSO NAME=2 TYPE=INT 1\
BANK_SSO NAME=3 TYPE=INT 1\
BANK_SSO NAME=4 TYPE=INT 1\
BANK_SSO NAME=5 TYPE=INT 5\
BANK_SSO NAME=6 TYPE=INT 5\
BANK_SSO NAME=7 TYPE=INT 3\
BANK_SSO NAME=8 TYPE=INT 3\
The maximum number of SSOs allowed per power/ground pair is reported using
the SSO_PER_IOSTD keyword. Each entry reflects the maximum number of SSOs
(column 5) for the I/O standard (column 3), drive strength (column 2), and slew
rate (column 4) shown.
For example, LVTTL, with drive strength 12 and slew rate SLOW, has a maximum of
15 SSOs per power/ground pair.
MAX_SSO_PER_IOSTD_PER_BANK\
IOSTD_SSO DRIVE=12 NAME=LVTTL SLEW=SLOW TYPE=INT 15\
IOSTD_SSO DRIVE=12 NAME=LVTTL SLEW=FAST TYPE=INT 10\
IOSTD_SSO DRIVE=2 NAME=LVTTL SLEW=SLOW TYPE=INT 68\
IOSTD_SSO DRIVE=2 NAME=LVTTL SLEW=FAST TYPE=INT 40\
IOSTD_SSO DRIVE=4 NAME=LVTTL SLEW=SLOW TYPE=INT 41\
IOSTD_SSO DRIVE=4 NAME=LVTTL SLEW=FAST TYPE=INT 24\
IOSTD_SSO DRIVE=6 NAME=LVTTL SLEW=SLOW TYPE=INT 29\
IOSTD_SSO DRIVE=6 NAME=LVTTL SLEW=FAST TYPE=INT 17\
IOSTD_SSO DRIVE=8 NAME=LVTTL SLEW=SLOW TYPE=INT 22\
IOSTD_SSO DRIVE=8 NAME=LVTTL SLEW=FAST TYPE=INT 13\
IOSTD_SSO DRIVE=16 NAME=LVTTL SLEW=SLOW TYPE=INT 11\
IOSTD_SSO DRIVE=16 NAME=LVTTL SLEW=FAST TYPE=INT 8\
IOSTD_SSO DRIVE=24 NAME=LVTTL SLEW=SLOW TYPE=INT 7\
IOSTD_SSO DRIVE=24 NAME=LVTTL SLEW=FAST TYPE=INT 5\
• Device global, local and regional clocking properties
For each type of clock available on the device, PARTGen now reports:
– Which pin number can behave as which clock type
– Which I/O can be driven by this clock pin
This allows third party tools to assign pins on Xilinx® packages without violating
clocking rules.
The following information has been added to the partlist.xct and
partlist.xml output for each clock region of a device:
DEVICE_CLKRGN\
NUM_CLKRGN TYPE=INT 8\
NUM_CLKRGN_ROW TYPE=INT 4\
NUM_CLKRGN_COL TYPE=INT 2\
CLKRGN TYPE=STRING X0Y0\
CLK_CAPABLE_SCOPE\
UNASSOCIATED_PINS\
NUM_UNBONDED_PINS TYPE=INT 2\
UNBONDED_PIN_LIST TYPE=STRINGLIST T17R17\
UNBONDED_IOB_LIST TYPE=STRINGLIST IOB_X0Y15IOB_X0Y17\
ASSOCIATED_BUFIO\
NUM_BUFIO TYPE=INT 4\
BUFIO_SITES TYPE=STRINGLIST BUFIO_X0Y0BUFIO_X0Y1BUFIO_X1Y0BUFIO_X1Y1\
ASSOCIATED_BUFR\
NUM_BUFR TYPE=INT 2\
BUFR_SITES TYPE=STRINGLIST BUFR_X0Y0BUFR_X0Y1\
ASSOCIATED_PINS\
NUM_BONDED_PINS TYPE=INT 39\
BONDED_PIN_LIST TYPE=STRINGLIST V18V17W17Y17W19W18U17U16V20V19U15T15U19U18T18\
T17R18R17T20T19R16R15R20R19W8W9Y9Y10W7Y7W10W11W6Y6Y11Y12W5Y5W12\
BONDED_IOB_LIST TYPE=STRINGLIST IOB_X0Y0IOB_X0Y1IOB_X0Y2IOB_X0Y3IOB_X0Y4IOB_X0Y5IOB_\
X0Y6IOB_X0Y7IOB_X0Y8IOB_X0Y9IOB_X0Y10IOB_X0Y11IOB_X0Y12IOB_X0Y13IOB_X0Y14IOB_\
X0Y15IOB_X0Y16IOB_X0Y17IOB_X0Y18IOB_X0Y19IOB_X0Y22IOB_X0Y23IOB_X0Y24IOB_X0Y25IOB_\
X1Y16IOB_X1Y17IOB_X1Y18IOB_X1Y19IOB_X1Y20IOB_X1Y21IOB_X1Y22IOB_X1Y23IOB_X1Y24IOB_\
X1Y25IOB_X1Y26IOB_X1Y27IOB_X1Y28IOB_X1Y29IOB_X1Y30\
For example, the command partgen -p xc6vlx75t generates the following package
files:
• xc6vlx75tff484.pkg
• xc6vlx75tff784.pkg
PARTGen Syntax
The PARTGen command line syntax is:
partgen options
options can be any number of the options listed in PARTGen Command Line Options.
Enter options in any order, preceded them with a dash (minus sign on the keyboard)
and separate them with spaces.
Both package and partlist files can be generated using the partgen -p (terse) and
partgen -v (verbose) options.
• partgen -p generates a three column entry describing the pins.
• partgen -v adds six more columns describing the pins.
Syntax
-arch architecture_name
Allowed values for architecture_name are:
• acr2 (for Automotive CoolRunner™-II)
• aspartan3 (for Automotive Spartan®-3)
• aspartan3a (for Automotive Spartan-3A)
• aspartan3adsp (for Automotive Spartan-3A DSP)
• aspartan3e (for Automotive Spartan-3E)
• aspartan6 (for Automotive Spartan-6)
• qrvirtex4 (for QPro™ Virtex®-4 Rad Tolerant)
• qvirtex4 (for QPro Virtex-4 Hi-Rel)
• qvirtex5 (for QPro Virtex-5 Hi-Rel)
• qspartan6 (for QPro Spartan-6 Hi-Rel)
• qvirtex6 (for QPro Virtex-6 Hi-Rel)
• spartan3 (for Spartan-3)
• spartan3a (for Spartan-3A)
• spartan3adsp (for Spartan-3A DSP)
• spartan3e (for Spartan-3E)
• spartan6 (for Spartan-6)
• virtex4 (for Virtex-4)
• virtex5 (for Virtex-5)
• virtex6 (for Virtex-6)
• virtex6l (for Virtex-6 Low Power)
• xa9500xl (for Automotive XC9500XL)
• xbr (for CoolRunner-II)
• xc9500 (for XC9500)
• xc9500xl (for XC9500XL)
• xpla3 (for CoolRunner XPLA3)
Syntax
-i
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-nopkgfile
Syntax
-p name
Valid entries for name include:
• architectures
• devices
• parts
All files are placed in the working directory.
If an architecture, device, or part is not specified with this option, detailed information
for every installed device is submitted to the partlist.xct file. For more information,
see PARTGen Partlist Files.
The -p option generates more detailed information than the -arch option, but less
information than the -v option. The -p and -v options are mutually exclusive. You can
specify one or the other but not both. For more information see:
• PARTGen Package Files
• PARTGen Partlist Files
Syntax
-v name
Valid entries for name include:
• architectures
• devices
• parts
If no architecture, device, or part is specified with the -v option, information for every
installed device is submitted to the partlist file. For more information, see PARTGen
Partlist Files.
The -v option generates more detailed information than the -p option. The -p and -v
options are mutually exclusive. You can specify one or the other but not both. For
more information, see:
• PARTGen Package Files
• PARTGen Partlist Files
NetGen
This chapter describes the NetGen program, which generates netlists for use with
third-party tools. This chapter contains the following sections:
• NetGen Overview
• NetGen Simulation Flow
• NetGen Equivalence Checking Flow
• NetGen Static Timing Analysis Flow
• Preserving and Writing Hierarchy Files
• Dedicated Global Signals in Back-Annotation Simulation
NetGen Overview
NetGen is a command line executable that reads Xilinx® design files as input, extracts
data from the design files, and generates netlists that are used with supported
third-party simulation, equivalence checking, and static timing analysis tools.
NetGen can take an implemented design file and write out a single netlist for the
entire design, or multiple netlists for each module of a hierarchical design. Individual
modules of a design can be simulated on their own, or together at the top-level.
Modules identified with the KEEP_HIERARCHY attribute are written as user-specified
Verilog, VHDL, and SDF netlists with the -mhf (Multiple Hierarchical Files) option. See
Preserving and Writing Hierarchy Files for additional information.
NetGen Flows
Each flow-specific section includes command line syntax, input files, output files, and
available command line options for each NetGen flow.
NetGen syntax is based on the type of NetGen flow you are running. For details on
NetGen flows and syntax, refer to the flow-specific sections that follow.
Valid netlist flows are:
• -sim (Simulation) - generates a simulation netlist for functional simulation or timing
simulation. For this netlist type, you must specify the output file type as Verilog or
VHDL with the -ofmt option.
netgen -sim [options ]
• -ecn (Equivalence) - generates a Verilog-based equivalence checking netlist. For this
netlist type, you must specify a tool name after the -ecn option. Possible tool names
for this netlist type are conformal or formality.
netgen -ecn conformal | formality [options ]
• -sta (Static Timing Analysis) - generates a Verilog netlist for static timing analysis.
netgen -sta [options ]
NetGen supports the following flow types:
• Functional Simulation for FPGA and CPLD designs
• Timing Simulation for FPGA and CPLD designs
• Equivalence Checking for FPGA designs
• Static Timing Analysis for FPGA designs
The flow type that NetGen runs is based on the input design file (NGC, NGD, or NCD).
The following table shows the output file types, based on the input design files:
options is one or more of the options listed in the Options for NetGen Simulation
Flow section. In addition to common options, this section also contains Verilog and
VHDL-specific options.
input_file
The FPGA Timing Simulation flow uses the following files as input:
• NCD - This physical design file may be mapped only, partially or fully placed, or
partially or fully routed.
• PCF (optional) - This is a physical constraints file. If prorated voltage or temperature
is applied to the design, the PCF must be included to pass this information to
NetGen. See -pcf (PCF File) for more information.
• ELF (MEM) (optional) - This file populates the Block RAMs specified in the .bmm
file. See -bd (Block RAM Data File) for more information.
The FPGA Timing Simulation flow creates the following output files:
• SDF file - This SDF 3.0 compliant standard delay format file contains delays
obtained from the input design files.
• V file - This is a IEEE 1364-2001 compliant Verilog HDL file that contains the netlist
information obtained from the input design files. This file is a simulation model. It
cannot be synthesized, and can only be used for simulation.
• VHD file - This VHDL IEEE 1076.4 VITAL-2000 compliant VHDL file contains the
netlist information obtained from the input design files. This file is a simulation
model. It cannot be synthesized, and can only be used for simulation.
Note See the CPLDFit chapter and the TSIM chapter for additional information.
The CPLD Timing Simulation flow uses the following files as input:
NGA file - This native generic annotated file is a logical design file from TSIM that
contains Xilinx® primitives. See the TSIM chapter for additional information.
The NetGen Simulation Flow creates the following output files:
• SDF file - A standard delay format file that contains delays obtained from the input
NGA file.
• V file - An IEEE 1364-2001 compliant Verilog HDL file that contains netlist
information obtained from the input NGA file. This file is a simulation model. It
cannot be synthesized, and can only be used for simulation.
• VHD file - A VHDL IEEE 1076.4 VITAL-2000 compliant VHDL file that contains
netlist information obtained from the input NGA file. This file is a simulation model.
It cannot be synthesized, and can only be used for simulation.
Syntax
-aka
Syntax
-bd filename [.elf|.mem] [tag tagname ]
Syntax
-bx bram_output_dir
Syntax
-dir directory_name
Syntax
-fn
Syntax
-gp port_name
Note Do not use GR, GSR, PRLD, PRELOAD, or RESET as port names, because these
are reserved names in the Xilinx® software. This option is ignored by UNISIM-based
flows, which use an NGC file as input.
Syntax
-insert_pp_buffers true|false
By default this command is set to false.
Syntax
-intstyle ise|xflow|silent
Syntax
-mhf
Syntax
-ofmt verilog|vhdl
Syntax
-pcf pcf_file .pcf
-s (Change Speed)
This option instructs NetGen to annotate the device speed grade you specify to the
netlist.
Syntax
-s speed grade|min
speed grade can be entered with or without the leading dash. For example, both -s 3
and -s -3 are allowed.
Some architectures support the -s min option, which instructs NetGen to annotate
a process minimum delay, rather than a maximum worst-case to the netlist. Use the
Speedprint or PARTGen utility programs in the software to determine whether process
minimum delays are available for your target architecture. See the PARTGen chapter for
additional information.
Settings made with this option override prorated timing parameters in the Physical
Constraints File (PCF). If you use-s min, all fields in the resulting SDF file
(MIN:TYP:MAX) are set to the process minimum value.
Syntax
-sim
Syntax
-tb
Syntax
-ti top_instance_name
Syntax
-tp port_name
Syntax
-w
Syntax
-insert_glbl [true|false]
The default value of this option is true.
If you set this option to false, the output Verilog netlist will not contain the glbl.v
module. For more information on glbl.v, see the Synthesis and Simulation Design Guide
Note If the -mhf (multiple hierarchical files) option is used, -insert_glbl cannot
be set to true.
Syntax
-ism
Syntax
-ne
By default (without the -ne option), NetGen “escapes” illegal block or net names in your
design by placing a leading backslash (\) before the name and appending a space at the
end of the name. For example, the net name “p1$40/empty” becomes “\p1$40/empty
” when name escaping is used. Illegal Verilog characters are reserved Verilog names,
such as “input” and “output,” and any characters that do not conform to Verilog naming
standards.
Syntax
-pf
Syntax
-sdf_anno [true|false]
Syntax
-sdf_path [path_name ]
Syntax
-shm
If you do not enter a -ul option, the ‘uselib line is not written into the Verilog file.
Note A blank ‘uselib statement is automatically appended to the end of the Verilog file
to clear out the ‘uselib data. If you use this option, do not use the -ism option.
Note The -ul option is valid for SIMPRIM-based functional simulation and timing
simulation flows; although not all simulators support the ‘uselib directive. Xilinx
recommends using this option with caution.
Syntax
-ul
Syntax
-vcd
-a (Architecture Only)
This option suppresses generation of entities in the output. When specified, only
architectures appear in the output. By default, NetGen generates both entities and
architectures for the input design.
Syntax
-a
Syntax
-ar architecture_name
Syntax
-extid
Syntax
-rpw roc_pulse_width
Syntax
-tpw toc_pulse_width
Syntax
-aka
Syntax
-bd filename [.elf|.mem] [tag tagname ]
Syntax
-dir directory_name
Syntax
netgen -ecn tool_name
tool_name is the name of the tool for which to output the netlist. Valid tool names are
conformal and formality.
Syntax
-fn
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-mhf
Syntax
-ne
By default (without the -ne option), NetGen “escapes” illegal block or net names in your
design by placing a leading backslash (\) before the name and appending a space at the
end of the name. For example, the net name “p1$40/empty” becomes “\p1$40/empty
” when name escaping is used. Illegal Verilog characters are reserved Verilog names,
such as “input” and “output,” and any characters that do not conform to Verilog naming
standards.
Syntax
-ngm [ngm_file ]
Syntax
-w
Syntax
-aka
Syntax
-bd filename [.elf|.mem] [tag tagname ]
Syntax
-dir directory_name
Syntax
-fn
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-mhf
Syntax
-ne
By default (without the -ne option), NetGen “escapes” illegal block or net names in your
design by placing a leading backslash (\) before the name and appending a space at the
end of the name. For example, the net name “p1$40/empty” becomes “\p1$40/empty
” when name escaping is used. Illegal Verilog characters are reserved Verilog names,
such as “input” and “output,” and any characters that do not conform to Verilog naming
standards.
Syntax
-pcf pcf_file .pcf
-s (Change Speed)
This option instructs NetGen to annotate the device speed grade you specify to the
netlist.
Syntax
-s speed grade|min
speed grade can be entered with or without the leading dash. For example, both -s 3
and -s -3 are allowed.
Some architectures support the -s min option, which instructs NetGen to annotate
a process minimum delay, rather than a maximum worst-case to the netlist. Use the
Speedprint or PARTGen utility programs in the software to determine whether process
minimum delays are available for your target architecture. See the PARTGen chapter for
additional information.
Settings made with this option override prorated timing parameters in the Physical
Constraints File (PCF). If you use-s min, all fields in the resulting SDF file
(MIN:TYP:MAX) are set to the process minimum value.
Syntax
-sta
Syntax
-w
Note When Verilog is specified, the $sdf_annotate is included in the Verilog netlist for
each module.
The following table lists the base naming convention for hierarchy output files:
The [module_name] is the name of the hierarchical module from the front-end that the user
is already familiar with. There are cases when the [module_name] could differ, they are:
• If multiple instances of a module are used in the design, then each instantiation of
the module is unique because the timing for the module is different. The names are
made unique by appending an underscore followed by a INST_ string and a count
value (e.g., numgen, numgen_INST_1, numgen_INST_2).
• If a new filename clashes with an existing filename within the name scope, then the
new name will be [module_name]_[instance_name].
Testbench File
A testbench file is created for the top-level design when the -tb option is used. The
base name of the testbench file is the same as the base name of the design, with a .tv
extension for Verilog, and a .tvhd extension for VHDL.
If the GSR and GTS are brought out to the top-level design using the -gp and -tp
options, there will be no X_ROC or X_TOC instantiation in the design netlist. Instead,
the top-most module has the following connectivity:
GSR<= GSR_PORT
GTS<= GTS_PORT
The GSR_PORT and GTS_PORT are ports on the top-level module created with the
-gp and -tp options.
When there is a STARTUP block in the design, the STARTUP block hierarchical level
is preserved in the output netlist. The output of STARTUP is connected to the global
GSR and GTS signals.
For information on setting GSR and GTS for FPGAs, see the Synthesis and Simulation
Design Guide.
Block Check
The block check verifies that each terminal symbol in the NGD hierarchy (that is, each
symbol that is not resolved to any lower-level components) is an NGD primitive. A
block check failure is treated as an error. As part of the block check, the DRC also
checks user-defined properties on symbols and the values on the properties to make
sure they are legal.
Net Check
The net check determines the number of NGD primitive output pins (drivers), 3-state
pins (drivers), and input pins (loads) on each signal in the design. If a signal does
not have at least one driver (or one 3-state driver) and at least one load, a warning is
generated. An error is generated if a signal has multiple non-3-state drivers or any
combination of 3-state and non-3-state drivers. As part of the net check, the DRC also
checks user-defined properties on signals and the values on the properties to make
sure they are legal.
Pad Check
The pad check verifies that each signal connected to pad primitives obeys the following
rules.
• If the PAD is an input pad, the signal to which it is connected can only be connected
to the following types of primitives:
– Buffers
– Clock buffers
– PULLUP
– PULLDOWN
– KEEPER
– BSCAN
The input signal can be attached to multiple primitives, but only one of each of
the above types. For example, the signal can be connected to a buffer primitive,
a clock buffer primitive, and a PULLUP primitive, but it cannot be connected
to a buffer primitive and two clock buffer primitives. Also, the signal cannot
be connected to both a PULLUP primitive and a PULLDOWN primitive. Any
violation of the rules above results in an error, with the exception of signals
attached to multiple pull-ups or pull-downs, which produces a warning. A
signal that is not attached to any of the above types of primitives also produces a
warning.
• If the PAD is an output pad, the signal it is attached to can only be connected to
one of the following primitive outputs:
– A single buffer primitive output
– A single 3-state primitive output
– A single BSCAN primitive
In addition, the signal can also be connected to one of the following primitives:
– A single PULLUP primitive
– A single PULLDOWN primitive
– A single KEEPER primitive
Any other primitive output connections on the signal will result in an error.
If the condition above is met, the output PAD signal may also be connected to
one clock buffer primitive input, one buffer primitive input, or both.
• If the PAD is a bidirectional or unbonded pad, the signal it is attached to must obey
the rules stated above for input and output pads. Any other primitive connections
on the signal results in an error. The signal connected to the pad must be configured
as both an input and an output signal; if it is not, you receive a warning.
• If the signal attached to the pad has a connection to a top-level symbol of the design,
that top-level symbol pin must have the same type as the pad pin, except that output
pads can be associated with 3-state top-level pins. A violation of this rule results
in a warning.
• If a signal is connected to multiple pads, an error is generated. If a signal is
connected to multiple top-level pins, a warning is generated.
Name Check
The name check verifies the uniqueness of names on NGD objects using the following
criteria:
• Pin names must be unique within a symbol. A violation results in an error.
• Instance names must be unique within the instances position in the hierarchy (that
is, a symbol cannot have two symbols with the same name under it). A violation
results in a warning.
• Signal names must be unique within the signals hierarchical level (that is, if you
push down into a symbol, you cannot have two signals with the same name). A
violation results in a warning.
• Global signal names must be unique within the design. A violation results in a
warning.
NGDBuild
This chapter describes the NGDBuild program. This chapter contains the following
sections:
• NGDBuild Overview
• NGDBuild Syntax
• NGDBuild Options
NGDBuild Overview
NGDBuild reads in a netlist file in EDIF or NGC format and creates a Xilinx® Native
Generic Database (NGD) file that contains a logical description of the design in terms of
logic elements, such as AND gates, OR gates, LUTs, flip-flops, and RAMs.
The NGD file contains both a logical description of the design reduced to Xilinx
primitives and a description of the original hierarchy expressed in the input netlist. The
output NGD file can be mapped to the desired device family.
The following figure shows a simplified version of the NGDBuild design flow.
NGDBuild invokes other programs that are not shown in the following figure.
Remove all out of date netlist files from your directory. Obsolete netlist files may cause
errors in NGDBuild.
• UCF file - The User Constraints File (UCF) is an ASCII file that you create. You can
create this file by hand or by using the Constraints Editor. See the Help provided
with the Constraints Editor for more information. The UCF file contains timing and
layout constraints that affect how the logical design is implemented in the target
device. The constraints in the file are added to the information in the output NGD
file. For more information on constraints, see the Constraints Guide.
By default, NGDBuild reads the constraints in the UCF file automatically if the UCF
file has the same base name as the input design file and a .ucf extension. You can
override the default behavior and specify a different constraints file with the -uc
option. See -uc (User Constraints File) for more information.
• NCF - The Netlist Constraints File (NCF) is produced by a CAE vendor toolset. This
file contains constraints specified within the toolset. The netlist reader invoked by
NGDBuild reads the constraints in this file if the NCF has the same name as the
input EDIF or NGC netlist. It adds the constraints to the intermediate NGO file and
the output Native Generic Database (NGD) file. NCF files are read in and annotated
to the NGO file during an edif2ngd conversion. This also implies that unlike UCF
files, NCF constraints only bind to a single netlist; they do not cross file hierarchies.
Note NGDBuild checks to make sure the NGO file is up-to-date and reruns
EDIF2NGD only when the EDIF has a timestamp that is newer than the NGO file.
Updating the NCF has no affect on whether EDIF2NGD is rerun. Therefore, if the
NGO is up-to-date and you only update the NCF file (not the EDIF), use the -nt on
option to force the regeneration of the NGO file from the unchanged EDIF and new
NCF. See -nt (Netlist Translation Type) for more information.
• URF file - The User Rules File (URF) is an ASCII file that you create. The Netlist
Launcher reads this file to determine the acceptable netlist input files, the netlist
readers that read these files, and the default netlist reader options. This file also
allows you to specify third-party tool commands for processing designs. The URF
can add to or override the rules in the system rules file.
You can specify the location of the URF with the NGDBuild -ur option. The URF
must have a .urf extension. See -ur (Read User Rules File) or User Rules File (URF)
in Appendix B for more information.
• NGC file - This binary file can be used as a top-level design file or as a module file:
Top-level design file.
This file is output by the Xilinx Synthesis Technology (XST) software. See the
description of design files earlier in this section for details.
Note This is not a true netlist file. However, it is referred to as a netlist in this context
to differentiate it from the NGC module file. NGC files are equivalent to NGO files
created by EDIF2NGD, but are created by XST and CORE Generator™ software.
• NMC files - These physical macros are binary files that contain the implementation
of a physical macro instantiated in the design. NGDBuild reads the NMC file to
create a functional simulation model for the macro.
Unless a full path is provided to NGDBuild, it searches for netlist, NCF, NGC, NMC,
and MEM files in the following locations:
• The working directory from which NGDBuild was invoked.
• The path specified for the top-level design netlist on the NGDBuild command line.
• Any path specified with the -sd (Search Specified Directory) on the NGDBuild
command line.
NGDBuild Syntax
ngdbuild [options ] design_name [ngd_file [.ngd]]
options can be any number of the NGDBuild command line options listed in NGDBuild
Options. Enter options in any order, preceded them with a dash (minus sign on the
keyboard) and separate them with spaces.
design_name is the top-level name of the design file you want to process. To ensure the
design processes correctly, specify a file extension for the input file, using one of the
legal file extensions specified in Overview section. Using an incorrect or nonexistent file
extension causes NGDBuild to fail without creating an NGD file. If you use an incorrect
file extension, NGDBuild may issue an unexpanded error.
Note If you are using an NGC file as your input design, you should specify the .ngc
extension. If NGDBuild finds an EDIF netlist or NGO file in the project directory, it
does not check for an NGC file.
ngd_file is the output file in NGD format. The output file name, its extension, and its
location are determined as follows:
• If you do not specify an output file name, the output file has the same name as
the input file, with an .ngd extension.
• If you specify an output file name with no extension, NGDBuild appends the .ngd
extension to the file name.
• If you specify a file name with an extension other than .ngd, you get an error
message and NGDBuild does not run.
• If the output file already exists, it is overwritten with the new file.
NGDBuild Options
This section describes the NGDBuild command line options.
• -a (Add PADs to Top-Level Port Signals)
• -aul (Allow Unmatched LOCs)
• -aut (Allow Unmatched Timegroups)
• -bm (Specify BMM Files)
• -dd (Destination Directory)
• -f (Execute Commands File)
• -i (Ignore UCF File)
• -insert_keep_hierarchy (Insert KEEP_HIERARCHY constraint)
• -intstyle (Integration Style)
• -filter (Filter File)
• -l (Libraries to Search)
• -nt (Netlist Translation Type)
• -p (Part Number)
• -quiet (Quiet)
• -r (Ignore LOC Constraints)
• -sd (Search Specified Directory)
• -u (Allow Unexpanded Blocks)
• -uc (User Constraints File)
• -ur (Read User Rules File)
• -verbose (Report All Messages)
Syntax
-a
Using the -a option depends on the behavior of your third-party EDIF writer. If your
EDIF writer treats pads as instances (like other library components), do not use -a. If
your EDIF writer treats pads as hierarchical ports, use -a to infer actual pad symbols. If
you do not use -a where necessary, logic may be improperly removed during mapping.
For EDIF files produced by Mentor Graphics and Cadence schematic tools, the -a option
is set automatically; you do not have to enter -a explicitly for these vendors.
Note The NGDBuild -a option corresponds to the EDIF2NGD -a option. If you run
EDIF2NGD on the top-level EDIF netlist separately, rather than allowing NGDBuild to
run EDIF2NGD, you must use the two -a options consistently. If you previously ran
NGDBuild on your design and NGO files are present, you must use the -nt on option
the first time you use -a. This forces a rebuild of the NGO files, allowing EDIF2NGD to
run the -a option.
Syntax
-aul
You may want to run this program with the -aul option if your constraints file includes
location constraints for pin, net, or instance names that have not yet been defined in the
HDL or schematic. This allows you to maintain one version of your constraints files for
both partially complete and final designs.
Note When using this option, make sure you do not have misspelled net or instance
names in your design. Misspelled names may cause inaccurate placing and routing.
Syntax
-aut
You may want to run this program with the -aut option if your constraints file includes
timegroup constraints that have not yet been defined in the HDL or schematic. This
allows you to maintain one version of your constraints files for both partially complete
and final designs.
Note When using this option, make sure you do not have misspelled timegroup names
in your design. Misspelled names may cause inaccurate placing and routing.
Syntax
-bm file_name [.bmm]
If this option is unspecified, the ELF or MEM root file name with a .bmm extension
is assumed. If only this option is given, then NGDBuild verifies that the BMM file is
syntactically correct and makes sure that the instances specified in the BMM file exist in
the design. Only one -bm option can be used.
Syntax
-dd NGOoutput_directory
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-i
Note If you use this option, do not use the -uc option.
Syntax
-insert_keep_hierarchy
Note Care should be taken when trying to use this option with Cores, as they may
not be coded for maintaining hierarchy.
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-filter [filter_file ]
By default, the filter file name is filter.filter.
-l (Libraries to Search)
This option indicates the list of libraries to search when determining what library
components were used to build the design. This option is passed to the appropriate
netlist reader. The information allows NGDBuild to determine the source of the design
components so it can resolve the components to NGD primitives.
Syntax
-l {libname }
You can specify multiple libraries by entering multiple -l libname entries on the
NGDBuild command line.
Valid entries for libname are the following:
• xilinxun (Xilinx® Unified library)
• synopsys
Note Using -l xilinxun is optional, since NGDBuild automatically accesses these
libraries. In cases where NGDBuild automatically detects Synopsys designs (for
example, the netlist extension is .sedif), -l synopsys is also optional.
Syntax
-nt timestamp|on|off
timestamp (the default) instructs the Netlist Launcher to perform the normal timestamp
check and update NGO files according to their timestamps.
on translates netlists regardless of timestamps (rebuilding all NGO files).
off does not rebuild an existing NGO file, regardless of its timestamp.
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
When you use this option, the NGD file produced by NGDBuild is optimized for
mapping into that architecture.
You do not need to specify a part if your NGO file already contains information about
the desired vendor and family (for example, if you placed a PART property in a
schematic or a CONFIG PART statement in a UCF file). However, you can override the
information in the NGO file with the -p option when you run NGDBuild.
-quiet (Quiet)
This option tells the program to only report error and warning messages.
Syntax
-quiet
Syntax
-r
Syntax
-sd {search_path }
The search_path must be separated from the -sd option by spaces or tabs (for example,
-sd designs is correct, -sddesigns is not). You can specify multiple search paths
on the command line. Each must be preceded with the -sd option; you cannot specify
more than one search_path with a single -sd option. For example, the following syntax is
acceptable for specifying two search paths:
-sd /home/macros/counter -sd /home/designs/pal2
The following syntax is not acceptable:
-sd /home/macros/counter /home/designs/pal2
Syntax
-u
You may want to run NGDBuild with the -u option to perform preliminary mapping,
placement and routing, timing analysis, or simulation on the design even though the
design is not complete. To ensure the unexpanded blocks remain in the design when it is
mapped, run the MAP program with the -u (Do Not Remove Unused Logic) option, as
described in the MAP chapter.
Syntax
-uc ucf_file [.ucf]
ucf_file is the name of the UCF file. The user constraints file must have a .ucf extension.
If you specify a user constraints file without an extension, NGDBuild appends the .ucf
extension to the file name. If you specify a file name with an extension other than .ucf,
you get an error message and NGDBuild does not run.
If you do not enter a -uc option and a UCF file exists with the same base name as the
input design file and a .ucf extension, NGDBuild automatically reads the constraints in
this UCF file.
For more information on constraints, see the Constraints Guide.
Syntax
-ur rules_file [.urf]
The user rules file must have a .urf extension. If you specify a user rules file with no
extension, NGDBuild appends the .urf extension to the file name. If you specify a file
name with an extension other than .urf, you get an error message and NGDBuild
does not run.
See User Rules File (URF) in Appendix B for more information.
Syntax
-verbose
MAP
This chapter describes the MAP program, which is used during the implementation
process to map a logical design to a Xilinx® FPGA. This chapter contains the following
sections:
• MAP Overview
• MAP Process
• MAP Syntax
• MAP Options
• Resynthesis and Physical Synthesis Optimizations
• Guided Mapping
• Simulating Map Results
• MAP Report (MRP) File
• Physical Synthesis Report (PSR) File
• Halting MAP
MAP Overview
The MAP program maps a logical design to a Xilinx® FPGA. The input to MAP is an
NGD file, which is generated using the NGDBuild program. The NGD file contains a
logical description of the design that includes both the hierarchical components used to
develop the design and the lower level Xilinx primitives. The NGD file also contains any
number of NMC (macro library) files, each of which contains the definition of a physical
macro. Finally, depending on the options used, MAP places the design.
MAP first performs a logical DRC (Design Rule Check) on the design in the NGD file.
MAP then maps the design logic to the components (logic cells, I/O cells, and other
components) in the target Xilinx FPGA.
The output from MAP is an NCD (Native Circuit Description) file a physical
representation of the design mapped to the components in the targeted Xilinx FPGA.
The mapped NCD file can then be placed and routed using the PAR program.
The following figure shows the MAP design flow:
MAP Process
MAP performs the following steps when mapping a design.
1. Selects the target Xilinx® device, package, and speed. MAP selects a part in one
of the following ways:
• Uses the part specified on the MAP command line.
• If a part is not specified on the command line, MAP selects the part specified in
the input NGD file. If the information in the input NGD file does not specify a
complete architecture, device, and package, MAP issues an error message and
stops. If necessary, MAP supplies a default speed.
2. Reads the information in the input design file.
3. Performs a Logical DRC (Design Rule Check) on the input design. If any DRC
errors are detected, the MAP run is aborted. If any DRC warnings are detected,
the warnings are reported, but MAP continues to run. The Logical Design Rule
Check (DRC) (also called the NGD DRC) is described in the Logical Design Rule
Check (DRC) chapter.
Note Step 3 is skipped if the NGDBuild DRC was successful.
4. Removes unused logic. All unused components and nets are removed, unless the
following conditions exist:
• A Xilinx Save constraint has been placed on a net during design entry. If an
unused net has an S constraint, the net and all used logic connected to the net
(as drivers or loads) is retained. All unused logic connected to the net is deleted.
For a more complete description of the S constraint, see the Constraints Guide.
• The -u option was specified on the MAP command line. If this option is
specified, all unused logic is kept in the design.
5. Maps pads and their associated logic into IOBs.
6. Maps the logic into Xilinx components (IOBs, Slices, etc.). The mapping is influenced
by various constraints; these constraints are described in the Constraints Guide.
7. Updates the information received from the input NGD file and write this updated
information into an NGM file. This NGM file contains both logical information about
the design and physical information about how the design was mapped. The NGM
file is used only for back-annotation. For more information, see Guided Mapping.
8. Creates a physical constraints (PCF) file. This is a text file that contains any
constraints specified during design entry. If no constraints were specified during
design entry, an empty file is created so that you can enter constraints directly into
the file using a text editor or indirectly through FPGA Editor.
MAP either creates a PCF file if none exists or rewrites an existing file by overwriting
the schematic-generated section of the file (between the statements SCHEMATIC
START and SCHEMATIC END). For an existing constraints file, MAP also checks
the user-generated section and may either comment out constraints with errors or
halt the program. If no errors are found in the user-generated section, the section
remains the same.
9. Automatically places the design for all architectures other than Spartan®-3 or
Virtex®-4. For MAP to run placement for Spartan-3 or Virtex-4 parts, the –timing
option must be enabled.
10. Runs a physical Design Rule Check (DRC) on the mapped design. If DRC errors are
found, MAP does not write an NCD file.
11. Creates an NCD file, which represents the physical design. The NCD file describes
the design in terms of Xilinx components CLBs, IOBs, etc.
12. Writes a MAP report (MRP) file, which lists any errors or warnings found in the
design, details how the design was mapped, and supplies statistics about component
usage in the mapped design.
MAP Syntax
The following syntax maps your logical design:
map [options ] infile.ngd] [pcf_file .pcf]]
options can be any number of the MAP command line options listed in the MAP Options
section of this chapter. Enter options in any order, preceded them with a dash (minus
sign on the keyboard) and separate them with spaces.
infile is the input NGD file name. You do not need to enter the .ngd extension, since
map looks for an NGD file as input.
pcf_file is the name of the output Physical Constraints File (PCF). If not specified, the PCF
name and location are determined in the following ways:
• If you do not specify a PCF on the command line, the PCF has the same name as the
output file but with a .pcf extension. The file is placed in the output files directory.
• If you specify a PCF with no path specifier (for example, cpu_1.pcf instead of
/home/designs/cpu_1.pcf), the PCF is placed in the current working directory.
• If you specify a physical constraints file name with a full path specifier (for example,
/home/designs/cpu_1.pcf), the PCF is placed in the specified directory.
• If the PCF already exists, MAP reads the file, checks it for syntax errors, and
overwrites the schematic-generated section of the file. MAP also checks the
user-generated section for errors and corrects errors by commenting out physical
constraints in the file or by halting the operation. If no errors are found in the
user-generated section, the section is unchanged.
Note For a discussion of the output file name and its location, see -o (Output File Name).
MAP Options
This section describes PAR options in more detail. The listing is in alphabetical order.
• -activity_file
• -bp (Map Slice Logic)
• -c (Pack Slices)
• -cm (Cover Mode)
• -detail (Generate Detailed MAP Report)
• -equivalent_register_removal (Remove Redundant Registers)
• -f (Execute Commands File)
• -global_opt (Global Optimization)
• -ignore_keep_hierarchy (Ignore KEEP_HIERARCHY Properties)
• -intstyle (Integration Style)
• -ir (Do Not Use RLOCs to Generate RPMs)
• -filter (Filter File)
• -lc (Lut Combining)
• -logic_opt (Logic Optimization)
• -mt (Multi-Threading)
• -ntd (Non Timing Driven)
• -o (Output File Name)
• -ol (Overall Effort Level)
• -p (Part Number)
• -power (Power Optimization)
• -pr (Pack Registers in I/O)
• -register_duplication (Duplicate Registers)
• -retiming (Register Retiming During Global Optimization)
• -smartguide (SmartGuide)
• -t (Placer Cost Table)
• -timing (Timing-Driven Packing and Placement)
• -u (Do Not Remove Unused Logic)
• -w (Overwrite Existing Files)
• -x (Performance Evaluation Mode)
• -xe (Extra Effort Level)
• -xt (Routing Strategy)
Syntax
-activity_file activity_file .{vhdl|saif}
MAP supports two activity file formats, .saif and .vcd.
Note This option is supported for all FPGA architectures.
Note This option is only valid if you also use -power on (See -power (Power
Optimization) option) on the MAP command line.
Syntax
-bp
-c (Pack Slices)
This option determines the degree to which slices utilize unrelated packing when the
design is mapped.
Note Slice packing and compression are not available if you use -timing
(timing-driven packing and placement).
Syntax
-c [packfactor ]
The default value for packfactor (no value for -c, or -c is not specified) is 100.
• For Spartan®-3, Spartan-3A, Spartan-3E, and Virtex®-4 devices when -timing is
not specified, packfactor can be any integer between 0 and 100 (inclusive).
• For Spartan-3, Spartan-3A, Spartan-3E, and Virtex-4 devices when -timing is
specified, packfactor can only be 0, 1 or 100.
• For Spartan-6, Virtex-5, and Virtex-6 devices, timing-driven packing and placement
is always on and packfactor can be 0, 1 or 100.
Note For these architectures, you can also try -lc (Lut Combining) to increase
packing density.
The packfactor (for non-zero values) is the target slice density percentage.
• A packfactor value of 0 specifies that only related logic (logic having signals in
common) should be packed into a single Slice, and yields the least densely packed
design.
• A packfactor of 1 results in maximum packing density as the packer is attempting
1% slice utilization.
• A packfactor of 100 means that only enough unrelated packs will occur to fit the
device with 100% utilization. This results in minimum packing density.
For packfactor values from 1 to 100, MAP merges unrelated logic into the same slice only
if the design requires denser packing to meet the target slice utilization. If there is no
unrelated packing required to fit the device, the number of slices utilized when -c 100
is specified will equal the number utilized when -c 0 is specified.
Although specifying a lower packfactor results in a denser design, the design may then
be more difficult place and route. Unrelated packs can create slices with conflicting
placement needs and the denser packing can create local routing congestion.
Note The -c 1 setting should only be used to determine the maximum density
(minimum area) to which a design can be packed. Xilinx® does not recommend
using this option in the actual implementation of your design. Designs packed to this
maximum density generally have longer run times, severe routing congestion problems
in PAR, and poor design performance.
Processing a design with the -c 0 option is a good way to get a first estimate of the
number of Slices required by your design.
Syntax
-cm [area|speed|balanced]
In this phase, MAP assigns the logic to CLB function generators (LUTs). Use the area,
speed, and balanced settings as follows:
area (the default) makes reducing the number of LUTs (and therefore the number of
CLBs) the highest priority.
speed has a different effect depending on whether or not there are user specified timing
constraints. For designs with user-specified timing constraints, the speed mode makes
achieving timing constraints the highest priority and reducing the number of levels of
LUTS (the number of LUTs a path passes through) the next priority. For designs with no
user-specified timing constraints, the speed mode makes achieving maximum system
frequency the highest priority and reducing the number levels of LUTs the next priority.
This setting makes it easiest to achieve timing constraints after the design is placed and
routed. For most designs, there is a small increase in the number of LUTs (compared to
the area setting), but in some cases the increase may be large.
balanced tries to balance the two priorities - achieving timing requirements and reducing
the number of LUTs. It produces results similar to the speed setting but avoids the
possibility of a large increase in the number of LUTs. For a design with user-specified
timing constraints, the balanced mode makes achieving timing constraints the highest
priority and reducing the number of LUTS the next priority. For the design with no
user-specified timing constraints, the balanced mode makes achieving maximum system
frequency the highest priority and reducing the number of LUTs the next priority.
Syntax
-detail
When you use -detail, DCM and PLL configuration data (Section 12) and information
on control sets (Section 13, Virtex®-5 only) are included in the MAP report.
Syntax
-equivalent_register_removal {on|off}
With this option on, any registers with redundant functionality are examined to see if
their removal will increase clock frequencies. By default, this option is on.
Note This option is available only when you use the -global_opt (Global Optimization).
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-global_opt off|speed|area|power
off is the default.
speed optimizes for speed.
area optimizes for minimum area (not available for Virtex-4 devices).
power optimizes for minimum power (not available for Virtex-4 devices)
Global optimization includes logic remapping and trimming, logic and register
replication and optimization, and logic replacement of 3–state buffers. These routines
will extend the runtime of MAP because extra processing occurs. By default this option
is off.
Note The -global_opt power option can use the activity data supplied via the
-activityfile option
You cannot use the -u option with -global_opt. When SmartGuide™ is enabled
(-smartguide), guide percentages will decrease.
Note See the -equivalent_register_removal (Remove Redundant Registers) and
-retiming (Register Retiming During Global Optimization) options for use with
-global_opt. See also the Re-Synthesis and Physical Synthesis Optimizations section
of this chapter.
Syntax
-ignore_keep_hierarchy
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-ir all|off|place
all disables all RLOC processing.
off allows all RLOC processing.
place tells MAP to use RLOC constraints to group logic within Slices, but not to generate
RPMs (Relationally Placed Macros) controlling the relative placement of Slices.
Syntax
-filter [filter_file ]
By default, the filter file name is filter.filter.
Syntax
-lc auto|area|off
area is the more aggressive option, combining LUTs whenever possible.
auto (the default for Spartan-6 devices) will attempt to strike a balance between
compression and performance.
off (the default for Virtex-6 and Virtex-5 devices) will disable the LUT Combining
feature.
Syntax
-logic_opt on|off
The -logic_opt option works on a placed netlist to try and optimize timing-critical
connections through restructuring and resynthesis, followed by incremental placement
and incremental timing analysis. A fully placed, timing optimized NCD design file is
produced. Note that this option requires timing-driven mapping, which is enabled
with the MAP -timing option. When SmartGuide™ is enabled (-smartguide), guide
percentages will decrease.
Note See also the Re-Synthesis and Physical Synthesis Optimizations section of this
chapter.
-mt (Multi-Threading)
This option lets MAP use more than one processor. It provides multi-threading
capabilities to the Placer.
Note This option is available for Spartan®-6, Virtex®-6, and Virtex-5 devices only.
Syntax
-mt off|2
The default is off. When off, the software uses only one processor. When the value is
2, the software will use 2 cores if they are available.
Syntax
-ntd
When the -ntd switch is enabled, all timing constraints are ignored and the
implementation tools do not use any timing information to place and route the design.
Note To run the entire flow without timing constraints, the -ntd switch needs to be
specified for both MAP and PAR.
Syntax
-o outfile [.ncd]
The .ncd extension is optional. The output file name and its location are determined in
the following ways:
• If you do not specify an output file name with the -o option, the output file has the
same name as the input file, with a .ncd extension. The file is placed in the input
files directory
• If you specify an output file name with no path specifier (for example, cpu_dec.ncd
instead of /home/designs/cpu_dec.ncd), the NCD file is placed in the current
working directory.
• If you specify an output file name with a full path specifier (for example,
/home/designs/cpu_dec.ncd), the output file is placed in the specified directory.
• If the output file already exists, it is overwritten with the new NCD file. You do not
receive a warning when the file is overwritten.
Note Signals connected to pads or to the outputs of flip-flops, latches, and RAMS found
in the input file are preserved for back-annotation.
Syntax
-ol std|high
• Use std for low effort level (fastest runtime at expense of QOR)
• Use high for high effort level (best QOR with increased runtime)
The default effort level is high for all architectures.
The -ol option is available when running timing-driven packing and placement with
the -timing option.
Note Xilinx® recommends setting the MAP effort level to equal or higher than the
PAR effort level.
Example
map -timing -ol std design.ncd output.ncd design.pcf
This example sets the overall MAP effort level to std (fastest runtime at expense of
QOR).
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
If you do not specify a part number, MAP selects the part specified in the input NGD
file. If the information in the input NGD file does not specify a complete device and
package, you must enter a device and package specification using this option. MAP
supplies a default speed value, if necessary.
The architecture you specify must match the architecture specified in the input NGD file.
You may have chosen this architecture when you ran NGDBuild or during an earlier
step in the design entry process (for example, you may have specified the architecture in
the ISE® Design Suite or in your synthesis tool). If the architecture does not match, you
must run NGDBuild again and specify the architecture.
Syntax
-power on|off|high|xe
off specifies that no power optimization with a negative effect on runtime, memory or
performance will be performed. This is the default option.
on (standard) specifies the use of power optimization algorithms during placement to
decrease capacitive loading on data and clocking nets to reduce overall dynamic power.
The main trade-off with this option is additional runtime and modified placement which
may result in slightly reduced performance. This option is available for all architectures.
high specifies the use of clock gating algorithms that reduce overall switching to reduce
dynamic power in the design. The main trade-off with this option is additional runtime,
minor area increase, increased system memory requirements and additional logic in the
data or control paths that can result in reduced performance. However, the power
savings is generally more substantial than savings when you use on (standard). This
option is available only for Virtex-6 devices.
xe (extra effort) specifies the use of both standard and high algorithms for the greatest
reduction in dynamic power optimization. However, this selection generally has
the largest impact on runtime, area, memory and performance. This option is only
recommended when you have adequate timing slack in the design and additional
runtime and memory can be tolerated. This option is available only for Virtex-6 devices.
When you use -power on, you can also specify a switching activity file to further
improve power optimization. For more information see -activity_file.
You can use the -power option with the -global_opt power switch for additional
power optimization and improvement. For more information see -global_opt.
Syntax
-pr off|i|o|b
By default (without the -pr option), MAP only places flip-flops or latches within an
I/O component if an IOB = TRUE attribute has been applied to the register either by
the synthesis tool or by the User Constraints File (.ucf). The -pr option specifies that
flip-flops or latches may be packed into input registers (i selection), output registers
(o selection), or both (b selection) even if the components have not been specified in
this way. If this option is not specified, defaults to off. An IOB property on a register,
whether set to TRUE or FALSE, will override the –pr option for that specific register.
Syntax
-register_duplication on|off
The -register_duplication option is only available when running timing-driven
packing and placement with the -timing option. The -register_duplication
option duplicates registers to improve timing when running timing-driven packing. See
-timing (Timing-Driven Packing and Placement).
Syntax
-retiming on|off
When this option is on, registers are moved forward or backwards through the logic
to balance out the delays in a timing path to increase the overall clock frequency. By
default, this option is off.
The overall number of registers may be altered due to the processing.
Note This option is available only when -global_opt (Global Optimization) is used.
-smartguide (SmartGuide)
This option instructs the program to use results from a previous implementation to guide
the current implementation, based on a placed and routed NCD file. SmartGuide™
technology automatically enables timing-driven packing and placement in MAP (map
-timing), which improves design performance and timing for highly utilized designs.
You may obtain better results if you use the map -timing option to create a placed and
routed NCD guide file before enabling SmartGuide technology. SmartGuide technology
can be enabled from the command line or from the Hierarchy pane of the Design panel
in Project Navigator.
Syntax
-smartguide design_name .ncd
Note SmartGuide technology will give you a higher guide percentage if an NGM file
is available. The NGM file contains information on the transformations done in the
MAP process. See the MAP Process section of this chapter for information on how
MAP detects the NGM file.
With SmartGuide technology, all guiding is done in MAP at the BEL level. Guiding
includes packing, placement, and routing. SmartGuide technology optimally changes
the packing and placement of a design and then routes new nets during PAR. The first
goal of SmartGuide technology is to maintain design implementation on the unchanged
part and meet timing requirements on the changed part; the second goal is to reduce
runtime. Notice that the unchanged part of the implementation will not be changed and
therefore will keep the same timing score. Paths that fail timing but do not change
should be 100% guided. Paths that fail timing and are changed will be re-implemented.
The results from the MAP run are stored in the output map report file (.mrp). Guide
statistics, including the number of guided nets and all new, guided, and re-implemented
components are listed in the map report, which is an estimated report. The final statistics
are listed in the PAR report file (.par). A separate guide report file (.grf) is generated
by PAR. If you use -smartguide in the PAR command line, a detailed guide report file
is created. If you do not use -smartguide, a summary guide report file is created. The
guide report file lists components and nets that are re-implemented or new.
The -timing option enables all options specific to timing-driven packing and
placement. This includes the -ol option, which sets the overall effort level used to
pack and place the design. See -ol (Overall Effort Level) for more information. The
following options are enabled when you use -timing: -logic_opt, -ntd, -ol,
-register_duplication, -x, and -xe. See individual option descriptions in this
section for details. See also -timing (Timing-Driven Packing and Placement) for more
information.
Syntax
-t [placer_cost_table ]
placer_cost_table is the cost table the placer uses (placer cost tables are described in the
PAR Chapter). Valid values are 1–100 and the default is 1.
To automatically create implementations using several different cost tables, please refer
to the SmartXplorer section in this document.
Note The -t option is only available when running timing-driven packing and
placement with the -timing option.
Syntax
-timing
When you specify -timing, placement occurs in MAP rather than in PAR. Using this
option may result in longer runtimes for MAP, though it will reduce the PAR runtime.
Timing-driven packing and placement is recommended to improve design performance,
timing, and packing for highly utilized designs. If the unrelated logic number (shown in
the Design Summary section of the MAP report) is non-zero, then the -timing option is
useful for packing more logic in the device. Timing-driven packing and placement is
also recommended when there are local clocks present in the design. If timing-driven
packing and placement is selected in the absence of user timing constraints, the tools will
automatically generate and dynamically adjust timing constraints for all internal clocks.
This feature is referred to as Performance Evaluation Mode. See also -x (Performance
Evaluation Mode) for more information. This mode allows the clock performance for all
clocks in the design to be evaluated in one pass. The performance achieved by this mode
is not necessarily the best possible performance each clock can achieve, instead it is a
balance of performance between all clocks in the design.
The -timing option enables all options specific to timing-driven packing and
placement. This includes the -ol option, which sets the overall effort level used to
pack and place the design. See -ol (Overall Effort Level) for more information. The
following options are enabled when you use -timing: -logic_opt, -ntd, -ol,
-register_duplication, -x, and -xe. See individual option descriptions in this
section for details. See also Re-Synthesis and Physical Synthesis Optimizations in this
chapter for more information.
Syntax
-u
By default (without the-u option), MAP eliminates unused components and nets from
the design before mapping. Unused logic is logic that is undriven, does not drive other
logic, or logic that acts as a “cycle” and affects no device output. When –u is specified,
MAP applies an “S” (NOCLIP) property to all dangling signals which prevents trimming
from initiating at that point and cascading through the design. Dangling components
may still be trimmed unless a dangling signal is present to accept the NOCLIP property.
Syntax
-w
Syntax
-x
This operation is referred to as "Performance Evaluation" mode. This mode is entered
into either by using the -x option or when no timing constraints are used in a
design. The tools create timing constraints for each internal clock separately and will
tighten/loosen the constraint based on feedback during execution. The MAP effort level
controls whether the focus is on fastest run time (STD) or best performance (HIGH).
Note While –x ignores all user-generated timing constraints, specified in a UCF/NCF
file, all physical constraints such as LOC and AREA_GROUPS are used.
Note The -x and -ntd switches are mutually exclusive. If user timing constraints are
not used, only one automatic timing mode may be selected.
Syntax
-xe effort_level
effort_level can be set to n (normal) or c (continue). when -xe is set to c, MAP continues
to attempt to improve packing until little or no improvement can be made.
map -ol high -xe n design.ncd output.ncd design.pcf
Syntax
-xt cost_table
cost_table is an integer between 0 and 5 (inclusive) that will select variations of the
algorithms to let you more closely optimize them to your design. The default is 0.
Guided Mapping
In guided mapping, an existing NCD is used to guide the current MAP run. The guide
file may be from any stage of implementation: unplaced or placed, unrouted or routed.
Xilinx® recommends generating an NCD file using the current release of the software.
Using a guide file generated by a previous software release usually works, but may
not be supported.
Note When using guided mapping with the -timing option, Xilinx recommends using a
placed NCD as the guide file. A placed NCD is produced by running MAP with the
-timing option, or running PAR.
For example, consider the following logical circuit generated by NGDBuild from a
design file, shown in the following figure.
Observe the Boolean output from the combinatorial logic. Suppose that after running
MAP for the preceding circuit, you obtain the following result.
CLB Configuration
Observe that MAP has generated an active low (C) instead of an active high (C).
Consequently, the Boolean output for the combinatorial logic is incorrect. When you
run NetGen using the mapped.ngm file, you cannot detect the logical error because the
delays are back-annotated to the correct logical design, and not to the physical design.
One way to detect the error is by running the NetGen command without using the
mapped.ngm cross-reference file.
netgen mapped.ncd -o mapped.nga
As a result, physical simulations using the mapped.nga file should detect a physical
error. However, the type of error is not always easily recognizable. To pinpoint the error,
use FPGA Editor or call Xilinx® Customer Support. In some cases, a reported error may
not really exist, and the CLB configuration is actually correct. You can use FPGA Editor
to determine if the CLB is correctly modeled.
Finally, if both the logical and physical simulations do not discover existing errors, you
may need to use more test vectors in the simulations.
• Design Summary - Summarizes the mapper run, showing the number of errors
and warnings, and how many of the resources in the target device are used by
the mapped design.
• Table of Contents - Lists the remaining sections of the MAP report.
• Errors - Shows any errors generated as a result of the following:
– Errors associated with the logical DRC tests performed at the beginning of
the mapper run. These errors do not depend on the device to which you are
mapping.
– Errors the mapper discovers (for example, a pad is not connected to any logic,
or a bidirectional pad is placed in the design but signals only pass in one
direction through the pad). These errors may depend on the device to which
you are mapping.
– Errors associated with the physical DRC run on the mapped design.
• Warnings - Shows any warnings generated as a result of the following:
– Warnings associated with the logical DRC tests performed at the beginning of
the mapper run. These warnings do not depend on the device to which you
are mapping.
– Warnings the mapper discovers. These warnings may depend on the device
to which you are mapping.
– Warnings associated with the physical DRC run on the mapped design.
• Informational - Shows messages that usually do not require user intervention to
prevent a problem later in the flow. These messages contain information that may
be valuable later if problems do occur.
• Removed Logic Summary - Summarizes the number of blocks and signals removed
from the design. The section reports on these kinds of removed logic.
• Removed Logic - Describes in detail all logic (design components and nets) removed
from the input NGD file when the design was mapped. Generally, logic is removed
for the following reasons:
– The design uses only part of the logic in a library macro.
– The design has been mapped even though it is not yet complete.
– The mapper has optimized the design logic.
– Unused logic has been created in error during schematic entry.
This section also indicates which nets were merged (for example, two nets were
combined when a component separating them was removed).
In this section, if the removal of a signal or symbol results in the subsequent
removal of an additional signal or symbol, the line describing the subsequent
removal is indented. This indentation is repeated as a chain of related logic is
removed. To quickly locate the cause for the removal of a chain of logic, look
above the entry in which you are interested and locate the top-level line, which
is not indented.
• IOB Properties - Lists each IOB to which the user has supplied constraints along
with the applicable constraints.
• RPMs - Indicates each Relationally Placed Macro (RPM) used in the design, and the
number of device components used to implement the RPM.
• SmartGuide Report - If you have mapped using SmartGuide™ technology, this
section shows the estimated results obtained using SmartGuide technology, which is
the estimated percentage of components and nets that were guided. SmartGuide
technology results in the MAP report are estimated. SmartGuide technology results
in the PAR report are accurate. See the ReportGen section of the PAR chapter for
more information.
• Area Group & Partition Summary - The mapper summarizes results for each area
group or partition found in the design. MAP uses area groups to specify a group
of logical blocks that are packed into separate physical areas. If no area groups or
partitions are found in the design, the MAP report states this.
• Timing Report - This section, produced with the -timing option, shows
information on timing constraints considered during the MAP run. This report is
not generated by default. This report is only generated when the –detail switch is
specified.
• Configuration String Information - This section, produced with the -detail
option, shows configuration strings and programming properties for special
components like DCMs, BRAMS, GTs and similar components. DCM and PLL
reporting are available. Configuration strings for slices and IOBs marked SECURE
are not shown. This report is not generated by default. This report is only generated
when the –detail switch is specified.
• Control Set Information - This section controls the set information that is written
only for Virtex®-5 devices. This report is not generated by default. This report is
only generated when the –detail switch is specified.
• Utilization by Hierarchy - This section is controls the utilization hierarchy only for
Virtex-4, Virtex-5, and Spartan®-3 architectures. This report is not generated by
default. This report is only generated when the –detail switch is specified.
Note The MAP Report is formatted for viewing in a monospace (non-proportional)
font. If the text editor you use for viewing the report uses a proportional font, the
columns in the report do not line up correctly.
Note The MAP Report generates a pinout table with pins including the values DIFFSI,
DIFFMI, and _NDT.
Design Information
------------------
Command Line : map -intstyle ise -p xc6vlx75t-ff484-1 -w -ol high -t 1 -xt 0 -register_duplication off -global_opt off
-mt off -ir off -pr o -lc off -power off -o wave_gen_map.ncd wave_gen.ngd wave_gen.pcf
Target Device : xc6vlx75t
Target Package : ff484
Target Speed : -1
Mapper Version : virtex6 -- $Revision: 1.52 $
Mapped Date : Thu Feb 25 16:16:02 2010
Design Summary
--------------
Number of errors: 0
Number of warnings: 0
Slice Logic Utilization:
Number of Slice Registers: 569 out of 93,120 1%
Number used as Flip Flops: 568
Number used as Latches: 1
Number used as Latch-thrus: 0
Number used as AND/OR logics: 0
Number of Slice LUTs: 958 out of 46,560 2%
Number used as logic: 854 out of 46,560 1%
Number using O6 output only: 658
Number using O5 output only: 15
Number using O5 and O6: 181
Number used as ROM: 0
Number used as Memory: 0 out of 16,720 0%
Number used exclusively as route-thrus: 104
Number with same-slice register load: 102
Number with same-slice carry load: 2
Number with other load: 0
A LUT Flip Flop pair for this architecture represents one LUT paired with
one Flip Flop within a slice. A control set is a unique combination of
clock, reset, set, and enable signals for a registered element.
The Slice Logic Distribution report is not meaningful if the design is
over-mapped for a non-slice resource or if Placement fails.
OVERMAPPING of BRAM resources should be ignored if the design is
over-mapped for a non-BRAM resource or if placement fails.
IO Utilization:
Number of bonded IOBs: 17 out of 240 7%
IOB Flip Flops: 11
Table of Contents
-----------------
Section 1 - Errors
Section 2 - Warnings
Section 3 - Informational
Section 4 - Removed Logic Summary
Section 5 - Removed Logic
Section 6 - IOB Properties
Section 7 - RPMs
Section 8 - Guide Report
Section 9 - Area Group and Partition Summary
Section 10 - Timing Report
Section 11 - Configuration String Information
Section 12 - Control Set Information
Section 13 - Utilization by Hierarchy
Section 1 - Errors
------------------
Section 2 - Warnings
--------------------
Section 3 - Informational
-------------------------
INFO:LIT:243 - Logical network uart_rx_i0/frm_err has no load.
INFO:MapLib:564 - The following environment variables are currently set:
INFO:MapLib:591 - XIL_MAP_NODRC Value: 1
INFO:LIT:244 - All of the single ended outputs in this design are using slew
rate limited output drivers. The delay on speed critical single ended outputs
can be dramatically reduced by designating them as fast outputs.
INFO:Pack:1716 - Initializing temperature to 85.000 Celsius. (default - Range:
0.000 to 85.000 Celsius)
INFO:Pack:1720 - Initializing voltage to 0.950 Volts. (default - Range: 0.950 to
1.050 Volts)
INFO:Timing:3386 - Intersecting Constraints found and resolved. For more information, see the TSI report. Please consult the Xilinx
Command Line Tools User Guide for information on generating a TSI report.
INFO:Map:215 - The Interim Design Summary has been generated in the MAP Report
(.mrp).
INFO:Pack:1650 - Map created a placed design.
The trimmed logic report below shows the logic removed from your design due to
sourceless or loadless signals, and VCC or ground connections. If the removal
of a signal or symbol results in the subsequent removal of an additional signal
or symbol, the message explaining that second removal will be indented. This
indentation will be repeated as a chain of related logic is removed.
To quickly locate the original cause for the removal of a chain of logic, look
above the place where that logic is listed in the trimming report, then locate
the lines that are least indented (begin at the leftmost edge).
Optimized Block(s):
TYPE BLOCK
GND XST_GND
GND char_fifo_i0/BU2/XST_GND
VCC char_fifo_i0/BU2/XST_VCC
GND samp_ram_i0/BU2/XST_GND
VCC samp_ram_i0/BU2/XST_VCC
VCC DAC_SPI_controller_i0/XST_VCC
GND DAC_SPI_controller_i0/out_ddr_flop_spi_clk_i0/XST_GND
VCC DAC_SPI_controller_i0/out_ddr_flop_spi_clk_i0/XST_VCC
GND clk_gen_i0/clk_core_i0/XST_GND
VCC clk_gen_i0/clk_core_i0/XST_VCC
GND clk_gen_i0/clk_div_i0/XST_GND
VCC clk_gen_i0/clk_div_i0/XST_VCC
VCC cmd_parse_i0/XST_VCC
VCC resp_gen_i0/XST_VCC
GND resp_gen_i0/to_bcd_i0/XST_GND
VCC resp_gen_i0/to_bcd_i0/XST_VCC
GND rst_gen_i0/reset_bridge_clk_clk_samp_i0/XST_GND
GND rst_gen_i0/reset_bridge_clk_rx_i0/XST_GND
GND rst_gen_i0/reset_bridge_clk_tx_i0/XST_GND
GND samp_gen_i0/XST_GND
VCC samp_gen_i0/XST_VCC
To enable printing of redundant blocks removed and signals merged, set the
detailed map report option and rerun map.
+------------------------------------------------------------------------------------------------------------------------------------
| IOB Name | Type | Direction | IO Standard | Diff | Drive | Slew | Reg (s) |
| | | | | Term | Strength | Rate | |
+------------------------------------------------------------------------------------------------------------------------------------
| DAC_clr_n_pin | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| DAC_cs_n_pin | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | |
| SPI_MOSI_pin | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| clk_pin | IOB | INPUT | LVCMOS25 | | | | |
| lb_sel_pin | IOB | INPUT | LVCMOS25 | | | | |
| led_pins<0> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<1> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<2> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<3> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<4> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<5> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<6> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| led_pins<7> | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | OFF |
| rst_pin | IOB | INPUT | LVCMOS25 | | | | |
| rxd_pin | IOB | INPUT | LVCMOS25 | | | | |
| spi_clk_pin | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | ODDR |
| txd_pin | IOB | OUTPUT | LVCMOS25 | | 12 | SLOW | |
+------------------------------------------------------------------------------------------------------------------------------------
Section 7 - RPMs
----------------
-------------------------------
----------------------
For more information about the Timing Analyzer, consult the Xilinx Timing
Analyzer Reference Manual; for more information about TRCE, consult the Xilinx
Command Line Tools User Guide "TRACE" chapter.
Use the "-detail" map option to print out Control Set Information.
The following report is generated from the settings shown (only part of the report is
shown).
Section 7 - RPMs
----------------
xcounter/hset
-------------------------------
If you use the -power high or -power xe option, the report will include three
additional sections:
• Power Opt Slice clock gating summary - Shows the option used.
• Optimization Statistics - Summarizes Slice register gated and clock enable nets
processed.
• Optimization Details - Lists the modified component instance names, their type,
their respective clock enable net names and the optimization objective (power).
=========================================================================
* Physical Synthesis Options Summary *
=========================================================================
---- Options
Global Optimization : ON
Retiming : OFF
Equivalent Register Removal : ON
Logic Optimization : ON
Register Duplication : ON
---- Target Parameters
=========================================================================
* Optimizations *
=========================================================================
---- Statistics
---- Details
Halting MAP
To halt MAP, enter Ctrl-C (on a workstation) or Ctrl-Break (on a PC). On a workstation,
make sure that when you enter Ctrl-C the active window is the window from which you
invoked the mapper. The operation in progress is halted. Some files may be left when
the mapper is halted (for example, a MAP report file or a physical constraints file), but
these files may be discarded since they represent an incomplete operation.
DRC Overview
The physical Design Rule Check, also known as DRC, comprises a series of tests to
discover physical errors and some logic errors in the design. The physical DRC is run
as follows:
• MAP automatically runs physical DRC after it has mapped the design.
• Place and Route (PAR) automatically runs physical DRC on nets when it routes
the design.
• BitGen, which creates a BIT file for programming the device, automatically runs
physical DRC.
• You can run physical DRC from within FPGA Editor. The DRC also runs
automatically after certain FPGA Editor operations (for example, when you edit a
logic cell or when you manually route a net). For a description of how the DRC
works within FPGA Editor, see the online help provided with FPGA Editor.
• You can run physical DRC from the Linux or DOS command line.
Device Support
This program is compatible with the following device families:
• Spartan®-3, Spartan-3A, Spartan-3E, and Spartan-6
• Virtex®-4, Virtex-5, and Virtex-6
DRC Syntax
The following command runs physical DRC:
drc [options ] file_name .ncd
• options can be any number of the DRC options listed in DRC Options. Enter options
in any order, preceded them with a dash (minus sign on the keyboard) and separate
them with spaces.
• file_name is the name of the NCD file on which DRC is to be run.
DRC Options
This section describes the DRC command line options.
• -e (Error Report)
• -o (Output file)
• -s (Summary Report)
• -v (Verbose Report)
• -z (Report Incomplete Programming)
-e (Error Report)
This option produces a report containing details about errors only. No details are given
about warnings.
Syntax
-e
-o (Output file)
This option overrides the default output report file file_name.tdr with outfile_name.tdr.
Syntax
-o outfile_name .tdr
-s (Summary Report)
This option produces a summary report only. The report lists the number of errors and
warnings found but does not supply any details about them.
Syntax
-s
-v (Verbose Report)
This option reports all warnings and errors. This is the default option for DRC.
Syntax
-v
Syntax
-z
DRC Checks
Physical DRC performs the following types of checks:
• Net check
This check examines one or more routed or unrouted signals and reports any
problems with pin counts, 3-state buffer inconsistencies, floating segments,
antennae, and partial routes.
• Block check
This check examines one or more placed or unplaced components and reports any
problems with logic, physical pin connections, or programming.
• Chip check
This check examines a special class of checks for signals, components, or both at the
chip level, such as placement rules with respect to one side of the device.
• All checks
This check performs net, block, and chip checks.
When you run DRC from the command line, it automatically performs net, block, and
chip checks.
In FPGA Editor, you can run the net check on selected objects or on all of the signals
in the design. Similarly, the block check can be performed on selected components or
on all of the design’s components. When you check all components in the design, the
block check performs extra tests on the design as a whole (for example, 3-state buffers
sharing long lines and oscillator circuitry configured correctly) in addition to checking
the individual components. In FPGA Editor, you can run the net check and block check
separately or together.
PAR Overview
After you create a Native Circuit Description (NCD) file with the MAP program, you
can place and route that design file using PAR. PAR accepts a mapped NCD file as
input, places and routes the design, and outputs an NCD file to be used by the bitstream
generator (BitGen). See the BitGen chapter.
The NCD file output by PAR can also be used as a guide file for additional runs of
SmartGuide™ in MAP and PAR that may be done after making minor changes to your
design. See the -smartguide (SmartGuide) section. PAR places and routes a design
based on the following considerations:
• Timing-driven - The Xilinx® timing analysis software enables PAR to place and
route a design based upon timing constraints.
• Non Timing-driven (cost-based) - Placement and routing are performed using
various cost tables that assign weighted values to relevant factors such as constraints,
length of connection, and available routing resources. Non timing-driven placement
and routing is used if no timing constraints are present.
The design flow through PAR is shown in the following figure. This figure shows a PAR
run that produces a single output design file (NCD).
PAR Flow
PAR Process
This section provides information on how placing and routing are performed by PAR, as
well as information on timing-driven PAR and automatic timespecing.
Placing
The PAR placer executes multiple phases of the placer. PAR writes the NCD after all
the placer phases are complete.
During placement, PAR places components into sites based on factors such as constraints
specified in the PCF file, the length of connections, and the available routing resources.
If MAP was run with –timing (Timing Driven Packing and Placement) enabled,
placement has already occurred in MAP and therefore, PAR will only route the design.
Routing
After placing the design, PAR executes multiple phases of the router. The router
performs a converging procedure for a solution that routes the design to completion
and meets timing constraints. Once the design is fully routed, PAR writes an NCD
file, which can be analyzed against timing.
PAR writes a new NCD as the routing improves throughout the router phases.
Note Timing-driven place and timing-driven routing are automatically invoked if PAR
finds timing constraints in the physical constraints file.
To use timing-driven PAR, you can specify timing constraints using any of the following
ways:
• Enter the timing constraints as properties in a schematic capture or HDL design
entry program. In most cases, an NCF will be automatically generated by the
synthesis tool.
• Write your timing constraints into a User Constraints File (UCF). This file is
processed by NGDBuild when the logical design database is generated.
To avoid manually entering timing constraints in a UCF, use the Constraints Editor,
which greatly simplifies creating constraints. For a detailed description of how to use
the Constraints Editor, see the Constraints Editor Help included with the software.
• Enter the timing constraints in the Physical Constraints File (PCF), a file that is
generated by MAP. The PCF file contains any timing constraints specified using the
two previously described methods and any additional constraints you enter in the
file. Modifying the PCF file is not generally recommended.
If no timing constraints are found for the design or the Project Navigator "Ignore User
Timing Constraints" option is checked, timing constraints are automatically generated
for all internal clocks. These constraints will be adjusted to get better performance
as PAR runs. The level of performance achieved is in direct relation to the setting
of the PAR effort level. Effort level STD will have the fastest run time and the lowest
performance, effort level HIGH will have the best performance and the longest run time.
Timing-driven placement and timing-driven routing are automatically invoked if PAR
finds timing constraints in the physical constraints file. The physical constraints file
serves as input to the timing analysis software. For more information on constraints,
see the Constraints Guide.
Note Depending upon the types of timing constraints specified and the values assigned
to the constraints, PAR run time may be increased.
When PAR is complete, you can review the output PAR Report for a timing summary or
verify that the design’s timing characteristics (relative to the physical constraints file)
have been met by running the Timing Reporter And Circuit Evaluator (TRACE) or
Timing Analyzer. TRACE, which is described in detail in the TRACE chapter, issues
a report showing any timing warnings and errors and other information relevant to
the design.
PAR Syntax
The following syntax places and routes your design:
par [options ] infile[.ncd] outfile [pcf_file [.pcf]]
• options can be any number of the PAR options listed in PAR Options. Enter options
in any order, preceded them with a dash (minus sign on the keyboard) and separate
them with spaces.
• infile is the design file you wish to place and route. The file must include a .ncd
extension, but you do not have to specify the .ncd extension on the command line.
• outfile is the target design file that is written after PAR is finished. If the command
options you specify yield a single output design file, outfile has an extension of .ncd.
A .ncd extension generates an output file in NCD format. If the specified command
options yield more than one output design file, outfile must have an extension. The
multiple output files are placed in the directory with the default .ncd extension.
Note If the file or directory you specify already exists, an error messages appears
and the operation is not run. You can override this protection and automatically
overwrite existing files by using the -w option.
pcf_file is a Physical Constraints File (PCF). The file contains the constraints you entered
during design entry, constraints you added using the User Constraints File (UCF) and
constraints you added directly in the PCF file. If you do not enter the name of a PCF
on the command line and the current directory contains an existing PCF with the infile
name and a .pcf extension, PAR uses the existing PCF.
Example 1
par input.ncd output.ncd
This example places and routes the design in the file input.ncd and writes the placed
and routed design to output.ncd.
Note PAR will automatically detect and include a PCF that has the same root name as
the input NCD file.
Example 2
par -k previous.ncd reentrant.ncd pref.pcf
This example skips the placement phase and preserves all routing information without
locking it (re-entrant routing). Then it runs in conformance to timing constraints found
in the pref.pcf file. If the design is fully routed and your timing constraints are not
met, then the router attempts to reroute until timing goals are achieved or until it
determines it is not achievable.
Syntax
-activity_file activity_file .{vhdl|saif}
PAR supports two activity file formats, .saif and .vcd.
This option requires the use of the -power option.
Syntax
-clock_regions generate_clock_region_report
This report contains information on the resource utilization of each clock region and lists
and clock conflicts between global clock buffers in a clock region.
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-filter [filter_file ]
By default, the filter file name is filter.filter.
-k (Re-Entrant Routing)
This option runs re-entrant routing, starting with existing placement and routing. By
default this option is off.
Syntax
-k previous_NCD.ncd reentrant.ncd
Routing begins with the existing placement and routing as a starting point; however,
routing changes may occur and existing routing resources not kept.
Reentrant routing is useful to manually route parts of a design and then continue
automatic routing; for example, to resume a prematurely halted route (Ctrl-C), or to run
additional route passes.
Note For Virtex®-5 devices, only the Route Only and Reentrant Route options are
available. By default, this property is set to Route Only for Virtex-5 devices, and Normal
Place and Route for all other devices.
-mt (Multi-Threading)
This option lets PAR use more than one processor. It provides multi-threading
capabilities to the Placer.
Note This option is available for Spartan®-6, Virtex®-6, and Virtex-5 devices only.
Multithreading is not available when you are using -smartguide, -power on, -x,
partitions, or a project without a PCF file.
Syntax
-mt off|2|3|4
The default is off. When off, the software uses only one processor. When the value is
2, 3, or 4 the software will use up to the number of cores that are specified.
Syntax
-nopad
By default, all three PAD report types are created when PAR is run.
Syntax
-ntd
When the -ntd switch is enabled, all timing constraints are ignored and the
implementation tools do not use any timing information to place and route the design.
Note This option is available for both MAP and PAR, to run the entire flow without
timing constraints set the -ntd switch for both MAP and PAR.
Syntax
-ol std|high
• Use std for low effort level (fastest runtime at expense of QOR)
• Use high for high effort level (best QOR with increased runtime)
The default effort level is high for all architectures.
The -ol option is available when running timing-driven packing and placement with
the -timing option.
Note Xilinx® recommends setting the MAP effort level to equal or higher than the
PAR effort level.
Example
par -ol std design.ncd output.ncd design.pcf
This example sets the overall PAR effort level to std (fastest runtime at expense of QOR).
-p (No Placement)
This option tells PAR to bypass the placer and proceed to the routing phase. A design
must be fully placed when using this option or PAR will issue an error message and exit.
Syntax
-p
When you use this option, existing routes are ripped up before routing begins. To leave
existing routing in place, use the -k (Re-Entrant Routing) option instead of -p.
Note Use this option to maintain a previous NCD placement but rerun the router.
Example
par -p design.ncd output.ncd design.pcf
This example tells PAR to skip placement and proceed directly to routing. If the design
is not fully placed you will get an error message and PAR will do nothing.
Syntax
-pl std|high
• Use std for a fast run time with lowest placing effort. This setting is appropriate
for less complex designs.
• Use high for the best placing results but longer run time. This setting is appropriate
for more complex designs.
The default effort level when you use -pl is std.
Example
par -pl high design.ncd output.ncd design.pcf
This example overrides the overall effort level set for PAR and sets the Placer effort
level to high.
Syntax
-power [on|off]
The default setting for this option is off. When you use -power on, you may also
specify a switching activity file to guide power optimization. See the -activity_file
(Activity File) option.
-r (No Routing)
This option tells PAR to skip routing the design after it has finished placement.
Syntax
-r
Note To skip placement on a design which is already fully placed, use the -p (No
Placement) option.
Example
par -r design.ncd route.ncd design.pcf
This example causes the design to exit before the routing stage.
Syntax
-rl std|high
• Use std for a fast run time with lowest routing effort. This setting is appropriate
for less complex designs.
• Use high for the best routing results but longer run time. This setting is appropriate
for more complex designs.
Example
par -rl high design.ncd output.ncd design.pcf
This example overrides the overall effort level set for PAR and sets the Router effort
level to high.
-smartguide (SmartGuide)
This option instructs the program to use results from a previous implementation to guide
the current implementation, based on a placed and routed NCD file. SmartGuide™
technology automatically enables timing-driven packing and placement in MAP (map
-timing), which improves design performance and timing for highly utilized designs.
You may obtain better results if you use the map -timing option to create a placed and
routed NCD guide file before enabling SmartGuide technology. SmartGuide technology
can be enabled from the command line or from the Hierarchy pane of the Design panel
in Project Navigator.
Syntax
-smartguide design_name .ncd
With SmartGuide technology, all guiding is done in MAP at the BEL level. Guiding
includes packing, placement, and routing. SmartGuide technology optimally changes
the packing and placement of a design and then routes new nets during PAR. The first
goal of SmartGuide technology is to maintain design implementation on the unchanged
part and meet timing requirements on the changed part; the second goal is to reduce
runtime. Notice that the unchanged part of the implementation will not be changed and
therefore will keep the same timing score. Paths that fail timing but do not change
should be 100% guided. Paths that fail timing and are changed will be re-implemented.
The results from the MAP run are stored in the output map report file (.mrp). Guide
statistics, including the number of guided nets and all new, guided, and re-implemented
components are listed in the map report, which is an estimated report. The final statistics
are listed in the PAR report file (.par). A separate guide report file (.grf) is generated
by PAR. If you use -smartguide in the PAR command line, a detailed guide report file
is created. If you do not use -smartguide, a summary guide report file is created. The
guide report file lists components and nets that are re-implemented or new. For more
information and an example, see Guide Report file (GRF) in this chapter.
Syntax
-t [placer_cost_table ]
placer_cost_table is the cost table used by the placer. Valid values are 1–100 and the
default is 1.
To create implementations using several different cost tables, please refer to the
SmartXplorer section in this document.
Note The PAR option, -t is available for Spartan®-3, Spartan-3A, Spartan-3E, and
Virtex®-4 devices only. For other devices, to explore cost tables, use the MAP option
-t (Starting Placer Cost Table) instead.
Example
par -t 10 -pl high -rl std design.ncd output_directory design.pcf
In this example, PAR uses cost table 10. The placer effort is at the highest and the
router effort at std.
Syntax
-ub
By default (without this option), I/O logic that MAP has identified as internal can only
be placed in unbonded I/O sites. If you specify this option, PAR can place this internal
I/O logic into bonded I/O sites in which the I/O pad is not used. If you use this option,
make sure this logic is not placed in bonded sites connected to external signals, power,
or ground. You can prevent this condition by placing PROHIBIT constraints on the
appropriate bonded I/O sites. For more information on constraints, see the Constraints
Guide.
Syntax
-w
By default (without this option), PAR will not overwrite an existing NCD file. If the
specified NCD exists, PAR gives an error and terminates before running place and route.
Syntax
-x
Use this option if there are timing constraints specified in the physical constraints file,
and you want to execute a PAR run with tool-generated timing constraints instead to
evaluating the performance of each clock in the design. This operation is referred to
as Performance Evaluation Mode. This mode is entered into either by using the -x
option or when no timing constraints are used in a design. The tool-generated timing
constraints constrain each internal clock separately and tighten/loosen the constraints
based on feedback during execution. The PAR effort level controls whether the focus is
on fastest run time (STD) or best performance (HIGH).
PAR ignores all timing constraints in the design.pcf, and uses all physical constraints,
such as LOC and AREA_RANGE.
Syntax
-xe n|c
n (normal) tells PAR to use additional runtime intensive methods in an attempt to meet
difficult timing constraints. If PAR determines that the timing constraints cannot be met,
then a message is issued explaining that the timing cannot be met and PAR exits.
c (continue) tells PAR to continue routing even if PAR determines the timing constraints
cannot be met. PAR continues to attempt to route and improve timing until little or no
timing improvement can be made.
Note Use of extra effort c can result in extremely long runtimes.
To use the -xe option, you must also set the -ol (Overall Effort Level) option to high or
the -pl (Placer Effort Level) option and -rl (Router Effort Level) option be set to high.
Example
par -ol high -xe n design.ncd output.ncd design.pcf
This example directs PAR to use extra effort, but to exit if it determines that the timing
constraints cannot be met.
PAR Reports
The output of PAR is a placed and routed NCD file (the output design file). In addition
to the output design file, a PAR run generates a PAR report file with a .par extension. A
Guide Report file (GRF) is created when you specify -smartguide.
The PAR report contains execution information about the place and route run as well
as all constraint messages. For more information on PAR reports, see the ReportGen
Report and Guide Report file (GRF) sections of this chapter.
If the options that you specify when running PAR are options that produce a single
output design file, the output is the output design (NCD) file, a PAR file, and PAD files.
A GRF is output when you specify -smartguide. The PAR, GRF, and PAD files have
the same root name as the output design file.
Note The ReportGen utility can be used to generate pad report files (.pad, pad.txt,
and pad.csv). The pinout .pad file is intended for parsing by user scripts. The
pad.txt file is intended for user viewing in a text editor. The pad.csv file is intended
for directed opening inside of a spreadsheet program. It is not intended for viewing
through a text editor. See the ReportGen section of this chapter for information on
generating and customizing pad reports.
Reports are formatted for viewing in a monospace (non-proportional) font. If the text
editor you use for viewing the reports uses a proportional font, the columns in the
report do not line up correctly. The pad.csv report is formatted for importing into a
spreadsheet program or for parsing via a user script. In general, most reports generated
by PAR in either separate files or within the .par file are also available in an XML data
file called <design name>_par.xrpt.
A LUT Flip Flop pair for this architecture represents one LUT paired with
one Flip Flop within a slice. A control set is a unique combination of
clock, reset, set, and enable signals for a registered element.
The Slice Logic Distribution report is not meaningful if the design is
over-mapped for a non-slice resource or if Placement fails.
OVERMAPPING of BRAM resources should be ignored if the design is
over-mapped for a non-BRAM resource or if placement fails.
IO Utilization:
Number of bonded IOBs: 17 out of 240 7%
IOB Flip Flops: 11
INFO:Timing:3386 - Intersecting Constraints found and resolved. For more information, see the TSI report. Please consult the Xilinx
Command Line Tools User Guide for information on generating a TSI report.
Starting initial Timing Analysis. REAL time: 22 secs
Finished initial Timing Analysis. REAL time: 22 secs
Starting Router
Phase 4 : 1632 unrouted; (Setup:0, Hold:2924, Component Switching Limit:0) REAL time: 32 secs
Phase 5 : 0 unrouted; (Setup:0, Hold:2752, Component Switching Limit:0) REAL time: 34 secs
Phase 6 : 0 unrouted; (Setup:0, Hold:2752, Component Switching Limit:0) REAL time: 34 secs
Phase 7 : 0 unrouted; (Setup:0, Hold:2752, Component Switching Limit:0) REAL time: 34 secs
Phase 8 : 0 unrouted; (Setup:0, Hold:2752, Component Switching Limit:0) REAL time: 34 secs
Phase 9 : 0 unrouted; (Setup:0, Hold:0, Component Switching Limit:0) REAL time: 35 secs
Phase 10 : 0 unrouted; (Setup:0, Hold:0, Component Switching Limit:0) REAL time: 36 secs
-------------------------------
**************************
Generating Clock Report
**************************
+---------------------+--------------+------+------+------------+-------------+
| Clock Net | Resource |Locked|Fanout|Net Skew(ns)|Max Delay(ns)|
+---------------------+--------------+------+------+------------+-------------+
| clk_rx | BUFGCTRL_X0Y1| No | 97 | 0.152 | 1.662 |
+---------------------+--------------+------+------+------------+-------------+
| clk_tx | BUFGCTRL_X0Y2| No | 65 | 1.201 | 1.661 |
+---------------------+--------------+------+------+------------+-------------+
| clk_samp | Local| | 19 | 0.066 | 1.039 |
+---------------------+--------------+------+------+------------+-------------+
|clk_gen_i0/clk_core_ | | | | | |
|i0/mmcm_adv_inst_ML_ | | | | | |
| NEW_I1 | Local| | 3 | 0.000 | 1.184 |
+---------------------+--------------+------+------+------------+-------------+
|clk_gen_i0/clk_core_ | | | | | |
|i0/MMCM_PHASE_CALIBR | | | | | |
|ATION_ML_LUT2_7_ML_N | | | | | |
| EW_CLK | Local| | 3 | 0.260 | 0.624 |
+---------------------+--------------+------+------+------------+-------------+
* Net Skew is the difference between the minimum and maximum routing
only delays for the net. Note this is different from Clock Skew which
is reported in TRCE timing report. Clock Skew is the difference between
the minimum and maximum path delays which includes logic delays.
----------------------------------------------------------------------------------------------------------
Constraint | Check | Worst Case | Best Case | Timing | Timing
| | Slack | Achievable | Errors | Score
----------------------------------------------------------------------------------------------------------
NET "lb_ctl_i0/debouncer_i0/meta_harden_s | MAXDELAY | 1.460ns| 0.540ns| 0| 0
ignal_in_i0/signal_meta" MAXDELAY = 2 | | | | |
ns | | | | |
----------------------------------------------------------------------------------------------------------
NET "samp_gen_i0/meta_harden_samp_gen_go_ | MAXDELAY | 1.590ns| 0.410ns| 0| 0
i0/signal_meta" MAXDELAY = 2 ns | | | | |
----------------------------------------------------------------------------------------------------------
NET "clkx_pre_i0/meta_harden_bus_new_i0/s | MAXDELAY | 1.615ns| 0.385ns| 0| 0
ignal_meta" MAXDELAY = 2 ns | | | | |
----------------------------------------------------------------------------------------------------------
OFFSET = IN 5 ns VALID 8 ns BEFORE COMP " | SETUP | 1.692ns| 3.308ns| 0| 0
clk_pin" "RISING" | HOLD | 3.441ns| | 0| 0
----------------------------------------------------------------------------------------------------------
OFFSET = OUT 8 ns AFTER COMP "clk_pin" | MAXDELAY | 1.778ns| 6.222ns| 0| 0
----------------------------------------------------------------------------------------------------------
NET "clkx_spd_i0/meta_harden_bus_new_i0/s | MAXDELAY | 1.810ns| 0.190ns| 0| 0
ignal_meta" MAXDELAY = 2 ns | | | | |
----------------------------------------------------------------------------------------------------------
NET "clkx_nsamp_i0/meta_harden_bus_new_i0 | MAXDELAY | 1.810ns| 0.190ns| 0| 0
/signal_meta" MAXDELAY = 2 ns | | | | |
----------------------------------------------------------------------------------------------------------
NET "uart_rx_i0/meta_harden_rxd_i0/signal | MAXDELAY | 1.810ns| 0.190ns| 0| 0
_meta" MAXDELAY = 2 ns | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_tx_to_clk_rx = MAXDELAY FROM TIMEG | SETUP | 3.509ns| 1.491ns| 0| 0
RP "TNM_clk_tx" TO TIMEGRP "TNM_c | HOLD | 0.115ns| | 0| 0
lk_rx" 5 ns DATAPATHONLY | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_rx_to_clk_tx = MAXDELAY FROM TIMEG | SETUP | 3.533ns| 1.467ns| 0| 0
RP "TNM_clk_rx" TO TIMEGRP "TNM_c | HOLD | 0.127ns| | 0| 0
lk_tx" 5 ns DATAPATHONLY | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_gen_i0_clk_core_i0_clkout1 = PERIO | SETUP | 3.574ns| 5.746ns| 0| 0
D TIMEGRP "clk_gen_i0_clk_core_i0 | HOLD | 0.014ns| | 0| 0
_clkout1" TS_clk_pin / 0.909090909 HIGH 5 | | | | |
0% | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_gen_i0_clk_core_i0_clkout0 = PERIO | SETUP | 3.811ns| 6.189ns| 0| 0
D TIMEGRP "clk_gen_i0_clk_core_i0 | HOLD | 0.030ns| | 0| 0
_clkout0" TS_clk_pin HIGH 50% | | | | |
----------------------------------------------------------------------------------------------------------
COMP "spi_clk_pin" OFFSET = OUT 8 ns AFTE | MAXDELAY | 4.402ns| 3.598ns| 0| 0
R COMP "clk_pin" "RISING" | | | | |
----------------------------------------------------------------------------------------------------------
COMP "spi_clk_pin" OFFSET = OUT 8 ns AFTE | MAXDELAY | 4.402ns| 3.598ns| 0| 0
R COMP "clk_pin" "FALLING" | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_pin = PERIOD TIMEGRP "clk_pin" 10 | MINLOWPULSE | 5.840ns| 4.160ns| 0| 0
ns HIGH 50% | | | | |
----------------------------------------------------------------------------------------------------------
TS_to_bcd = MAXDELAY FROM TIMEGRP "TNM_se | SETUP | 7.736ns| 12.264ns| 0| 0
nd_resp_data" TO TIMEGRP "TNM_to_ | HOLD | 0.415ns| | 0| 0
bcd_flops" TS_clk_gen_i0_clk_core_i0_clko | | | | |
ut0 * 2 | | | | |
----------------------------------------------------------------------------------------------------------
TS_clk_samp = MAXDELAY FROM TIMEGRP "TNM_ | SETUP | 347.413ns| 4.587ns| 0| 0
clk_samp" TO TIMEGRP "TNM_clk_samp" | HOLD | 0.108ns| | 0| 0
TS_clk_gen_i0_clk_core_i0_clkout1 * 32 | | | | |
----------------------------------------------------------------------------------------------------------
TS_uart_rx_ctl = MAXDELAY FROM TIMEGRP "T | SETUP | 537.423ns| 2.577ns| 0| 0
NM_uart_rx_ctl" TO TIMEGRP "TNM_u | HOLD | 0.091ns| | 0| 0
art_rx_ctl" TS_clk_gen_i0_clk_core_i0_clk | | | | |
out0 * 54 | | | | |
----------------------------------------------------------------------------------------------------------
TS_uart_tx_ctl = MAXDELAY FROM TIMEGRP "T | SETUP | 590.988ns| 3.012ns| 0| 0
NM_uart_tx_ctl" TO TIMEGRP "TNM_u | HOLD | 0.091ns| | 0| 0
art_tx_ctl" TS_clk_gen_i0_clk_core_i0_clk | | | | |
out1 * 54 | | | | |
----------------------------------------------------------------------------------------------------------
PAR done!
The SmartGuide Results section is a summary of the guide results after the router
is invoked, and lists the differences between the input design and the guide design
by summarizing the following:
• Number of Guided Components—A guided component has the same name in both
the input design and the guide design, and is in the same site in both designs. It may
have different LUT equations, pins, etc.
• Number of Re-implemented Components—A re-implemented component’s name
is the same in both the input design and the guide design. Either the component
was not placed in the guide file or the component has been moved in order to meet
the overall timing of the design.
• Number of New/Changed Components—A new/changed component is one whose
name could not be found in the guide design, but exists in the input design. The
design source may have changed or synthesis may have changed the name.
• Number of Guided Nets—A guided net is one whose source pin is the same in both
the input design and guide design, load pin(s) are the same in both design files, and
it has the exact same routing physically on the device.
• Number of partially guided Nets—A partially guided net is one that is in both the
input design and the guide design but some of the route segments are different.
• Number of Re-routed Nets—A re-routed net is one that is in both the input design
and the guide design but all of the route segments are different. It has been re-routed
in order to meet the overall timing of the design.
Note SmartGuide does not use net names for guiding, so a change in the net name
will not change the guiding. SmartGuide looks at the source and load pins of a net
to determine if it can be guided.
• Number of New/Changed Nets—A new/changed net is one that is only found in the
input design. The design source may have changed or synthesis may have changed
the connections of the net.
In addition to the SmartGuide Results, the GRF gives a detailed list of the following:
• Components that were re-implemented
• Components that are new/changed
• Networks that were re-implemented
• Networks that are new/changed
SmartGuide Results
------------------
This section describes the guide results after invoking the Router.
This report accurately reflects the differences between the input design and the guide design.
ReportGen
This utility generates reports that are specified on the command line using one or more
of the ReportGen options. ReportGen takes a Native Circuit Description (NCD) file as
input and outputs various pad reports and a log file that contains standard copyright
and usage information on any reports being generated.
Note Some reports require placed and routed NCD files as input.
ReportGen Syntax
The following syntax runs the ReportGen utility:
reportgen [options ] infile[.ncd]
• options can be any number of the ReportGen options listed in the ReportGen Options
section of this chapter. Enter options in any order, preceded them with a dash
(minus sign on the keyboard) and separate them with spaces.
• infile is the design file you wish to place and route. The file must include a .ncd
extension, but you do not need to specify the extension.
ReportGen Options
You can customize ReportGen output by specifying options when you run ReportGen
from the command line. You must specify the reports you wish to generate.
The PAD report columns show the type of DCI termination being used such as SPLIT
and NONE.
The following table lists available ReportGen options and includes a functional
description and a usage example for each option:
Option Function Usage
-clock_regions Generates a clock region report. reportgen -clock_regions
-delay Generates a delay report. reportgen -delay
-f Reads ReportGen command line reportgen -f cmdfile .cmd
arguments and switches specified in
a command file.
-h Displays ReportGen usage reportgen -h
information and help contents.
-intstyle Reduces screen output to error and reportgen -intstyle
warning messages based on the {ise|xflow|silent}
integration style you are running.
-o Specifies the report output directory reportgen -o
and filename.
-pad Generates a pad report file. You reportgen design.ncd -pad
can modify this command by using
-padfmt and/or -padsortcol.
-padfmt Specifies the format in which to reportgen design.ncd -pad
all|csv|pad|text generate a pad report. You must -padfmt all|csv|pad|text
also specify -pad when using this
option.
-padsortcol Specifies the columns to display in reportgen design.ncd -pad
a pad report, and the sorting order. -padfmt csv -padsortcol 1,
You must also specify -pad when 3:5, 8
using this option.
Use commas to separate values and
ranges. For example, specifying 1,
3:5, 8 generates a pad report sorted
Halting PAR
You cannot halt PAR with Ctrl-C if you do not have Ctrl-C set as the interrupt
character. You need to set the interrupt character by entering stty intr ^C in the
.login file or .cshrc file.
To halt a PAR operation, enter Ctrl-C. In a few seconds, the following message appears:
Ctrl-C interrupt detected.
STATUS:
+------------------------------------+-------------------------------+
| Most recent SmartPreview on disk: | xxx.ncd |
| Fully placed: | YES |
| Fully routed: | YES |
| SmartPreview status: | ready for bitgen |
| Timing score: | 988 |
| Timing errors: | 25 |
| Number of failing constraints: | 1 |
+------------------------------------+-------------------------------+
Option 3 in the menu below will save the SmartPreview design file and a timing summary in ./SmartPreview.
Note If you started the PAR operation as a background process on a workstation, you
must bring the process to the foreground using the -fg command before you can halt
the PAR operation.
After you run PAR, you can use FPGA Editor on the NCD file to examine and edit the
results. You can also perform a static timing analysis using TRACE or Timing Analyzer.
When the design is routed to your satisfaction, you can use the resulting file as input to
BitGen, which creates the files used for downloading the design configuration to the
target FPGA. For details on BitGen, see BitGen in this document.
SmartXplorer
This chapter contains the following sections:
• What’s New in 12.1
• SmartXplorer Overview
• Using SmartXplorer
• Selecting the Best Strategy
• Running Multiple Strategies in Parallel
• Custom Strategies
• SmartXplorer Command Line Syntax
• SmartXplorer Reports
• Setting Up SmartXplorer to Run on SSH
SmartXplorer Overview
Timing closure is one of the most challenging aspects in modern FPGA design. Xilinx®
invests a lot of time and effort helping designers overcome such timing challenges by
• Improving synthesis and implementation algorithms
• Providing graphical analysis tools such as PlanAhead™ and FPGA Editor
Although FPGA tools have become easier to use while offering more and more advanced
features it is difficult to anticipate all design situations. Some of them may stay hidden
until the very last stages of a design cycle, appearing just before delivering the product.
Delivering Timing Closure in the shortest amount of time is the ultimate SmartXplorer goal.
Key Benefits
SmartXplorer has two key features:
• It automatically performs design exploration by using a set of built-in or custom
implementation strategies to try to meet timing.
Note A design strategy is a set of tool options and their corresponding values that
are intended to achieve a particular design goal such as area, speed or power.
• It lets you run these strategies in parallel on multiple machines, completing the job
much faster.
Design Strategies
SmartXplorer is delivered with a set of predefined strategies. These strategies are tuned
and selected separately for each FPGA family. This selection is revised for each major
release to ensure that we have the best possible correlation with the current software
version.
You may wish to create your own design strategies or scripts based on your own
experience. SmartXplorer lets you integrate these custom strategies into the system and
use them exclusively or combine them with predefined strategies.
SmartXplorer can be very useful in solving end-of-project emergencies. However,
running it regularly to help keep timing results within acceptable range throughout the
project cycle will minimize the likelihood of surprises at the end.
Parallelism
Running several design strategies (jobs) in parallel will let you complete your project
faster. This feature depends on the operating system in use.
On Linux networks - SmartXplorer can run multiple jobs in parallel on different
machines across the network. This can be done in 2 ways:
• If you have a regular Linux network, SmartXplorer manages the job distribution
across the network. For these networks you must provide a list of machines which
can be used.
• If you have LSF (Load Sharing Facility) or SGE (Sun Grid Engine) compute farms,
LSF or SGE manages jobs distribution. For these compute farms, you must specify
the number of machines which can be simultaneously allocated to SmartXplorer.
On a single Linux machine - SmartXplorer lets you run several strategies in parallel on
a single machine if it has a multi-core processor or several processors.
On Microsoft Windows - SmartXplorer lets you run several strategies in parallel on a
single machine if it has a multi-core processor or several processors.
Number of Jobs = P * C
P is the number of processors
C is the number of cores per processor
For instance, if you have 4 dual-core processors, then you can run 8 jobs in parallel.
However, depending on the available memory, its speed, the speed of your hard drive,
etc. your computer may not be able to run the maximum number of jobs calculated
using the above formula. In this case you may want to reduce the number of jobs you
execute simultaneously.
Tips Depending on your calculations here are some tips you may use.
• Due to your design size, your machine can run a single strategy one at a time only.
In this case you are obliged to run all strategies sequentially. This can be easily
done overnight.
• Trying to solve timing problems, you may work on smaller blocks separately from
the rest of the design. It may happen that your machine is able deal with multiple
strategies in parallel for these blocks. If this is the case, then enable parallel jobs
to save time.
Using SmartXplorer
SmartXplorer helps you reach timing closure more quickly by running multiple
strategies and by letting you run them in parallel. This section tells you how to set up
multiple strategies. See Running Multiple Strategies in Parallel for how to run strategies
in parallel.
Starting with the 12.1 release, SmartXplorer supports Xilinx Synthesis Technology (XST)
and Synplify synthesis tools. Before running multiple implementation strategies you can
now execute several synthesis strategies in order to select the best synthesized netlist for
implementation runs. It is not mandatory to use synthesis with SmartXplorer – you may
continue to use SmartXplorer for implementation only.
Note Synthesis in SmartXplorer is supported in command line mode only. It is not
supported from the ISE environment.
When you use synthesis with SmartXplorer, the execution becomes a two phase process
that includes synthesis and implementation.
• Phase 1 (Synthesis) - During this phase, SmartXplorer runs a set of synthesis
strategies in order to identify the best synthesized netlist from performance point
of view. Please note that in the current release, the synthesis tools do not generate
a timing score allowing to select the best results. Each synthesized netlist is run
through a single MAP and PAR (further referred as Quick Implementation) using a
strategy optimized for runtime in order to obtain a timing score for each netlist.
• Phase 2 (Implementation) - During this phase SmartXplorer selects the best
synthesized netlist and runs a set of implementation strategies to meet timing
requirements.
Note If a timing score of 0 is achieved during either the synthesis or implementation
phase, SmartXplorer stops execution. You can use the –ra option in the smartxplorer
command to run all strategies regardless of the achieved timing score.
To run the synthesis and implementation phases in SmartXplorer, specify one of the
following input files:
• XST script file (design.xst) for synthesis using XST. For instance:
smartxplorer -p xc6slx16-2-csg324 -uc stopwatch.ucf -sd ".;ipcore_dir" stopwatch.xst
• Synplify project file (design.prj) for synthesis using Synplify. For instance:
smartxplorer -p xc6slx16-2-csg324 -uc stopwatch.ucf -sd ".;ipcore_dir" stopwatch.prj
Please refer to the XST and Synplify subsections for more information before launching
SmartXplorer with synthesis.
Example
For Spartan-6, SmartXplorer provides 7 XST and 7 implementation strategies. Since one
of the predefined implementation strategies will be used as the Quick Implementation
strategy for synthesis runs, SmartXplorer will run 13 strategies in default mode to obtain
the best timing score. To run predefined strategies you can use the following command:
smartxplorer -p xc6slx16-2-csg324 -uc stopwatch.ucf -wd res_dir
-sd ".;ipcore_dir" stopwatch.xst
Once running, SmartXplorer creates a status table to display progress and the final
results summary. Each row in this table represents one of the predefined SmartXplorer
strategies. This can be seen:
• In the Terminal Window.
• In the smartxplorer.html file, located in the directory where SmartXplorer was
launched (unless the –wd option is used). You should use a Web browser to open
this file. See the SmartXplorer Reports section for more information on reports.
These tables are progressively updated during the SmartXplorer run. Following is an
example of an intermediate state (smartxplorer.html):
During the synthesis phase SmartXplorer will show all synthesis strategies with the
Quick Implementation strategy which is used to obtain the timing score.
Note The strategy in the left column represents the combination of synthesis and
Quick Implementation strategy separated by an underscore (“_”). For example
XSTOptReshRedcon_MapRunTime means that the name of the synthesis strategy
is XSTOptReshRedcon and the name of the Quick Implementation strategy is
MapRunTime.
As soon as all synthesis strategies are completed, SmartXplorer selects the best netlist
based on timing score and runs it using different implementation strategies updating
the HTML report:
Note For more information on the best strategy selection algorithms in SmartXplorer,
see Selecting the Best Strategy.
The Run Summary table contains several links:
• The link in the Timing Score column provides you with the timing report summary
for the corresponding strategy.
• The link in the Output column opens a combined log file (synthesis, MAP, PAR, etc.)
for the corresponding strategy: stopwatch_sx.log.
Example
smartxplorer -p xc6slx16-2-csg324 -uc stopwatch.ucf -wd res_dir
-sd ".;ipcore_dir" stopwatch.xst
This command runs all predefined synthesis and implementation strategies and uses
XST for synthesis.
Example
Smartxplorer -p xc6slx16-2-csg324 -uc stopwatch.ucf -wd res_dir
-sd ".;ipcore_dir" stopwatch.prj
This command runs all built-in synthesis and implementation strategies and uses
Synplify for synthesis.
Starting with 12.1 software, you can use the –pwo option to run XPower Analyzer and
calculate the total power dissipated by the design. If you enable power analysis, power
data will be taken into account for selecting the best strategy. The following diagram
illustrates the best strategy selection algorithm:
Another important criterion for best strategy selection is the area occupied by the
implemented design. Currently SmartXplorer does not take into account area
information in the best strategy identification. However, it helps you to make this choice
by displaying area information in the Run Summary table:
For more information about area reporting, see -area_report (Area Report Control).
Results Storage
Results for each SmartXplorer strategy is stored in a separate directory: run1, run2,
run3, … All these directories are placed in the same disk area and located in the
directory where SmartXplorer is launched (unless the result directory is redefined via
–wd option). Therefore, all machines must have access to this disk area and read and
write permissions.
The example above uses three machines: host_1, host_2, host_3. Since host_3 is specified
twice, SmartXplorer will run two different strategies on this host.
During a SmartXplorer run, the Run Summary from smartxplorer.html shows the host
name where each strategy was executed:
queue_name defines the queue name. You must replace MYQUEUE with an LSF or
SGE queue name.
max_concurrent_runs defines the maximum number of jobs which can be run in
parallel. You must replace N with a positive integer value.
bsub_options lets you define additional LSF options and additional_options must be
replaced by the LSF options. If no options are used, then replace additional_options with
an empty string: "" (two double quotes)
qsub_options lets you define additional SGE options and additional_options must be
replaced by the SGE options. If no options are used, then replace additional_options with
an empty string : "" (two double quotes).
Example
If the queue name is lin64_q, the maximum number of parallel jobs is six and there are no
specific LSF and SGE options; the host list files should contain the following information:
LSF :LSF {"queue_name":"lin64_q", "max_concurrent_runs":6,
"bsub_options": ""}
SGE :SGE {"queue_name":"lin64_q", "max_concurrent_runs":6,
"qsub_options": ""}
Microsoft Windows
On Microsoft Windows, SmartXplorer lets you run several strategies in parallel on a
single machine if it has a multi-core processor or several processors. To run several
strategies on the same machine the name of the machine must be listed several times
in the host list file:
host_1
host_1
host_1
In the above example SmartXplorer will run three strategies simultaneously on the
host_1.
Custom Strategies
SmartXplorer allows you to create a custom strategy file and enter as many strategies as
needed with any combination of options for synthesis, map, and par. You can specify a
strategy file through the -sf command line argument.
Note The format of the custom strategy file was changed with the introduction of
synthesis support. The old strategy format is still supported and can be used if you run
SmartXplorer with the implementation flow only. However, you should move to the
new strategy file format as soon as possible. In this section we will present both format.
Example (XST)
The following example shows a custom strategy file for use with XST:
# This is a custom Strategy file for XST
{
"spartan6":
{
"XST options":
(
{"name": "my_xst1",
"xst": "-opt_level 1 –fsm_extract yes"},
{"name": "my_xst2",
"xst": "-opt_level 2 –fsm_extract no"},
),
"Map-Par options":
(
{"name": "my_impl1",
"map": " -timing -ol high -xe n -global_opt on -retiming on ",
"par": " -ol high"},
{"name": "my_impl2",
"map": " -timing -ol high -xe n ",
"par": " -ol high"},
),
},
}
The example above is a strategy file with two synthesis (my_xst1 and my_xst2) and two
implementation (my_impl1 and my_impl2) strategies. Both strategies will only be run
for a design targeted to a device of the Spartan®-6 family. The example above can be
used as a template for a user defined strategy file.
Example (Synplify)
The following example shows a custom strategy file for use with Synplify:
# This is a custom Strategy file for Synplify
{
"spartan6":
{
" Synplify options":
(
{"name": "my_smpl1",
" synplify": " set_option -symbolic_fsm_compiler true set_option -de
{"name": "my_smpl2",
" synplify": " set_option -symbolic_fsm_compiler false "},
),
"Map-Par options":
(
{"name": "my_impl1",
"map": " -timing -ol high -xe n -global_opt on -retiming on ",
"par": " -ol high"},
{"name": "my_impl2",
"map": " -timing -ol high -xe n ",
"par": " -ol high"},
),
},
}
The example above is a strategy file with two synthesis (my_smpl1 and my_smpl2) and
two implementation (my_impl1 and my_impl2) strategies. Both strategies will only be
run for a design targeted to a device of the Spartan-6 family. The example above can be
used as a template for a user defined strategy file.
The example above is a strategy file with two strategies named strategy1 (line 4) and
strategy 2. (line 7). Both of these strategies will only be run for a design targeted to a
device of the Virtex®-4 family (line 2). The example above can be used as a template
for a user defined strategy file.
SmartXplorer Options
The following command line options available for SmartXplorer.
• -area_report (Area Report Control)
• -b (Batch Mode)
• -cr (Congestion Reduction)
• -l (Host List File)
• -la (List All Strategies)
• -m (Max Runs)
• -mo (MAP Options)
• -n (Notify)
• -p (Part Number)
• -po (PAR Options)
• -pwo (Power Options)
• -ra (Run All Strategies)
• -rcmd (Remote Command)
• -sd (Source Directory)
• -sf (Strategy File)
• -to (TRCE Options)
• -uc (UCF File)
• -vp (Variability Passes)
• -wd (Write Directory)
By default SmartXplorer reports show the number of LUTs and Slice Registers.
Syntax
-area_report [on|off|column_spec ]
On (the default) turns the Area Report on and displays the number of LUTs and Slice
Registers.
Off turns the Area Report off.
column_spec lets you modify the columns that are shown in the table. You can specify
multiple values simultaneously by putting the values between double quotes and
separating the values with “;” (semicolons). The order of values represents the order of
corresponding columns in the generated table.
Option Column Name
lut LUTs
slice_reg Slice Registers
slice Slices
bram BRAMs
dsp48 DSP48s
mult18x18 MULT18x18s
Note In the case of BRAMs only the absolute number of BRAMs used is provided.
Example
-area_report “slice;lut;dsp48”
-b (Batch Mode)
This option runs SmartXplorer in batch mode.
This option runs SmartXplorer in batch mode.
By default SmartXplorer updates standard output in real time. As a result, the output
cannot be redirected to a file and SmartXplorer cannot be run as a background process.
Use -batch_mode to redirect screen output to a file or to run SmartXplorer in the
background.
Syntax
-b
-batch_mode
Syntax
-cr
-congestion_reduction
Note To list the congestion reduction strategies use –cr and -la together.
Syntax
-l host_list_file
-host_list host_list_file
By default, SmartXplorer will look for a file named smartxplorer.hostlist in
launch directory. If you use this file, you do not need to use the -l option. For more
information on host lists, see Host List File.
Syntax
-la
-list_all_strategies
Note This option must be used with the -part option to get a listing of all the strategies.
Strategy MapRunTime:
--------------------
map options: -ol high –w
par options: -ol high
Strategy MapGlobOptIOReg:
-------------------------
map options: -ol high -global_opt speed -pr b –w
par options: -ol high -xe n
-m (Max Runs)
This option specifies the number of strategies to be run by SmartXplorer. Please see
Using the Built-In Strategies for more information.
Syntax
-m number_of_runs
-max_runs number_of_runs
If you do not specify –m, SmartXplorer runs all built-in or custom strategies (please note
that if the timing score of 0 is achieved, SmartXplorer stops execution).
Note –vp and –m cannot be used together.
Syntax
-mo options
-map_options options
options are any of the MAP options listed in the MAP chapter. You must enclose these
options in double quotes.
When you use –mo, the specified options will be applied to every strategy, overriding
MAP options specified in built-in or custom strategies.
The names of the overridden strategies will be marked with a “*” character in the
report, showing that the strategy options were overridden with the options specified in
the SmartXplorer command line:
Note If you use both -mo and -po, all strategy files will be ignored, and only the one
specified through -mo and -po will be run.
Example
-mo "-ol high –w"
This example overrides all MAP options during the SmartXplorer run and replaces them
with the options enclosed in double quotes.
-n (Notify)
This option tells SmartXplorer to send an email or a cell phone text message after all jobs
are completed. This message contains:
• The best timing score achieved.
• The smartxplorer.txt report file (for more information, please see SmartXplorer
Reports).
Note Cell phone text messaging is only supported if the cell phone subscriber has a text
messaging capabilities and subscription, and is only supported in North America.
Syntax
-n "useraddr [;useraddr [;...]]"
-notify "useraddr [;useraddr [;...]]"
The notify list is specified in quotes with a ";" (semicolon) separating each email address
or cell phone number. Any email addresses or cell phone numbers provided are notified
when the SmartXplorer run has completed.
Example
-notify=’user1@myCompany.com,user2@myCompany.com,8005551234’
Note SmartXplorer will not read the smartxplorer.config file unless you set the
XIL_SX_USE_CONFIG_FILE environment variable to a value of 1.
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part number
part_number must be a complete Xilinx® part name including device, package and speed
information (example: xc4vlx60-10- ff256).
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
Syntax
-po options
-par_options options
options are any of the PAR options listed in the PAR chapter. You must enclose these
options in double quotes.
When you use –po, the specified options will be applied to every strategy, overriding
PAR options specified in built-in or custom strategies.
The names of the overridden strategies will be marked with a “*” character in the
report, showing that the strategy options were overridden with the options specified in
the SmartXplorer command line:
Note If you use both -mo and -po, all strategy files will be ignored, and only the one
specified through -mo and -po will be run.
Example
-po "-ol high -xe n"
This example overrides all PAR options during the SmartXplorer run and replaces them
with the options enclosed in double quotes.
When you specify -pwo, the power information is placed in the Power (mW) column as
shown below:
Syntax
-pwo [off|on|options ]
-power_options [off|on|options ]
off (the default)
on runs XPower Analyzer with its default options.
options runs XPower Analyzer with the specified options. Options can be any of the
XPWR options specified in the XPower chapter, and they must be enclosed in double
quotes.
Example
-pwo “-v”
This example runs XPower Analyzer with the -v option on the placed and routed
design, and reports the total power consumption for the design.
Syntax
-ra
-run_all_strategies
Syntax
-rcmd [rsh|ssh]
-remote_command [rsh|ssh]
Allowed values are rsh or ssh. The default is rsh.
Syntax
-sd "source_dir_path ;[source_dir_path ];..."
-source_dir "source_dir_path ;[source_dir_path ];..."
Specify the path list in double quotes with the directories in the path list separated by ";"
(semicolon). The default value is the directory where SmartXplorer is invoked.
Example
-source_dir
"path_to_directory1;path_to_directory2;path_to_directory3"
This example tells SmartXplorer to search in path_to_directory1, path_to_directory2,
and path_to_directory3 before searching in the design directory.
Syntax
-sf strategy_file
-strategy_file strategy_file
Syntax
-to options
options are any of the TRCE options listed in the TRCE chapter, and must be specified
in double quotes.
Example
-to “-v 10”
This example runs TRCE with the -v option set to 10.
Syntax
-uc ucf_file
-ucf ucf_file
If you do not use —uc, SmartXplorer looks for design_name .ucf. If the specified UCF
is not found, SmartXplorer looks in the directory specified using the -sd option. If
multiple files with the same name are encountered, SmartXplorer uses the first UCF it
encounters with the name.
Note If an NGD file is specified as an input design file, then a UCF is not necessary
since all timing, placement, and other attributes are incorporated in the NGD file.
SmartXplorer supports multiple UCF constraint files. To specify multiple files, specify
the file list in double quotes with the files separated by “;”.
Example
-uc “file1.ucf;file2.ucf”
In this example, SmartXplorer will look for file1.ucf and file2.ucf in the directory
specified using —sd.
Syntax
-vp number_of_cost_tables
-variability_passes number_of_cost_tables
Note –vp and –m cannot be used together.
Syntax
-wd write_dir_path
-write_dir write_dir_path
SmartXplorer Reports
There are three reports generated by SmartXplorer.
• smartxplorer.html (HTML)
• smartxplorer.txt (text)
• DesignName _sx.log (text)
smartxplorer.html
This file is a SmartXplorer report in HTML format. It is located:
• In the Directory where SmartXplorer is launched, if the –wd option is not specified or
• In the Directory specified in the –wd option
This report consists of several parts, and it is dynamically updated while SmartXplorer
is running.
At the start of the report, just below the copyright, is the command used to invoke this
SmartXplorer run.
This table contains work progress and the final results summary, and is progressively
updated during the run. Each row in this table represents one of the strategies for this
run, and by default contains the following information:
• Strategy - is the strategy name. Placing your cursor over a strategy name brings a
tool tip that displays the synthesis, map and par options used.
• Host - indicates the host machine where the strategy was executed. Placing your
cursor over the host brings up a tool tip with the type of operating system, how
many processors it has, and memory size.
• Output - is a link to the log file (DesignFile_sx.log). The log files contain the standard
output from different steps of the flow (synthesis, map, par) for this strategy when it
runs.
• Status - reflects the current flow step as synthesis, map, etc.
• Timing Score - is the timing score for the strategy. Please note that if the timing
score is equal to 0, then all timing constraints were met using this strategy. The
underscore under the timing score number indicates a link to the timing report
file (DesignFile.twx.html).
• Luts, Slice Registers - is the area information obtained for the current strategy. It
contains two figures. The first one is the absolute number of corresponding resource
(for example: number of LUTs). The second one is the utilization percentage in
the target FPGA.
Note Area information is extracted from the MAP report. You may add additional
area information to the table using the –area_report option.
• Power (mW) - is the total power for the design. Please note that it is not visible by
default. You must specify –pwo command line option to run Power Analyzer and
display power information in the report table.
• Total Run Time - is the total runtime accumulated across the entire flow.
In this example, the first strategy (MapRunTime) has been completed. The process took
1 minute and 29 seconds and the final timing score is 800 (timing constrains were not
met). This row has a green background, meaning that this strategy provides the best
timing results so far in the current SmartXplorer run. The MapGlobOptLogOptRegDup
strategy is still running and it is going through the Routing step. All other strategies
have the None status, meaning that they have not been launched yet.
Below the Run Summary table is the Best Strategy table, which contains the commands
(synthesis, map, etc.) for the best strategy.
Below the Best Strategy table is the Environment Variables table, which shows platform
specific environment variables and Xilinx® specific environment variables.
smartxplorer.txt
This file is a SmartXplorer report in text format. It is located:
• In the Directory where SmartXplorer is launched, if the –wd option is not specified or
• In the Directory specified in the –wd option
The smartxplorer.txt file reports details about all the strategies run. It also reports best
strategy at the end of the report. Following is a sample of a typical smartxplorer.rpt file
(some lines have been removed to save space):
----------------------------------------------------------------------
Strategy : MapRunTime
----------------------------------------------------------------------
Run index : run1
Map options : -ol high -w
Par options : -ol high
Number of Luts : 51 (1%)
Number of Slice Registers : 18 (1%)
Status : Done
Achieved Timing Score : 900
Current Best (Lowest) Timing Score : 900
Current Best Strategy : MapGlobOptLogOptRegDup
---------------------------------------------------------------------
######################################################################
BestStrategy : MapLogOptRegDup
######################################################################
Run index : run6
Map options : -ol high -xe n -logic_opt on -t 2 -w
Par options : -ol high -xe n
Number of Luts : 51 (1%)
Number of Slice Registers : 18 (1%)
Achieved Timing Score : 800
######################################################################
Total Real Time:482.5(secs)
SmartXplorer Done
DesignFile_sx.log
This is a log file (text) containing the standard output from different steps of the flow
(synthesis, map, par, etc.). This file is created for each run strategy and located in the
run[i] directory.
XPower (XPWR)
This chapter is about the XPWR (XPower) command line tool, and contains the following
sections:
• XPower Overview
• XPower Syntax
• XPower Options
• XPower Command Line Examples
• Using XPower
• Power Reports
XPower Overview
XPower provides power and thermal estimates after PAR, for FPGA designs, and after
CPLDFit, for CPLD designs. XPower does the following:
• Estimates how much power the design will use
• Identifies how much power each net or logic element in the design is using
• Verifies that junction temperature limits are not exceeded
XPower Syntax
Use the following syntax to run XPower from the command line for FPGA devices:
xpwr infile[.ncd] [constraints_file [.pcf]] [options] -o
design_name .pwr
Use the following syntax to run XPower from the command line for CPLD devices:
xpwr infile[.cxt] [options] -o design_name .pwr
infile is the name of the input physical design file. If you enter a filename with no
extension, XPower looks for an NCD file with the specified name. If no NCD file is
found, XPower looks for a CXT file.
constraints_file is the name of the Physical Constraints File (PCF). This optional file is
used to define timing constraints for the design. If you do not specify a PCF, XPower
looks for one with the same root name as the input NCD file. If a CXT file is found,
XPower does not look for a PCF file.
options is one or more of the XPower options listed in XPower Command Line Options.
Enter options in any order, preceded them with a dash (minus sign on the keyboard)
and separate them with spaces.
design_name is the name of the output power report file with a .pwr extension. If a file
name is not specified with the -o option, by default XPower generates a .pwr file with
the same root name as the infile.
-l (Limit)
This option imposes a line limit on the verbose report.
Syntax
-l limit
limit is the maximum number of lines to print in a verbose report.
Syntax
-ls [architecture ]
architecture is the architecture for which you want a device list. For example, virtex5
Syntax
-o reportname .pwr
reportname.pwr is the name of the power report.
If this option is not used, the output power report is the input design filename with
a .pwr extension.
Syntax
-s [simdata .[saif|vcd]]
simdata is the name of the SAIF or VCD file to use.
If no file is specified, the software searches for an input design file with a .vcd extension.
Syntax
-tcl tcl_script
tcl_script is the Tcl script to be used to apply settings.
-v (Verbose Report)
This option specifies a verbose (detailed) power report.
Syntax
-v
See Power Reports for more information.
Syntax
-wx [userdata .xpa]
userdata.xpa is the XML file in which to store settings information.
If no filename is specified, the output filename is the input design filename with a .xpa
extension.
Syntax
-x [userdata .xpa]
userdata.xpa is the XML file from which to get settings information.
If no filename is specified, XPower searches for a file with the input design filename and
a .xpa extension.
The following command does all of the above and generates a settings file called
mysettings.xpa. The settings file contains all of the information from the SAIF file.
xpwr mydesign.ncd mydesign.pcf -s timesim.saif -wx mysettings.xpa
The following command does all of the above and generates a detailed (verbose) report
instead of a standard report. The verbose report is limited to 100 lines.
xpwr mydesign.ncd mydesign.pcf -v -l 100 -s timesim.vcd -wx mysettings.xpa
Using XPower
This section describes the settings necessary to obtain accurate power and
thermal estimates, and the methods that XPower allows. This section refers
specifically to FPGA designs. For CPLD designs, see Application Note XAPP360 at
http://www.xilinx.com/support.
When using other methods of design entry, you must set the following:
• Voltage (if different from the recommended databook values)
• Ambient temperature (default is 25 degrees C)
• Output loading (capacitance and current due to resistive elements)
• Frequency of all input signals
• Activity rates for all synchronous signals
If you do not set activity rates, XPower assumes 0% for all synchronous nets. The
frequency of input signals is assumed to be 0MHz. The default ambient temperature is
25 degrees C. The default voltage is the recommended operating voltage for the device.
Note The accuracy of the power and thermal estimates is compromised if you do not
set all of the above mentioned signals. At a minimum, you should set high power
consuming nets, such as clock nets, clock enables, and other fast or heavily loaded
signals and output nets.
Power Reports
This section explains what you can expect to see in a power report. Power reports have
a .pwr extension.
There are three types of power reports:
• Standard Reports (the default)
• Detailed Reports (the report generated when you run the -v (Verbose Report)
command line option)
Standard Reports
A standard report contains the following:
• A report header specifying:
– The XPower version
– A copyright message
– Information about the design and associated files, including the design filename
and any PCF and simulation files loaded
– The data version of the information
• The Power Summary, which gives the power and current totals as well as other
summary information.
• The Thermal Summary, which consists of:
– Airflow
– Estimated junction temperature
– Ambient temperature
– Case temperature
– Theta J-A
• A Decoupling Network Summary, which contains capacitance values,
recommendations, and a total for each voltage source broken down in individual
capacitance ranges.
• A footer containing the analysis completion date and time.
Detailed Report
A detailed power report includes all of the information in a standard power report, plus
power details listed for logic, signals, clocks, inputs, and outputs of the design.
PIN2UCF
This chapter describes PIN2UCF. This chapter contains the following sections:
• PIN2UCF Overview
• PIN2UCF Command Line Syntax
• PIN2UCF Command Line Options
PIN2UCF Overview
PIN2UCF is a Xilinx® command line tool that back-annotates pin-locking constraints to
a User Constraints File (UCF).
For FPGA devices, PIN2UCF:
• Requires a successfully placed and routed design
• Reads a Native Circuit Description (NCD) file
For CPLD devices, PIN2UCF:
• Requires a successfully fitted design
• Reads a Guide (GYD) file
PIN2UCF writes its output to an existing UCF. If there is no existing UCF, PIN2UCF
creates one.
PIN2UCF Behavior
Condition PIN2UCF Behavior Files Created or Updated
No UCF is present. PIN2UCF creates a UCF pinlock.rpt
and writes the pin-locking
constraints to the UCF. design_name.ucf
PIN2UCF Syntax
The PIN2UCF command line syntax is:
pin2ucf ncd_file .ncd|pin_freeze_file .gyd [-rreport_file_name -o
output.ucf]
• ncd_file is the name of the placed and routed NCD file for FPGA devices, or
• pin_freeze_file is the name of the fitted GYD file for CPLD devices
Syntax
-o outfile .ucf
Syntax
-r report_file_name .rpt
TRACE
This chapter is about the Timing Reporter And Circuit Evaluator (TRACE) tool, and
contains the following sections:
• TRACE Overview
• TRACE Syntax
• TRACE Options
• TRACE Command Line Examples
• TRACE Reports
• OFFSET Constraints
• PERIOD Constraints
• Halting TRACE
TRACE Overview
The Timing Reporter And Circuit Evaluator (TRACE) tool provides static timing
analysis of an FPGA design based on input timing constraints.
TRACE performs two major functions:
• Timing Verification - Verifies that the design meets timing constraints.
• Reporting - Generates a report file that lists compliance of the design against the
input constraints. TRACE can be run on unplaced designs, only placed designs,
partially placed and routed designs, and completely placed and routed designs.
The following figure shows the primary inputs and outputs to TRACE. The Native
Circuit Description (NCD) file is the output design file from MAP or PAR, which has a
.ncd extension. The optional Physical Constraints File (PCF) has a .pcf extension. The
TWR file is the timing report file, which has a .twr extension.
TRACE Syntax
Use the following syntax to run TRACE from the command line:
trce [options ] design[.ncd] [constraint [.pcf]]
options can be any number of the command line options listed in TRACE Options.
Options need not be listed in any particular order unless you are using the -stamp
(Generates STAMP timing model files) option. Separate multiple options with spaces.
design specifies the name of the input design file. If you enter a file name with no
extension, TRACE looks for an NCD file with the specified name.
constraint specifies the name of a Physical Constraints File (PCF). This file is used to
define timing constraints for the design. If you do not specify a physical constraints file,
TRACE looks for one with the same root name as the input design (NCD) file.
TRACE Options
This section describes the TRACE command line options.
• -a (Advanced Analysis)
• -e (Generate an Error Report)
• -f (Execute Commands File)
• -fastpaths (Report Fastest Paths)
• -intstyle (Integration Style)
• -filter (Filter File)
• -l (Limit Timing Report)
• -n (Report Paths Per Endpoint)
• -nodatasheet (No Data Sheet)
• -o (Output Timing Report File Name)
• -s (Change Speed)
• -stamp (Generates STAMP timing model files)
• -tsi (Generate a Timing Specification Interaction Report)
• -u (Report Uncovered Paths)
• -v (Generate a Verbose Report)
• -xml (XML Output File Name)
-a (Advanced Analysis)
This option is only used if you are not supplying any timing constraints (from a PCF) to
TRACE. The -a option writes out a timing report with the following information:
• An analysis that enumerates all clocks and the required OFFSETs for each clock.
• An analysis of paths having only combinatorial logic, ordered by delay.
This information is supplied in place of the default information for the output timing
report type (summary, error, or verbose).
Syntax
-a
Note An analysis of the paths associated with a particular clock signal includes a hold
violation (race condition) check only for paths whose start and endpoints are registered
on the same clock edge.
Syntax
-e [limit]
The report has the same root name as the input design and has a .twr extension.
The optional limit is an integer limit on the number of items reported for each timing
constraint in the report file. The value of limit must be an integer from 0 to 32,000
inclusive. The default is 3.
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-fastpaths
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-filter [filter_file ]
By default, the filter file name is filter.filter.
Syntax
-l limit
Note The higher the limit value, the longer it takes to generate the timing report.
Syntax
-n limit
limit is the number of endpoints to report, and can be an integer from 0 to 2,000,000,000
(2 billion) inclusive.
Note The higher the limit value, the longer it takes to generate the timing report.
Syntax
-nodatasheet
Syntax
-o report[.twr]
-s (Change Speed)
This option overrides the device speed contained in the input NCD file and instead
performs an analysis for the device speed you specify. -s applies to whichever report
type you produce in this TRACE run. The option allows you to see if faster or slower
speed grades meet your timing requirements.
Syntax
-s [speed]
The device speed can be entered with or without the leading dash. For example, both -s
3 and -s -3 are valid entries.
Some architectures support minimum timing analysis. The command line syntax for
minimum timing analysis is: trace -s min. Do not place a leading dash before min.
Note The -s option only changes the speed grade for which the timing analysis is
performed; it does not save the new speed grade to the NCD file.
Syntax
-stamp stampfile design.ncd
Note The stamp file entry must precede the NCD file entry on the command line.
The STAMP compiler can be used for any printed circuit board when performing static
timing analysis.
Methods of running TRACE with the STAMP option to obtain a complete STAMP
model report are:
• Run with advanced analysis using the -a option.
• Run using default analysis (with no constraint file and without advanced analysis).
• Construct constraints to cover all paths in the design.
• Run using the unconstrained path report (-u option) for constraints which only
partially cover the design.
For either of the last two options, do not include TIGs in the PCF, as this can cause paths
to be excluded from the model.
Syntax
-tsi designfile .tsi designfile .ncd designfile .pcf
Syntax
-u limit
The optional limit argument limits the number of unconstrained paths reported for
each timing constraint in the report file. The value of limit must be an integer from 1 to
2,000,000,000 (2 billion) inclusive. If a limit is not specified, the default value is 3.
In the TRACE report, the following information is included for the unconstrained path
analysis constraint.
• The minimum period for all of the uncovered paths to sequential components.
• The maximum delay for all of the uncovered paths containing only combinatorial
logic.
• For a verbose report only, a listing of periods for sequential paths and delays for
combinatorial paths. The list is ordered by delay value in descending order, and the
number of entries in the list can be controlled by specifying a limit when you enter
the -v (Generate a Verbose Report) command line option.
Note Register-to-register paths included in the unconstrained path report undergoes
a hold violation (race condition) check only for paths whose start and endpoints are
registered on the same clock edge.
Syntax
-v limit
The optional limit used to limit the number of items reported for each timing constraint
in the report file. The value of limit must be an integer from 1 to 32,000 inclusive. If a
limit is not specified, the default value is 3.
Syntax
-xml outfile [.twx]
Example 2
trce -v 10 design1.ncd group1.pcf -o output.twr
This command verifies the characteristics for the design named design1.ncd, using
the timing constraints contained in the file group1.pcf and generates a verbose timing
report. The verbose report file is called output.twr.
Example 3
trce -v 10 design1.ncd group1.pcf -xml output.twx
This command verifies the timing characteristics for the design named design1.ncd,
using the timing constraints contained in the file group1.pcf, and generates a
verbose timing report (TWR report and XML report). The verbose report file is named
design1.twr, and the verbose XML report file is called output.twx.
Example 4
trce -e 3 design1.ncd timing.pcf
This command verifies the timing characteristics for the design named design1.ncd
using the timing constraints contained in the timing file (timing.pcf in this example),
and generates an error report. The error report lists the three worst errors for each
constraint in timing.pcf. The error report file is named design1.twr.
TRACE Reports
Default output from TRACE is an ASCII formatted timing report file that provides
information on how well the timing constraints for the design are met. The file is written
into your working directory and has a .twr extension. The default name for the file is
the root name of the input NCD file. You can designate a different root name for the file,
but it must have a .twr extension. The .twr extension is assumed if not specified.
The timing report lists statistics on the design, any detected timing errors, and a number
of warning conditions.
Timing errors show absolute or relative timing constraint violations, and include the
following:
• Path delay errors - where the path delay exceeds the MAXIMUM DELAY constraint
for a path.
• Net delay errors - where a net connection delay exceeds the MAXIMUM DELAY
constraint for the net.
• Offset errors - where either the delay offset between an external clock and its
associated data-in pin is insufficient to meet the timing requirements of the internal
logic or the delay offset between an external clock and its associated data-out pin
exceeds the timing requirements of the external logic.
• Net skew errors - where skew between net connections exceeds the maximum
skew constraint for the net.
To correct timing errors, you may need to modify your design, modify the constraints,
or rerun PAR.
Warnings point out potential problems, such as circuit cycles or a constraint that does
not apply to any paths.
Three types of reports are available: summary, error, and verbose. You determine the
report type by entering the corresponding TRACE command line option, or by selecting
the type of report when using Timing Analyzer (see TRACE Options). Each type of
report is described in Reporting with TRACE.
In addition to the ASCII formatted timing report (TWR) file, you can generate an XML
timing report (TWX) file with the -xml option. The XML report is not formatted and can
only be viewed with Timing Analyzer.
Note By default, the clock skew of all non-dedicated clocks, local clocks, and dedicated
clocks is analyzed.
A setup check performed on register-to-register paths checks to make sure that Slack =
constraint + Tsk - (Tpath + Tsu)
• constraint - is the required time interval for the path, either specified explicitly by
you with a FROM TO constraint, or derived from a PERIOD constraint.
• Tpath - is the summation of component and connection delays along the path.
• Tsu (setup) - is the setup requirement for the destination register.
• Tsk (skew) - is the difference between the arrival time for the destination register
and the source register.
• TSlack - is the negative slack shows that a setup error may occur, because the data
from the source register does not set up at the target register for a subsequent clock
edge.
Clock Skew
The clock skew Tsk is the delay from the clock input (CLKIOB) to register D (TclkD) less
the delay from the clock input (CLKIOB) to register S (TclkS). Negative skew relative to
the destination reduces the amount of time available for the data path, while positive
skew relative to the destination register increases the amount of time available for the
data path.
This section describes the following types of timing reports generated by TRACE.
• Summary Report - Lists summary information, design statistics, and statistics for
each constraint in the PCF.
• Error Report - Lists timing errors and associated net/path delay information.
• Verbose Report - Lists delay information for all nets and paths.
In each type of report, the header specifies the command line used to generate the report,
the type of report, the input design name, the optional input physical constraints file
name, speed file version, and device and speed data for the input NCD file. At the end
of each report is a timing summary, which includes the following information:
• The number of timing errors found in the design. This information appears in all
reports.
• A timing score, showing the total amount of error (in picoseconds) for all timing
constraints in the design.
• The number of paths and nets covered by the constraints.
• The number of route delays and the percentage of connections covered by timing
constraints.
Note The percentage of connections covered by timing constraints is given in a %
coverage statistic. The statistic does not show the percentage of paths covered; it shows
the percentage of connections covered. Even if you have entered constraints that cover
all paths in the design, this percentage may be less than 100%, because some connections
are never included for static timing analysis (for example, connections to the STARTUP
component).
In the following sections, a description of each report is accompanied by a sample.
The following is a list of additional information on timing reports:
• For all timing reports, if you specify a physical constraints file that contains invalid
data, a list of physical constraints file errors appears at the beginning of the report.
These include errors in constraint syntax.
• In a timing report, a tilde (~) preceding a delay value shows that the delay value is
approximate. Values with the tilde cannot be calculated exactly because of excessive
delays, resistance, or capacitance on the net, that is, the path is too complex to
calculate accurately.
The tilde (~) also means that the path may exceed the numerical value listed next
to the tilde by as much as 20%. You can use the PENALIZE TILDE constraint
to penalize these delays by a specified percentage (see the Constraints Guide for a
description of the PENALIZE TILDE constraint).
• In a timing report, an “e” preceding a delay value shows that the delay value is
estimated because the path is not routed.
• TRACE detects when a path cycles (that is, when the path passes through a driving
output more than once), and reports the total number of cycles detected in the
design. When TRACE detects a cycle, it disables the cycle from being analyzed. If
the cycle itself is made up of many possible routes, each route is disabled for all
paths that converge through the cycle in question and the total number is included
in the reported cycle tally.
A path is considered to cycle outside of the influence of other paths in the design.
Thus, if a valid path follows a cycle from another path, but actually converges at an
input and not a driving output, the path is not disabled and contains the elements
of the cycle, which may be disabled on another path.
• Error counts reflect the number of path endpoints (register setup inputs, output
pads) that fail to meet timing constraints, not the number of paths that fail the
specification, as shown in the following figure.
If an error is generated at the endpoints of A and B, the timing report would lists one
error for each of the end points.
If there is one destination flip-flop for each source flip-flop the design is successful.
If a source goes to different flip-flops of unrelated clocks, one flip-flop might get the
data and another flip-flop might miss it because of different data delays.
You can quickly navigate to the Data Sheet report by clicking the corresponding
item in the Hierarchical Report Browser.
• External Setup and Hold Requirements
Timing accounts for clock phase relationships and DCM phase shifting for all
derivatives of a primary clock input, and report separate data sheet setup and hold
requirements for each primary input. Relative to all derivatives of a primary clock
input covered by a timing constraint.
The maximum setup and hold times of device data inputs are listed relative to each
clock input. When two or more paths from a data input exist relative to a device
clock input, the worst-case setup and hold times are reported. One worst-case
setup and hold time is reported for each data input and clock input combination
in the design.
Following is an example of an external setup/hold requirement in the data sheet
report:
Setup/Hold to clock ck1_i
-------------+-------- --+----------+
| Setup to | Hold to |
Source Pad |clk (edge) |clk (edge)|
-------------+-----------+----------+
start_i |2.816(R) |0.000(R) |
-------------+-----------+----------+
• User-Defined Phase Relationships
Timing reports separate setup and hold requirements for user-defined internal
clocks in the data sheet report. User-defined external clock relationships are not
reported separately.
• Clock-to-Clock Setup and Hold Requirements
Timing will not report separate setup and hold requirements for internal clocks.
• Guaranteed Setup and Hold
Guaranteed setup and hold requirements in the speed files will supersede any
calculated setup and hold requirements made from detailed timing analysis. Timing
will not include phase shifting, DCM duty cycle distortion, and jitter into guaranteed
setup and hold requirements.
• Synchronous Propagation Delays
Timing accounts for clock phase relationships and DCM phase shifting for
all primary outputs with a primary clock input source, and reports separate
clock-to-output and maximum propagation delay ranges for each primary output
covered by a timing constraint.
The maximum propagation delay from clock inputs to device data outputs are listed
for each clock input. When two or more paths from a clock input to a data output
exist, the worst-case propagation delay is reported. One worst-case propagation
delay is reported for each data output and clock input combination.
Following is an example of clock-to-output propagation delays in the data sheet
report:
Clock ck1_i to Pad
-----------------+----------+
|clk (edge)|
Destination Pad | to PAD |
-----------------+----------+
out1_o | 16.691(R)|
------------- --+----------+
Clock to Setup on destination clock ck2_i
-------------+---------+---------+---------+---------+
|Src/Dest |Src/Dest | Src/Dest| Src/Dest|
Source Clock |Rise/Rise|Fall/Rise|Rise/Fall|Fall/Fall|
-------------+---------+---------+---------+---------+
ck2_i | 12.647 | | | |
ck1_i |10.241 | | | |
-------------+---------+---------+---------+---------+
The maximum propagation delay from each device input to each device output
is reported if a combinational path exists between the device input and output.
When two or more paths exist between a device input and output, the worst-case
propagation delay is reported. One worst-case propagation delay is reported for
every input and output combination in the design.
Following are examples of input-to-output propagation delays:
Pad to Pad
--------------------------------------
Source Pad |Destination Pad|Delay |
-------------+---------------+-------+
BSLOT0 |D0S |37.534 |
BSLOT1 |D09 |37.876 |
BSLOT2 |D10 |34.627 |
BSLOT3 |D11 |37.214 |
CRESETN |VCASN0 |51.846 |
CRESETN |VCASN1 |51.846 |
CRESETN |VCASN2 |49.776 |
CRESETN |VCASN3 |52.408 |
CRESETN |VCASN4 |52.314 |
CRESETN |VCASN5 |52.314 |
CRESETN |VCASN6 |51.357 |
CRESETN |VCASN7 |52.527 |
-------------+---------------+--------
• User-Defined Phase Relationships
Timing separates clock-to-output and maximum propagation delay ranges for
user-defined internal clocks in the data sheet report. User-defined external clock
relationships shall not be reported separately. They are broken out as separate
external clocks.
Report Legend
The following table lists descriptions of what X, R, and F mean in the data sheet report.
Note Applies to FPGA designs only.
X Indeterminate
R Rising Edge
F Falling Edge
Specific clock routing resources are clock networks that originate at a clock IOB, use a
clock buffer to reach a clock routing resource and route directly to IOB registers.
Guaranteed setup and hold times are also used for reporting of input OFFSET
constraints.
The following figure and text describes the external setup and hold time relationships.
The pad CLKPAD of clock input component CLKIOB drives a global clock buffer
CLKBUF, which in turn drives an input flip-flop IFD. The input flip-flop IFD clocks a
data input driven from DATAPAD within the component IOB.
Setup Times
The external setup time is defined as the setup time of DATAPAD within IOB relative to
CLKPAD within CLKIOB. When a guaranteed external setup time exists in the speed
files for a particular DATAPAD and the CLKPAD pair and configuration, this number is
used in timing reports. When no guaranteed external setup time exists in the speed files
for a particular DATAPAD and CLKPAD pair, the external setup time is reported as the
maximum path delay from DATAPAD to the IFD plus the maximum IFD setup time,
less the minimum of maximum path delay(s) from the CLKPAD to the IFD.
Hold Times
The external hold time is defined as the hold time of DATAPAD within IOB relative to
CLKPAD within CLKIOB. When a guaranteed external hold time exists in the speed
files for a particular DATAPAD and the CLKPAD pair and configuration, this number is
used in timing reports.
When no guaranteed external hold time exists in the speed files for a particular
DATAPAD and CLKPAD pair, the external hold time is reported as the maximum path
delay from CLKPAD to the IFD plus the maximum IFD hold time, less the minimum of
maximum path delay(s) from the DATAPAD to the IFD.
Summary Report
The summary report includes the name of the design file being analyzed, the device
speed and report level, followed by a statistical brief that includes the summary
information and design statistics. The report also list statistics for each constraint in the
PCF, including the number of timing errors for each constraint.
A summary report is produced when you do not enter an -e (error report) or -v (verbose
report) option on the TRACE command line.
Two sample summary reports are shown below. The first sample shows the results
without having a physical constraints file. The second sample shows the results when a
physical constraints file is specified.
If no physical constraints file exists or if there are no timing constraints in the PCF,
TRACE performs default path and net enumeration to provide timing analysis statistics.
Default path enumeration includes all circuit paths to data and clock pins on sequential
components and all data pins on primary outputs. Default net enumeration includes all
nets.
Timing summary:
---------------
Timing errors: 0 Score: 0
Design statistics:
Minimum period: 2.840ns (Maximum frequency: 352.113MHz)
Maximum combinational path delay: 6.063ns
Maximum net delay: 0.001ns
Analysis completed Wed Mar 8 14:52:30 2000
------------------------------------------------------------------
------------------------------------------------------------------
Constraint | Requested | Actual | Logic
| | | Levels
------------------------------------------------------------------
TS01 = PERIOD TIMEGRP "clk" 10.0ns | | |
------------------------------------------------------------------
OFFSET = IN 3.0 ns AFTER COMP
"clk" TIMEG | 3.000ns | 8.593ns | 2
RP "rams"
------------------------------------------------------------------
* TS02 = MAXDELAY FROM TIMEGRP
"rams" TO TI | 6.000ns | 6.063ns |2
MEGRP "pads" 6.0 ns | | |
------------------------------------------------------------------
1 constraint not met.
Timing summary:
---------------
Design statistics:
Maximum path delay from/to any node: 6.063ns
Maximum input arrival time after clock: 8.593ns
Error Report
The error report lists timing errors and associated net and path delay information. Errors
are ordered by constraint in the PCF and within constraints, by slack (the difference
between the constraint and the analyzed value, with a negative slack showing an error
condition). The maximum number of errors listed for each constraint is set by the limit
you enter on the command line. The error report also contains a list of all time groups
defined in the PCF and all of the members defined within each group.
The main body of the error report lists all timing constraints as they appear in the input
PCF. If the constraint is met, the report states the number of items scored by TRACE,
reports no timing errors detected, and issues a brief report line, showing important
information (for example, the maximum delay for the particular constraint). If the
constraint is not met, it gives the number of items scored by TRACE, the number of
errors encountered, and a detailed breakdown of the error.
For errors in which the path delays are broken down into individual net and component
delays, the report lists each physical resource and the logical resource from which the
physical resource was generated.
As in the other three types of reports, descriptive material appears at the top. A timing
summary always appears at the end of the reports.
The following sample error report (error.twr) represents the output generated with
this TRACE command:
trce -e 3 ramb16_s1.ncd clkperiod.pcf -o error_report.twr
------------------------------------------------------------------
Xilinx TRACE
Copyright (c) 1995-2007 Xilinx, Inc. All rights reserved.
==================================================================
Timing constraint: TS01 = PERIOD TIMEGRP "clk" 10.333ns ;
==================================================================
Timing constraint: OFFSET = IN 3.0 ns AFTER COMP "clk" TIMEGRP "rams" ;
==================================================================
Timing constraint: TS02 = MAXDELAY FROM TIMEGRP "rams" TO TIMEGRP "pads" 8.0 nS ;
I$22
d0
-----------------------------------------------------------------
Total 8.587ns (8.487ns logic, 0.100ns
.....................................route)
....................................(98.8% logic, 1.2%
.....................................route)
-----------------------------------------------------------------
Timing summary:
---------------
Design statistics:
Maximum path delay from/to any node: 8.587ns
Maximum input arrival time after clock: 9.224ns
Verbose Report
The verbose report is similar to the error report and provides details on delays for all
constrained paths and nets in the design. Entries are ordered by constraint in the
PCF, which may differ from the UCF or NCF and, within constraints, by slack, with a
negative slack showing an error condition. The maximum number of items listed for
each constraint is set by the limit you enter on the command line.
Note The data sheet report and STAMP model display skew values on non-dedicated
clock resources that do not display in the default period analysis of the normal verbose
report. The data sheet report and STAMP model must include skew because skew
affects the external timing model.
The verbose report also contains a list of all time groups defined in the PCF, and all of
the members defined within each group.
The body of the verbose report enumerates each constraint as it appears in the input
physical constraints file, the number of items scored by TRACE for that constraint, and
the number of errors detected for the constraint. Each item is described, ordered by
descending slack. A Report line for each item provides important information, such as
the amount of delay on a net, fanout on each net, location if the logic has been placed,
and by how much the constraint is met.
For path constraints, if there is an error, the report shows the amount by which the
constraint is exceeded. For errors in which the path delays are broken down into
individual net and component delays, the report lists each physical resource and the
logical resource from which the physical resource was generated.
==================================================================
Timing constraint: TS01 = PERIOD TIMEGRP "clk" 10.333ns ;
0 items analyzed, 0 timing errors detected.
------------------------------------------------------------------
==================================================================
Timing constraint: OFFSET = IN 3.0 ns AFTER COMP "clk" TIMEGRP "rams" ;
18 items analyzed, 0 timing errors detected.
Maximum allowable offset is 9.224ns.
------------------------------------------------------------------
Slack: 6.224ns (requirement - (data path - clock path
- clock arrival))
Source: ssr
Destination: RAMB16.A
Destination Clock: CLK rising at 0.000ns
Requirement: 7.333ns
Data Path Delay: 2.085ns (Levels of Logic = 2)
Clock Path Delay: 0.976ns (Levels of Logic = 2)
==================================================================
Timing constraint: TS02 = MAXDELAY FROM TIMEGRP "rams" TO TIMEGRP "pads"
8.0 nS ;
Timing summary:
---------------
Design statistics:
Maximum path delay from/to any node: 8.587ns
Maximum input arrival time after clock: 9.224ns
OFFSET Constraints
OFFSET constraints define Input and Output timing constraints with respect to an
initial time of 0ns.
The associated PERIOD constraint defines the initial clock edge. If the PERIOD
constraint is defined with the attribute HIGH, the initial clock edge is the rising clock
edge. If the attribute is LOW, the initial clock edge is the falling clock edge. This can
be changed by using the HIGH/LOW keyword in the OFFSET constraint. The OFFSET
constraint checks the setup time and hold time. For more information on constraints,
see the Constraints Guide.
OFFSET IN Header
The header includes the constraint, the number of items analyzed, and number of timing
errors detected. Please see PERIOD Header for more information on items analyzed
and timing errors.
======================================================================
----------------------------------------------------------------------
The minimum allowable offset is 4.468 ns. Because this is an OFFSET IN BEFORE, it
means the data must be valid 4.468 ns before the initial edge of the clock. The PERIOD
constraint was defined with the keyword HIGH, therefore the initial edge of the clock
is the rising edge.
======================================================================
Slack: -0.468ns (requirement - (data path - clock path - clock arrival + uncertainty))
Requirement: 4.000ns
----------------------------------------------------------------------
------------------------------------------------- --------------------
wr_enl_ibuf
------------------------------------------------- -------------------
----------------------------------------------------------------------
-------------------------------------------------- ------------------
write_dcm/IBUFG
-------------------------------------------------- -------------------
--------------------------------------------------------------------------
----------------------------------------------------------------------
Slack: 2.684ns (requirement - (data path - clock path - clock arrival + uncertainty))
Requirement: 4.000ns
----------------------------------------------- -------------------
write_dcm/IBUFG
----------------------------------------------- -------------------
Total 3.183ns (-1.616ns logic, 4.799ns route)
------------------------------------------------ -------------------
read_ibufg
------------------------------------------------ --------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
Note The clock falling at 5.000 ns is determined by how the PERIOD constraint is
defined, for example PERIOD 10 HIGH 5.
======================================================================
Slack: 0.533ns (requirement - (clock arrival + clock
path + data path + uncertainty))
Requirement: 10.000ns
----------------------------------------------------------------------
---------------------------------------------------- ------------------
A8.I Tiopi 0.825 rclk_in
read_ibufg
------------------------------------------------ -------------------
efl
------------------------------------------------ -------------------
PERIOD Constraints
A PERIOD constraint identifies all paths between all sequential elements controlled by
the given clock signal name. For more information on constraints, see the Constraints
Guide.
This section provides examples and details of the PERIOD constraints shown in the
Timing Constraints section of a timing analysis report. For clarification, PERIOD
constraint information is divided into the following parts:
• PERIOD Header
• PERIOD Path
• PERIOD Path Details
• PERIOD Constraint with PHASE
PERIOD Header
The following example is of a constraint generated using NGDBuild during the translate
step in the design flow. A new timespec (constraint) name was created. In this example
it is TS_write_dcm_CLK0. Write_dcm is the instantiated name of the DCM. CLK0 is the
output clock. The timegroup created for the PERIOD constraint is write_dcm_CLK0.
The constraint is related to TS_wclk. In this example, the PERIOD constraint is the
same as the original constraint because the original constraint is multiplied by 1 and
there is not a phase offset. Because TS_wclk is defined to have a Period of 12 ns, this
constraint has a Period of 12 ns.
In this constraint, 296 items are analyzed. An item is a path or a net. Because this
constraint deals with paths, an item refers to a unique path. If the design has unique
paths to the same endpoints, this is counted as two paths. If this constraint were a
MAXDELAY or a net-based constraint, items refer to nets. The number of timing errors
refers to the number of endpoints that do not meet the timing requirement, and the
number of endpoints with hold violations. If the number of hold violations is not shown,
there are no hold violations for this constraint. If there are two or more paths to the same
endpoint, it is considered one timing error. If this is the situation, the report shows two
or more detailed paths; one for each path to the same endpoint.
The next line reports the minimum Period for this constraint, which is how fast this
clock runs.
======================================================================
Timing constraint: TS_write_dcm_CLK0 = PERIOD TIMEGRP "write_dcm_CLK0" TS_wclk *
1.000000 HIGH
50.000 % ;
296 items analyzed, 0 timing errors detected.
Minimum period is 3.825ns.
----------------------------------------------------------------------
PERIOD Path
The detail path section shows all of the details for each path in the analyzed timing
constraint. The most important thing it does is identify if the path meets the timing
requirement. This information appears on the first line and is defined as the Slack. If the
slack number is positive, the path meets timing constraint by the slack amount. If the
slack number is negative, the path fails the timing constraint by the slack amount. Next
to the slack number is the equation used for calculating the slack. The requirement is the
time constraint number. In this case, it is 12 ns Because that is the time for the original
timespec TS_wclk. The data path delay is 3.811 ns and the clock skew is negative 0.014
ns. (12 - (3.811 - 0.014) = 8.203). The detail paths are sorted by slack. The path with the
least amount of slack is the first path shown in the Timing Constraints section.
The Source is the starting point of the path. Following the source name is the type of
component. In this case the component is a flip-flop (FF). The FF group also contains the
SRL16. Other components are RAM (Distributed RAM vs. BlockRAM), PAD, LATCH,
HSIO (High Speed I/O such as the Gigabit Transceivers) MULT (Multipliers), CPU
(PowerPC® processor), and others. In Timing Analyzer, for FPGA designs the Source
is a hot-link for cross probing.
The Destination is the ending point of the path. See the above description of the Source
for more information about Destination component types and cross probing.
The Requirement is a calculated number based on the time constraint and the time of
the clock edges. The source and destination clock of this path are the same so the entire
requirement is used. If the source or destination clock was a related clock, the new
requirement would be the time difference between the clock edges. If the source and
destination clocks are the same clock but different edges, the new requirement would be
half the original period constraint.
The Data Path Delay is the delay of the data path from the source to the destination.
The levels of logic are the number of LUTS that carry logic between the source and
destination. It does not include the clock-to-out or the setup at the destination. If there
was a LUT in the same slice of the destination, that counts as a level of logic. For this
path, there is no logic between the source and destination therefore the level of logic is 0.
The Clock Skew is the difference between the time a clock signal arrives at the source
flip-flop in a path and the time it arrives at the destination flip-flop. If Clock Skew is not
checked it will not be reported.
The Source Clock or the Destination Clock report the clock name at the source or
destination point. It also includes if the clock edge is the rising or falling edge and
the time that the edge occurs. If clock phase is introduced by the DCM/DLL, it would
show up in the arrival time of the clock. This includes coarse phase (CLK90, CLK180,
or CLK270) and fine phase introduced by Fixed Phase Shift or the initial phase of
Variable Phase Shift
The Clock Uncertainty for an OFFSET constraint might be different than the clock
uncertainty on a PERIOD constraint for the same clock. The OFFSET constraint only
looks at one clock edge in the equation but the PERIOD constraints takes into account
the uncertainty on the clock at the source registers and the uncertainty on the clock at
the destination register therefore there are two clock edges in the equation.
----------------------------------------------------------------------
Slack: 8.175ns (requirement - (data path - clock skew + uncertainty))
Source: wr_addr[0] (FF)
Destination: fifo_ram/BU5/SP (RAM)
Requirement: 12.000ns
Data Path Delay: 3.811ns (Levels of Logic = 1)
clock skew: -0.014ns
Source Clock: wclk rising at 0.000ns
Destination Clock: wclk rising at 12.000ns
Clock Uncertainty: 0.000ns
----------------------------------------------------------------------
At the end of the path is the total amount of the delay followed by a breakdown of
logic vs. routing. This is useful information for debugging a timing failure. For more
information see Timing Improvement Wizard for suggestions on how to fix a timing
issues.
----------------------------------------------------------------------
Constraints Improvement Wizard
Data Path: wr_addr[0] to fifo_ram/BU5/SP
Location Delay type Delay(ns) Logical Resource(s)
------------------------------------------------- ---------------
SLICE_X2Y4.YQ Tcko 0.568 wr_addr[0]
SLICE_X6Y8.WF1 net (fanout=112) 2.721 wr_addr[0]
SLICE_X6Y8.CLK Tas 0.522 fifo_ram/BU5/SP
------------------------------------------------- ---------------
Total 3.811ns (1.090ns logic, 2.721ns route)
(28.6% logic, 71.4% route)
----------------------------------------------------------------------
Because the slack is negative, this path fails the constraint. In the Hierarchical Report
Browser, this failing path is displayed in red.
----------------------------------------------------------------------
Slack: -2.871ns (requirement - (data path - clock skew + uncertainty))
Source: rd_addr[1] (FF)
Destination: ffl_reg (FF)
Requirement: 2.500ns
Data Path Delay: 5.224ns (Levels of Logic = 2)
Clock Skew: -0.147ns
Source Clock: rclk rising at 0.000ns
Destination Clock: rclk_90 rising at 2.500ns
Clock Uncertainty: 0.000ns
Data Path: rd_addr[1] to ffl_reg
Location Delay type Delay(ns) Logical Resource(s)
------------------------------------------------- -------------------
SLICE_X4Y19.XQ Tcko 0.568 rd_addr[1]
SLICE_X2Y9.F3 net (fanout=40) 1.700 rd_addr[1]
SLICE_X2Y9.X Tilo 0.439 full_st_i_0.G_4.G_4.G_3_10
SLICE_X2Y11.F2 net (fanout=1) 0.459 G_3_10
SLICE_X2Y11.X Tilo 0.439 full_st_i_0.G_4.G_4.G_4
K4.O1 net (fanout=3) 1.230 G_4
K4.OTCLK1 Tioock 0.389 ffl_reg
----------------------------------------------------------------------
Total 5.224ns (1.835ns logic, 3.389ns route)
(35.1% logic, 64.9% route)
----------------------------------------------------------------------
Halting TRACE
To halt TRACE, press Ctrl-C (on Linux) or Ctrl-BREAK (on Windows). On Linux,
make sure the active window is the window from which you invoked TRACE. The
program prompts you to confirm the interrupt. Some files may be left when TRACE is
halted (for example, a TRACE report file or a physical constraints file), but these files
may be discarded because they represent an incomplete operation.
Speedprint
This chapter describes Speedprint. This chapter contains the following sections:
• Speedprint Overview
• Speedprint Command Line Syntax
• Speedprint Command Line Options
Speedprint Overview
Speedprint is a Xilinx® command line tool that provides general information about
block delay values. To view precise values for a particular path through a block, see a
trace report showing that path.
Speedprint Flow
Block delay report for device: 5vlx30, speed grade: -3, Stepping Level: 0
This speed grade does not support reporting delays for specific
voltage and temperature conditions.
Note: This speed file does not contain any delay adjustment factors.
The following list of packages have individual package flight times for each pin on the device:
ff324
ff676
When a block is placed in a site normally used for another type of block,
for example, an IOB placed in a Clock IOB site, small variations in delay
may occur which are not included in this report.
NOTE: The delay name is followed by a pair of values representing a relative minimum
delay value and its corresponding maximum value. If a range of values exists for
a delay name, then the smallest pair and the largest pair are reported.
BUFG
Tbgcko_O 173.00 / 188.00
BUFGCTRL
Tbccck_CE 265.00 / 265.00
Tbccck_S 265.00 / 265.00
Tbcckc_CE 0.00 / 0.00
Tbcckc_S 0.00 / 0.00
Tbccko_O 173.00 / 188.00
BUFIO
Tbufiocko_O 594.00 / 1080.00
.
.
This speed grade supports reporting delays for specific voltage and
temperature conditions over the above operating condition ranges.
Note: This speed file does not contain any delay adjustment factors.
When a block is placed in a site normally used for another type of block,
for example, an IOB placed in a Clock IOB site, small variations in delay
may occur which are not included in this report.
NOTE: The delay name is followed by a pair of values representing a relative minimum
delay value and its corresponding maximum value. If a range of values exists for
a delay name, then the smallest pair and the largest pair are reported.
BUFGMUX
DCM
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-min
-s (Speed Grade)
This option displays data for the specified speed grade. If the -s option is omitted, delay
data for the default, which is the fastest speed grade, is displayed.
Syntax
-s [speed_grade ]
Caution! Do not use leading dashes on speed grades. For example, the syntax
speedprint 5vlx30 -s 3 is proper; the syntax speedprint 5vlx30 -s -3
is not.
-stepping (Stepping)
This option causes Speedprint to report delays for the specified stepping. For each
part, there is a default stepping. If the -stepping command line option is omitted,
Speedprint reports delays for the default stepping. Steppings do not necessarily affect
delays, but may do so.
Syntax
-stepping stepping_value
Examples
speedprint -stepping 0
speedprint -stepping ES
-t (Specify Temperature)
This option specifies the operating die temperature in degrees Celsius. If this option
is omitted, Speedprint uses the worst-case temperature.
Syntax
-t temperature
Examples
speedprint -t 85
speedprint -t -20
-v (Specify Voltage)
The speedprint (Specify Voltage) command line option specifies the operating voltage
of the device in volts. If this option is omitted, Speedprint uses the worst-case voltage.
Syntax
-v voltage
Examples
speedprint -v 1.2
speedprint -v 5
BitGen
This chapter describes BitGen. This chapter contains the following sections:
• BitGen Overview
• BitGen Command Line Syntax
• BitGen Command Line Options
BitGen Overview
BitGen is a Xilinx® command line tool that generates a bitstream for Xilinx device
configuration. After the design is completely routed, you configure the device using
files generated by BitGen. BitGen takes a fully routed Native Circuit Description (NCD)
file as input and produces a configuration Bitstream (BIT) file as output. A BIT file is a
binary file with a .bit extension.
The BIT file contains the configuration information from the NCD file. The NCD file
defines the internal logic and interconnections of the FPGA device, together with
device-specific information from other files associated with the target device. The binary
data in the BIT file is then downloaded into the memory cells of the FPGA device, or
used to create a PROM file. For more information, see the PROMGen chapter.
Note If you have a BMM file as an input to NGDBuild then BitGen will update this
BMM file with the BRAM locations (assigned during PAR) and generate an updated
back annotated _bd.bmm file.
BitGen creates _bd.bmm file when the NCD it is given has BMM information embedded
in it and it is given an ELF/MEM file as input using the –bd switch.
Design Flow
– The report file has the same root name as the output file and a .bgn extension.
• pcf_file is the name of a Physical Constraints File (PCF). BitGen uses the PCF to
interpret CONFIG constraints. CONFIG constraints do the following:
– Control bitstream options
– Override default behavior
– Can be overridden by configuration options
BitGen automatically reads the PCF by default.
– If the PCF is the second file specified on the command line, it must have a
.pcf extension.
– If the PCF is the third file specified, the extension is optional. In that case, .pcf
is assumed.
If the PCF is specified, it must exist. Otherwise, the input design name with a .pcf
extension is assumed.
Syntax
-b
Combining bitgen -g Readback with bitgen -b also generates an ASCII readback
command file (file_name.rba).
The rawbits file consists of ASCII ones and zeros representing the data in the bitstream
file. If you are using a microprocessor to configure a single FPGA device, you can
include the rawbits file in the source code as a text file to represent the configuration
data. The sequence of characters in the rawbits file is the same as the sequence of bits
written into the FPGA device.
Syntax
-bd file_name {.elf|.mem}
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
-g (Set Configuration)
This option specifies the startup timing and other bitstream options for Xilinx® FPGA
devices. The configuration is set using the sub-options defined below.
Syntax
-g sub-option :setting design.ncd design.bit design.pcf
For example, to enable Readback, use the following syntax:
bitgen -g readback
For a list of specific architecture settings, use bitgen -h [architecture]. The
default value may vary by architecture.
ActiveReconfig
Prevents the assertions of GHIGH and GSR during configuration. This is required for
the active partial reconfiguration enhancement features.
Architectures Virtex®-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
Binary
Creates a binary file with programming data only. Use Binary to extract and view
programming data. Changes to the header do not affect the extraction process.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
BPI_1st_read_cycle
Helps synchronize BPI configuration with the timing of page mode operations in Flash
devices. It allows you to set the cycle number for a valid read of the first page. The
BPI_page_size must be set to 4 or 8 for this option to be available
Architectures Virtex-5 and Virtex-6 architectures
Settings 1, 2, 3, 4
Default 1
BPI_page_size
For BPI configuration, this sub-option lets you specify the page size which corresponds
to number of reads required per page of Flash memory.
Architectures Virtex-5 and Virtex-6 architectures
Settings 1, 4, 8
Default 1
BusyPin
Lets you add an internal resistor to either weakly pull up or pull down the pin. Selecting
Pullnone does not add a resistor, and as a result the pin is not pulled in either direction.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
CclkPin
Adds an internal pull-up to the Cclk pin. The Pullnone setting disables the pullup.
Architectures Virtex-4, Virtex-5, Virtex-6, and Spartan-3
architectures
Settings Pullnone, Pullup
Default Pullup
Compress
Uses the multiple frame write feature in the bitstream to reduce the size of the bitstream,
not just the Bitstream (BIT) file. Using Compress does not guarantee that the size of
the bitstream will shrink. Compression is enabled by setting bitgen -g compress.
Compression is disabled by not setting it.
The partial BIT files generated with the bitgen -r option automatically use the
multiple frame write feature, and are compressed bitstreams.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings None
Default Off
ConfigFallBack
Enables or disables the loading of a default bitstream when a configuration attempt fails.
Architectures Virtex-5 and Virtex-6 architectures
Settings Enable, Disable
Default Enable
ConfigRate
BitGen uses an internal oscillator to generate the configuration clock, Cclk, when
configuring in a master mode. Use this sub-option to select the rate for Cclk.
Architectures Settings Default
Virtex-4 4, 5, 7, 8, 9, 10, 13, 15, 20, 26, 4
30, 34, 41, 45, 51, 55, 60
Virtex-5 2, 6, 9, 13, 17, 20, 24, 27, 31, 35, 2
38, 42, 46, 49, 53, 56, 60
Virtex-6 2, 4, 6, 10, 12, 16, 22, 26, 33, 40, 2
50, 66
Spartan-3 6, 3, 12, 25, 50 6
Spartan-3A 6, 1, 3, 7, 8, 10, 12, 13, 17, 22, 6
25, 27, 33, 44, 50, 100
Spartan-3E 1, 3, 6, 12, 25, 50 1
Spartan-6 2, 4, 6, 10, 12, 16, 22, 26, 33, 40, 2
50, 66
CRC
Controls the generation of a Cyclic Redundancy Check (CRC) value in the bitstream.
When enabled, a unique CRC value is calculated based on bitstream contents. If the
calculated CRC value does not match the CRC value in the bitstream, the device will
fail to configure. When CRC is disabled a constant value is inserted in the bitstream in
place of the CRC, and the device does not calculate a CRC.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Disable, Enable
Default Enable
CsPin
Lets you add an internal resistor to either weakly pull up or pull down the pin. Selecting
Pullnone does not add a resistor, and as a result the pin is not pulled in either direction.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
DCIUpdateMode
Controls how often the Digitally Controlled Impedance circuit attempts to update the
impedance match for DCI IOSTANDARDs.
Architectures Virtex-4, Virtex-5, and Spartan-3 architectures
Settings As required, Continuous, Quiet
Default As required
DCMShutdown
Specifies that the digital clock manager (DCM) should reset if the SHUTDOWN and
AGHIGH commands are loaded into the configuration logic.
Architectures Spartan-3 and Spartan-3E architectures
Settings Disable, Enable
Default Disable
DebugBitstream
Lets you create a debug bitstream. A debug bitstream is significantly larger than
a standard bitstream. DebugBitstream can be used only for master and slave
serial configurations. DebugBitstream is not valid for Boundary Scan or Slave
Parallel/SelectMAP.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
DinPin
Lets you add an internal resistor to either weakly pull up or pull down the pin. Selecting
Pullnone does not add a resistor, and as a result the pin is not BitGen pulled in either
direction.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
DONE_cycle
Selects the Startup phase that activates the FPGA Done signal. Done is delayed when
DonePipe=Yes.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings 1, 2, 3, 4, 5, 6
Default 4
DonePin
Adds an internal pull-up to the DONE pin. The BitGen Pullnone setting disables the
pullup. Use DonePin only if you intend to connect an external pull-up resistor to this
pin. The internal pull-up resistor is automatically connected if you do not use DonePin.
Architecture Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pullnone
Default Pullup
DonePipe
Tells the FPGA device to wait on the CFG_DONE (DONE) pin to go High and then wait
for the first clock edge before moving to the Done state.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
drive_awake
Specifies whether the AWAKE pin is actively driven or acts as an open drain, which
requires an open resistor to pull it high. The AWAKE pin monitors whether or not
the device is in SUSPEND mode.
Architectures Spartan-3A and Spartan-6 architectures
Settings No, Yes
Default No
DriveDone
Actively drives the DONE Pin high as opposed to using a pullup.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
en_porb
Specifies whether Power-On Reset (POR) detection is active for a SUSPEND state. By
default En_porb is enabled (Yes), which means por_b detection is always active.
When the voltage is too low, the FPGA device is reset.
If En_porb is set to No:
• por_b detection is enabled when the SUSPEND pin is low
• por_b detection is disabled when the SUSPEND pin is high.
Architectures Spartan-3A architecture
Settings No, Yes
Default Yes
en_sw_gsr
Restores the value of the flip-flop from the memory cell value when the FPGA wakes
up from suspend mode.
Architectures Spartan-3A and Spartan-6 architectures
Settings No, Yes
Default No
Encrypt
Encrypts the bitstream.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures,
and Spartan-6 devices LX75/T and larger
Settings No, Yes
Default No
EncryptKeySelect
Determines the location of the AES encryption key to be used, either from the
battery-backed RAM (BBRAM) or the eFUSE register.
Note This property is only available when the Encrypt option is set to True.
Architectures Virtex-6 architecture and Spartan-6 devices
LX75/T and larger
Settings bbram, efuse
Default bbram
ExtMasterCclk_en
Allows an external clock to be used as the configuration clock for all master modes. The
external clock must be connected to the dual-purpose USERCCLK pin.
Architectures Spartan-6 architecture
Settings No, Yes
Default No
ExtMasterCclk_divide
Determines if the external master configuration clock is divided internally.
Note This property is only available if the ExtMasterCclk_en property is set to Yes.
Architectures Spartan-6 architecture
Settings 1, multiples of 2 from 2 to 1022
Default 1
failsafe_user
Sets the address of the GENERAL5 register, which is a 16-bit register that allows users to
store and access any extra information desired for the failsafe scheme.
Architectures Spartan-6 architecture
Settings <4-digit hex string>
Default 0x0000
Glutmask
Masks out the LUTRAM frame during configuration readback or SEU readback.
Architectures Spartan-3A architecture
Settings No, Yes
Default Yes
golden_config_addr
Sets the address in GENERAL3,4 for the golden configuration image.
Architectures Spartan-6 architecture
Settings <8-digit hex string>
Default 0x00000000
GTS_cycle
Selects the Startup phase that releases the internal 3-state control to the I/O buffers. The
Done setting releases GTS when the DoneIn signal is High. The DoneIn setting is either
the value of the Done pin or a delayed version if DonePipe=Yes.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings 1, 2, 3, 4, 5, 6, Done, Keep
Default 5
GWE_cycle
Selects the Startup phase that asserts the internal write enable to flip-flops, LUT RAMs,
and shift registers. GWE_cycle also enables the BRAMS. Before the Startup phase,
both BRAM writing and reading are disabled. The Done setting asserts GWE when
the DoneIn signal is High. DoneIn is either the value of the Done pin or a delayed
version if DonePipe=Yes. The BitGen Keep setting is used to keep the current value
of the GWE signal
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings 1, 2, 3, 4, 5, 6, Done, Keep
Default 6
HKey
HKey sets the HMAC authentication key for bitstream encryption. Virtex-6 devices have
an on-chip bitstream-keyed Hash Message Authentication Code (HMAC) algorithm
implemented in hardware to provide additional security beyond AES decryption alone.
Virtex-6 devices require both AES and HMAC keys to load, modify, intercept, or clone
the bitstream.
The pick setting tells BitGen to select a random number for the value. To use this
option, you must first set -g Encrypt:Yes.
Architectures Virtex-6 architecture
Settings Pick, <hex string>
Default Pick
HswapenPin
Adds a pull-up, pull-down, or neither to the Hswapen pin. The BitGen Pullnone
setting shows there is no connection to either the pull-up or the pull-down.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3, and
Spartan-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
IEEE1532
Creates the IEEE 1532 Configuration File and requires that StartUpClk is set to JTAG
Clock.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
InitPin
Specifies whether you want to add a Pullup resistor to the INIT pin, or leave the
INIT pin floating.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures
Settings Pullup, Pullnone
Default Pullup
JTAG_SysMon
Enables or disables the JTAG connection to the System Monitor.
Architectures Virtex-5 and Virtex-6 architectures
Settings Enable, Disable
Default Enable
For Virtex-5, when this option is Enabled, attribute bit sysmon_test_a[1] is set to 1.
For Virtex-6, when this option is Enabled, attribute bits sysmon_test_e[2:0] are set to
3’b111.
Key0
Key0 sets the AES encryption key for bitstream encryption. The pick setting tells
BitGen to select a random number for the value. To use this option, you must first
set -g Encrypt:Yes.
Virtex-6 devices require both AES and HMAC keys to load, modify, intercept, or clone
the bitstream.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures,
and Spartan-6 devices LX75/T and larger
Settings Pick, <hex string>
Default Pick
KeyFile
Specifies the name of the input encryption file (with a .nky file extension). To use this
option, you must first set -g Encrypt:Yes.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures,
and Spartan-6 devices LX75/T and larger
Settings <string>
Default Not specified
LCK_cycle
Selects the Startup phase to wait until DLLs/DCMs/PLLs lock. If you select NoWait, the
Startup sequence does not wait for DLLs/DCMs/PLLs to lock.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings (Virtex-6 & Spartan-6) 0,1, 2, 3, 4, 5, 6, 7, NoWait
Settings (All other devices) 0,1, 2, 3, 4, 5, 6, NoWait
Default NoWait
M0Pin
Adds an internal pull-up, pull-down or neither to the M0 pin. Select Pullnone to
disable both the pull-up resistor and the pull-down resistor on the M0 pin.
Architectures Virtex-4, Virtex-5, Virtex-6, and Spartan-3
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
M1Pin
Adds an internal pull-up, pull-down or neither to the M1 pin. Select Pullnone to
disable both the pull-up resistor and pull-down resistor on the M1 pin.
Architectures Virtex-4, Virtex-5, Virtex-6, and Spartan-3
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
M2Pin
Adds an internal pull-up, pull-down or neither to the M2 pin. Select Pullnone to
disable both the pull-up resistor and pull-down resistor on the M2 pin.
Architectures Virtex-4, Virtex-5, Virtex-6, and Spartan-3
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
Match_cycle
Specifies a stall in the Startup cycle until digitally controlled impedance (DCI) match
signals are asserted.
Architectures Virtex-4, Virtex-5, Virtex-6, and Spartan-3
architectures
Settings 0, 1, 2, 3, 4, 5, 6, Auto, NoWait
Default Auto
DCI matching does not begin on the Match_cycle that was set in BitGen. The Startup
sequence simply waits in this cycle until DCI has matched. Given that there are a
number of variables in determining how long it will take DCI to match, the number of
CCLK cycles required to complete the Startup sequence may vary in any given system.
Ideally, the configuration solution should continue driving CCLK until DONE goes high.
When the Auto setting is specified, BitGen searches the design for any DCI I/O
standards. If DCI standards exist, BitGen uses Match_cycle:2. Otherwise, BitGen
uses Match_cycle:NoWait.
MultiBootMode
Enables or disables MultiBoot operation of the Spartan-3E. If disabled, the FPGA device
ignores the value on the MBT pin of the startup block.
Architectures Spartan-3E architecture
multipin_wakeup
Enables the System Configuration Port (SCP) pins to return the FPGA from suspend
mode.
Architectures Spartan-6 architecture
Settings No, Yes
Default No
next_config_addr
Sets the starting address for the next configuration in a MultiBoot setup, which is stored
in the General1 and General2 registers.
Architectures Spartan-3A and Spartan-6 architectures
Settings <8-digit hex string>
Default 0x00000000
next_config_boot_mode
Sets the configuration mode for the next configuration in a MultiBoot setup. For
Spartan-6 the MSB must be 0, the next two bits represent Mode pins M[1:0].
Architectures Spartan-3A and Spartan-6 architectures
Settings <3-bit binary string>
Default 001
next_config_new_mode
Selects between the mode value on the mode pins or the mode value specified in the
bitstream by the next_config_boot_mode sub-option. If Yes is chosen, the mode
value specified by the next_config_boot_mode sub-option overrides the value on
the mode pins during a subsequent MultiBoot configuration.
Architectures Spartan-3A and Spartan-6 architectures
Settings No, Yes
Default No
next_config_register_write
Enables the multi-boot header for a golden bitstream. This option is for use with the
Golden Image and will contain the address of the Multi-Boot Image. When the device
loads the Golden Image with this header attached it will jump to the address defined
by next_config_addr and load the multi-boot image. If configuration of the multi-boot
image does not successfully complete the device will reload the Golden Image, skipping
this header.
Architectures Spartan-3A and Spartan-6 architectures
Settings Enable, Disable
Default Enable
OverTempPowerDown
Enables the device to shut down when the system monitor detects a temperature
beyond the acceptable operational maximum. An external circuitry setup for the System
Monitor on is required in order to use this option.
Architectures Virtex-5 and Virtex-6 architectures
Settings Disable, Enable
Default Disable
PartialGCLK
Adds the center global clock column frames into the list of frames to write out in a
partial bitstream. PartialGCLK is equivalent to PartialMask0:1.
Architectures Spartan-3, Spartan-3A, and Spartan-3E
architectures
Settings Not Specified
Default Not Specified. No partial masks in use.
PartialLeft
Adds the left side frames of the device into the list of frames to write out in a partial
bitstream. This includes CLB, IOB, and BRAM columns. It does not include the center
global clock column.
Architectures Spartan-3, Spartan-3A, and Spartan-3E
architectures
Settings None
Default Not Specified. No partial masks in use.
PartialMask0 ...
The PartialMask0, PartialMask1, and PartialMask2 settings generate a
bitstream comprised of only the major addresses of block type <0, 1, or 2> that have
enabled value in the mask. The block type is all non-block ram initialization data frames
in the applicable device and its derivatives.
Architectures Spartan-3, Spartan-3A, and Spartan-3E
architectures
Settings All columns enabled, major address mask
Default Not Specified. No partial masks in use.
PartialRight
Adds the right side frames of the device into the list of frames to write out in a partial
bitstream. This includes CLB, IOB, and BRAM columns. It does not include the center
global clock column.
Architectures Spartan-3, Spartan-3A, and Spartan-3E
architectures
Settings None
Default Not Specified. No partial masks in use.
Persist
Prohibits use of the SelectMAP mode pins for use as user I/O. Refer to the datasheet for a
description of SelectMAP mode and the associated pins.
Persist is needed for Readback and Partial Reconfiguration using the SelectMAP
configuration pins.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings No, Yes
Default No
PowerdownPin
Puts the pin into sleep mode by specifying whether or not the internal pullup on the
pin is enabled.
Architectures Virtex-4 architecture
Settings Pullup, Pullnone
Default Pullup
ProgPin
Adds an internal pull-up to the ProgPin pin. The BitGen Pullnone setting disables the
pullup. The pullup affects the pin after configuration.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pullnone
Default Pullup
RdWrPin
Lets you add an internal resistor to either weakly pull up or pull down the pin. Selecting
Pullnone does not add a resistor, and as a result the pin is not pulled in either direction.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
ReadBack
Lets you perform the Readback function by creating the necessary readback files.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings None
Default Not Specified. The readback files are not
created..
Specifying bitgen -g Readback creates the .rbb, .rbd, and .msd files.
Using bitgen -b with bitgen -g Readback also generates an ASCII readback
command file (file_name.rba).
reset_on_error
Automatically resets the FPGA device when a CRC error is detected. This applies to
master mode configuration only.
Architectures Spartan-3A and Spartan-6 architectures
Settings No, Yes
Default No
Security
Specifies whether to disable Readback and Reconfiguration.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Level1, Level2, None
Default None
SelectMapAbort
Enables or disables the SelectMAP mode Abort sequence. If disabled, an Abort sequence
on the device pins is ignored.
Architectures Virtex-5 architecture
Settings Enable, Disable
Default Enable
SPI_buswidth
Sets the SPI bus to Dual (x2) or Quad (x4) mode for Master SPI configuration from third
party SPI Flash devices.
Architectures Spartan-6 architecture
Settings 1, 2, 4
Default 1
StartCBC
Sets the starting cipher block chaining (CBC) value. The BitGen pick setting enables
BitGen to select a random number for the value.
Architectures Virtex-4, Virtex-5, and Virtex-6 architectures,
and Spartan-6 devices LX75/T and larger
Settings Pick, <32-bit hex string>
Default Pick
StartupClk
The BitGen StartupClk sequence following the configuration of a device can be
synchronized to either Cclk, a User Clock, or the JTAG Clock. The default is Cclk.
• Cclk - Enter Cclk to synchronize to an internal clock provided in the FPGA device.
• UserClk - Enter UserClk to synchronize to a user-defined signal connected to the
CLK pin of the STARTUP symbol.
• JtagClk - Enter JtagClk to synchronize to the clock provided by JTAG. This clock
sequences the TAP controller which provides the control logic for JTAG.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Cclk (pin see Note), UserClk (user-supplied),
JtagClk
Default Cclk
Note In modes where Cclk is an output, the pin is driven by an internal oscillator.
sw_clk
Specifies which startup clock is used when the device wakes up from suspend mode.
Architectures Spartan-3A, and Spartan-6 architectures
Settings Startupclk, Internalclk
Default Startupclk
sw_gts_cycle
Applies when the device wakes up from suspend mode. Possible values are between 1
and 1024.
Architectures Spartan-3A and Spartan-6 architectures
Settings 4, <string>
Default 4
sw_gwe_cycle
Applies when the device wakes up from suspend mode. Possible values are between 1
and 1024.
Architectures Spartan-3A and Spartan-6 architectures
Settings 5, <string>
Default 5
TckPin
Adds a pull-up, a pull-down or neither to the TCK pin, the JTAG test clock. Selecting
one setting enables it and disables the others. The BitGen Pullnone setting shows that
there is no connection to either the pull-up or the pull-down.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
TdiPin
Adds a pull-up, a pull-down, or neither to the TDI pin, the serial data input to all JTAG
instructions and JTAG registers. Selecting one setting enables it and disables the others.
The BitGen Pullnone setting shows that there is no connection to either the pull-up
or the pull-down.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
TdoPin
Adds a pull-up, a pull-down, or neither to the TdoPin pin, the serial data output for all
JTAG instruction and data registers. Selecting one setting enables it and disables the
others. The BitGen Pullnone setting shows that there is no connection to either the
pull-up or the pull-down.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
TIMER_CFG
Sets the value of the Watchdog Timer in Configuration mode. This option cannot be
used at the same time as TIMER_USR.
Architectures Virtex-5, Virtex-6, and Spartan-6 architectures
Settings (Spartan-6) <4-digit hex string>
Settings (Virtex-5 & Virtex-6) <6-digit hex string>
Default (Spartan-6) 0x0000
Default (Virtex-5 & Virtex-6) 0xFFFF
TIMER_USR
Sets the value of the Watchdog Timer in User mode. This option cannot be used at
the same time as TIMER_CFG.
Architectures Virtex-5 and Virtex-6 architectures
Settings <6-digit hex string>
Default 0x000000
TmsPin
Adds a pull-up, pull-down, or neither to the TMS pin, the mode input signal to the TAP
controller. The TAP controller provides the control logic for JTAG. Selecting one setting
enables it and disables the others. The BitGen Pullnone setting shows that there is no
connection to either the pull-up or the pull-down.
Architectures Virtex-4, Virtex-5, Spartan-3, Spartan-3A,
Spartan-3E, and Spartan-6 architectures
Settings Pullup, Pulldown, Pullnone
Default Pullup
UnusedPin
Adds a pull-up, a pull-down, or neither to the unused device pins and the serial data
output (TDO) for all JTAG instruction and data registers. Selecting one setting enables it
and disables the others. The BitGen Pullnone setting shows that there is no connection
to either the pull-up or the pull-down.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings Pullup, Pulldown, Pullnone
Default Pulldown
UserID
Used to identify implementation revisions. You can enter up to an 8-digit hexadecimal
string in the User ID register.
Architectures Virtex-4, Virtex-5, Virtex-6, Spartan-3,
Spartan-3A, Spartan-3E, and Spartan-6
architectures
Settings <8-digit hex string>
Default 0xFFFFFFFF
wakeup_mask
Determines which of the eight SCP pins are enabled for wake-up from suspend mode.
Note This option is only available if multipin_wakeup is set to True.
Architectures Spartan-6 architecture
Settings <2-digit hex string>
Default 0x00
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-j
Syntax
-l
In some applications, you may want to observe the contents of the FPGA internal
registers at different times. The file created by bitgen -l helps you identify which bits
in the current bitstream represent outputs of flip-flops and latches. Bits are referenced
by frame and bit number within the frame.
The iMPACT tool uses the design.ll file to locate signal values inside a readback
bitstream.
Syntax
-m
Syntax
-r bit_file
Syntax
-w
For more information on BitGen output files, see the BitGen Overview.
BSDLAnno
This chapter describes the BSDLAnno utility. This chapter contains the following
sections:
• BSDLAnno Overview
• BSDLAnno Command Line Syntax
• BSDLAnno Command Line Options
• BSDLAnno File Composition
• Boundary Scan Behavior in Xilinx® Devices
BSDLAnno Overview
BSDLAnno is a Xilinx® command line tool that automatically modifies a Boundary
Scan Description Language (BSDL) file for post-configuration interconnect testing.
BSDLAnno:
• Obtains the necessary design information from the routed Native Circuit Description
(NCD) file (for FPGA devices) or the PNX file (for CPLD devices)
• Generates a BSDL file that reflects the post-configuration boundary scan architecture
of the device
The boundary scan architecture is changed when the device is configured because certain
connections between the boundary scan registers and pad may change. These changes
must be communicated to the boundary scan tester through a post-configuration BSDL
file. If the changes to the boundary scan architecture are not reflected in the BSDL file,
boundary scan tests may fail.
The Boundary Scan Description Language (BSDL) is defined by IEEE specification 1149.1
as a common way of defining device boundary scan architecture. Xilinx provides both
1149.1 and 1532 BSDL files that describe pre-configuration boundary scan architecture.
For most Xilinx device families, the boundary scan architecture changes after the device
is configured because the boundary scan registers sit behind the output buffer and
the input sense amplifier:
BSCAN Register -> output buffer/input sense amp -> PAD
The hardware is arranged in this manner so that the boundary scan logic operates at
the I/O standard specified by the design. This allows boundary scan testing across the
entire range of available I/O standards.
Input Files
BSDLAnno requires two input files to generate a post-configuration Boundary Scan
Description Language (BSDL) file:
• A pre-configuration BSDL file that is automatically read from the Xilinx installation
area.
• The routed Native Circuit Description (NCD) file for FPGA devices, or the PNX file
for CPLD devices specified as the input file.
File Acronym Extension Description/Notes
Native Circuit NCD .ncd A physical description of the design
Description mapped, placed and routed in the target
device. For FPGA devices.
Boundary Scan BSDL .bsd The length of the BSDL output filename,
Description Language including the .bsd extension, cannot
exceed 24 characters.
External Pin PNX .pnx For CPLD devices.
Description in XDM
Format
Output Files
The output from BSDLAnno is an ASCII (text) formatted Boundary Scan Description
Language (BSDL) file that has been modified to reflect:
• Signal direction (input/output/bidirectional)
• Unused I/Os
• Other design-specific boundary scan behavior.
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-s [IEEE1149|IEEE1532]
IEEE1149 and IEEE1532 versions of the pre-configuration BSDL file are currently
available. Most users require the IEEE1149 version.
Package Pin-Mapping
BSDLAnno package pin-mapping shows how the pads on the device die are wired to
the pins on the device package.
Syntax
use vhdl_package ;
Example
use STD_1149_1_1994.all;
BSDLAnno does not modify USE statements.
In most cases, boundary scan tests with Xilinx devices must be performed after FPGA
configuration only:
• When configuration cannot be prevented
• When differential signaling standards are used, unless the differential signals are
located between Xilinx devices. In that case, both devices can be tested before
configuration. Each side of the differential pair behaves as a single-ended signal.
PROMGen
This chapter contains the following sections:
• PROMGen Overview
• PROMGen Syntax
• PROMGen Options
• Bit Swapping in PROM Files
• PROMGen Examples
PROMGen Overview
PROMGen formats a BitGen-generated configuration bitstream (BIT) file into a PROM
format file. The PROM file contains configuration data for the FPGA device. PROMGen
converts a BIT file into one of several PROM or microprocessor-compatible formats
(see -p (PROM Format) for details). The following diagram shows the inputs and the
possible outputs of the PROMGen program:
PROMGen Syntax
To start PROMGen from the operating system prompt, use the following syntax:
promgen [options ]
options can be any number of the options listed in PROMGen Options. Enter options
in any order, preceded them with a dash (minus sign on the keyboard) and separate
them with spaces.
Note At least one of -r, -u, -d, or -ver must appear in the command.
PROMGen Options
This section describes the options that are available for the PROMGen command.
• -b (Disable Bit Swapping HEX Format Only)
• -bd (Specify Data File)
• -bm (Specify BMM File)
• -bpi_dc (Serial or Parallel Daisy Chaining)
• -c (Checksum)
• -config_mode (Configuration Mode)
• -d (Load Downward)
• -data_file (Add Data Files)
• -data_width (Specify PROM Data Width)
• -f (Execute Commands File)
• -i (Select Initial Version)
• -intstyle (Integration Style)
• -l (Disable Length Count)
• -n (Add BIT Files)
• -o (Output File Name)
• -p (PROM Format)
• -r (Load PROM File)
• -s (PROM Size)
• -spi (Disable Bit Swapping)
• -t (Template File)
• -u (Load Upward)
• -ver (Version)
• -w (Overwrite Existing Output File)
• -x (Specify Xilinx PROM)
• -z (Enable Compression)
Syntax
-b
Note This option only applies if the -p option specifies a HEX file or a BIN file for
PROMGen output.
Syntax
-bd filename [.elf|.mem] [start hexaddress ]
Each data file may or may not have a start address. If a start address is specified, the
data file is loaded starting at that address. If a start address is not specified, the data file
is loaded at the end of the previous data file.
Note Data files are loaded up and not down. All memory size checks that apply to bit
files also apply to data files. PROMGen checks to see if a given data file fits the specified
location, just as it does for BIT files.
Syntax
-bm filename
Syntax
-bpi_dc serial|parallel
-c (Checksum)
This option generates a checksum value appearing in the .prm file. This value should
match the checksum in the prom programmer. Use this option to verify that correct data
was programmed into the prom.
Syntax
-c
Syntax
-config_mode selectmap8|selectmap16|selectmap32
-d (Load Downward)
This option loads one or more BIT files from the starting address in a downward
direction. Specifying several files after this option causes the files to be concatenated in a
daisy chain. You can specify multiple -d options to load files at different addresses. You
must specify this option immediately before the input bitstream file.
Syntax
-d hexaddress0 filename filename
Here is the multiple file syntax:
promgen -d hexaddress0 filename filename
Here is the multiple -d options syntax:
promgen -d hexaddress1 filename -d hexaddress2 filename...
Syntax
-data_file up|down hex_address file [ file ... ]
up specifies that the file should be loaded up from the specified address.
down specifies that the file should be loaded down from the specified address.
hex_address the hexadecimal starting address for loading the listed files.
file is a file to load. You can list more than one file. Separate files names by spaces. Files
will be loaded in the order listed.
Syntax
-data_width 8|16|32
Specifying a data width of 16 or 32 affects the output PROM file in two ways:
• Instructs PROMGen to expand the address space of the PROM by a factor or 2 or 4,
based on a specified data width of 16 or 32.
• Instructs PROMGen to change the bit and byte order in the bitstreams to a
pre-determined order for bitstreams belonging to Virtex®-4, Virtex-5, Virtex-6,
and Spartan®-6 device families.
The default setting for the -data_width option is 8.
Note The expanded address space applies to bit files and data files. The reordering of
bits and bytes applies only to certain bit files and does not apply to any data files.
The option values are available for architectures as shown below:
• -data_width 8 is available for all supported FPGA architectures
• -data_width 16 is available for Virtex-5, Virtex-6, and Spartan-6 devices
• -data_width 32 is available for Virtex-4, Virtex-5, Virtex-6, and Spartan-6 devices
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-i version
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-l
Syntax
-n file1[.bit] file2[.bit]...
The following syntax shows how to specify multiple files. When you specify multiple
files, PROMGen daisy-chains the files.
promgen -d hexaddress file0 -n file1 file2...
The syntax for using multiple -n options follows. Using this method prevents the files
from being daisy-chained.
Syntax
-o file1[.ext] file2[.ext]
ext is the extension for the applicable PROM format.
Multiple file names may be specified to split the information into multiple files. If only
one name is supplied for split PROM files (by you or by default), the output PROM files
are named file_#.ext, where file is the base name, # is 0, 1, etc., and ext is the extension
for the applicable PROM format.
promgen -d hexaddress file0 -o filename
-p (PROM Format)
This option sets the PROM format to MCS (Intel MCS86), EXO (Motorola EXORMAX),
TEK (Tektronix TEKHEX), UFP (User Format PROM), or IEEE1532.
This option can also produce a HEX file (a hexadecimal representation of the
configuration bitstream) or a BIN file (a binary representation of the configuration
bitstream), which are used for microprocessor downloads.
Syntax
-p mcs|exo|tek|ufp|ieee1532|hex|bin
The default format is MCS.
IEEE1532 is a in-system programmability standard. The IEEE1532 compliant files that
PROMGen produces have header and data formatted according to that standard.
For UFP (User Format PROM), you can define several parameters in the PROM File
Template (PFT) file. Xilinx® provides a default.pft file in the $XILINX/data
directory. You can control many parameters including byte order, bytes per word, the
data separating character, etc.
Syntax
-r promfile
Note You cannot use -d, -u, or -n if you use -r.
-s (PROM Size)
This option sets the PROM size in kilobytes. The PROM size must be a power of 2. The
default value is 64 kilobytes. The -s option must precede any -u, -d, or -n options.
Syntax
-s promsize1 [ promsize2 ... ]
Multiple promsize entries for the -s option indicates the PROM will be split into multiple
PROM files.
Note Use the software tools to set all PROMs of the chain, create the PROM file, and
check how these options are used by opening the PRM report generated.
Syntax
-spi
-t (Template File)
This option specifies a template file for the user format PROM (UFP). If unspecified, the
default file $XILINX/data/default.pft is used. If the UFP format is selected, the -t option
is used to specify a control file.
Syntax
-t templatefile.pft
-u (Load Upward)
This option loads one or more BIT files from the starting address in an upward direction.
When you specify several files after this option, PROMGen concatenates the files in a
daisy chain. You can load files at different addresses by specifying multiple -u options.
Syntax
-u hexaddress0 filename1 filename2...
This option must be specified immediately before the input bitstream file.
-ver (Version)
This option loads .bit files from the specified hexaddress. Multiple .bit files
daisychain to form a single PROM load. The daisychain is assigned to the specified
version within the PROM.
Note This option is only valid for Xilinx® multibank PROMs.
Syntax
-ver [version ] hexaddress filename1.bit filename2.bit...
Syntax
-w
Syntax
-x xilinx_prom1 [ xilinx_prom2 ... ]
Multiple xilinx_prom entries for the -x option indicates the PROM will be split into
multiple PROM files.
Note Use the software tools to set all PROMs of the chain, create the PROM file, and
check how these options are used by opening the PRM report generated.
-z (Enable Compression)
This option enables compression for a Xilinx® multi-bank PROM. All PROM versions
will be compressed if version is not specified.
Syntax
-z version
In a bitstream contained in a BIT file, the Least Significant Bit (LSB) is always on the left
side of a byte. But when a PROM programmer or a microprocessor reads a data byte,
it identifies the LSB on the right side of the byte. In order for the PROM programmer
or microprocessor to read the bitstream correctly, the bits in each byte must first be
swapped so they are read in the correct order.
In this release of the ISE® Design Suite, the bits are swapped for all of the output
formats: MCS, EXO, TEK, UFP, IEEE1532, HEX, and BIN. For HEX or BIN file output, bit
swapping is on by default but can be turned off by using the -b PROMGen option.
PROMGen Examples
Loading a File Up
To load the file test.bit up from address 0x0000 in MCS format, enter the following
information at the command line:
promgen -u 0 test
Daisy-chaining Files
To daisy-chain the files test1.bit and test2.bit up from address 0x0000 and
the files test3.bit and test4.bit from address 0x4000 while using a 32K PROM and the
Motorola EXORmax format, enter the following information at the command line:
promgen -s 32 -p exo -u 00 test1 test2 -u 4000 test3 test4
IBISWriter
This chapter describes the IBISWriter program. This chapter contains the following
sections:
• IBISWriter Overview
• IBISWriter Syntax
• IBISWriter Options
IBISWriter Overview
The Input/Output Buffer Information Specification (IBIS) is a device modeling standard.
IBIS allows for the development of behavioral models used to describe the signal
behavior of device interconnects. These models preserve proprietary circuit information,
unlike structural models such as those generated from SPICE (Simulation Program with
Integrated Circuit Emphasis) simulations. IBIS buffer models are based on V/I curve
data produced either by measurement or by circuit simulation.
IBIS models are constructed for each IOB standard, and an IBIS file is a collection of IBIS
models for all I/O standards in the device. An IBIS file also contains a list of the used
pins on a device that are bonded to IOBs configured to support a particular I/O standard
(which associates the pins with a particular IBIS buffer model).
IBISWriter supports the use of digitally controlled impedance (DCI) with reference
resistance that is selected by the user. Although it is not feasible to have IBIS models
available for every possible user input, IBIS models are available for I/O Standards
LVCMOS15 through LVCMOS33 for impedances of 40, 50, and 65 ohms. If not specified,
the default impedance value is 50 ohms.
The IBIS standard specifies the format of the output information file, which contains a
file header section and a component description section. The Golden Parser has been
developed by the IBIS Open Forum Group (http://www.eigroup.org/ibis) to validate the
resulting IBIS model file by verifying that the syntax conforms to the IBIS data format.
The IBISWriter tool requires a design source file as input. For FPGA designs, this is a
physical description of the design in the form of a Native Circuit Description (NCD)
file with a .ncd file extension. For CPLD designs, the input is produced by CPLDFit
and has a .pnx file extension.
IBISWriter outputs a .ibs file. This file comprises a list of pins used by your design; the
signals internal to the device that connect to those pins; and the IBIS buffer models for
the IOBs connected to the pins.
IBISWriter Flow
IBISWriter Syntax
Use the following syntax to run IBISWriter from the command line:
IBISWriter Options
This section provides information on IBISWriter command line options.
• -allmodels (Include all available buffer models for this architecture)
• -g (Set Reference Voltage)
• -intstyle (Integration Style)
• -ml (Multilingual Support)
• -pin (Generate Package Parasitics)
• -truncate (Specify Maximum Length for Signal Names in Output File)
• -vccaux (Set vccaux Voltage)
Syntax
-allmodels
Syntax
-g option_value_pair
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-ml
Syntax
-pin
By default, this option is disabled.
Syntax
-truncate [20|40|no]
20 (the default) limits signal names to 20 characters.
40 limits signal names to 40 characters.
no allows unlimited signal name length.
Syntax
-vccaux [2.5|3.3|25|33]
The default value is 2.5
CPLDFit
This chapter describes CPLDFit. This chapter contains the following sections:
• CPLDFit Overview
• CPLDFit Syntax
• CPLDFit Options
CPLDFit Overview
The CPLDFit program is a command line executable that takes a Native Generic
Database (NGD) file, produced by NGDBuild, as input and fits the design into a CPLD
device.
CPLDFit Syntax
Following is the command line syntax for running the CPLDFit program:
cpldfit infile .ngd [options ]
infile.ngd is the name of the input NGD file.
options can be any number of the CPLDFit options listed in CPLDFit Options. Enter
options in any order, preceded them with a dash (minus sign on the keyboard) and
separate them with spaces.
CPLDFit Options
CPLDFit uses the following options:
• -blkfanin (Specify Maximum Fanin for Function Blocks)
• -exhaust (Enable Exhaustive Fitting)
• -ignoredatagate (Ignore DATA_GATE Attributes)
• -ignoretspec (Ignore Timing Specifications)
• -init (Set Power Up Value)
• -inputs (Number of Inputs to Use During Optimization)
• -iostd (Specify I/O Standard)
• -keepio (Prevent Optimization of Unused Inputs)
• -loc (Keep Specified Location Constraints)
• -localfbk (Use Local Feedback)
• -log (Specify Log File)
• -nofbnand (Disable Use of Foldback NANDS)
• -nogclkopt (Disable Global Clock Optimization)
• -nogsropt (Disable Global Set/Reset Optimization)
• -nogtsopt (Disable Global Output-Enable Optimization)
• -noisp (Turn Off Reserving ISP Pin)
• -nomlopt (Disable Multi-level Logic Optimization)
• -nouim (Disable FASTConnect/UIM Optimization)
• -ofmt (Specify Output Format)
• -optimize (Optimize Logic for Density or Speed)
• -p (Specify Xilinx Part)
• -pinfbk (Use Pin Feedback)
• -power (Set Power Mode)
• -pterms (Number of Pterms to Use During Optimization)
• -slew (Set Slew Rate)
• -terminate (Set to Termination Mode)
• -unused (Set Termination Mode of Unused I/Os)
• -wysiwyg (Do Not Perform Optimization)
Note Options apply to all CPLD families except where specified.
Syntax
-blkfanin [limit:4,40 ]
The maximum values vary with each supported CPLD architecture (default in
parentheses).
• CoolRunner™ XPLA3 = 40 (38)
• CoolRunner-II = 40 (36)
Syntax
-exhaust
Syntax
-ignoredatagate
Syntax
-ignoretspec
Syntax
-init [low|high|fpga]
Syntax
-inputs [limit]
The maximum limit varies with each CPLD architecture. The limits are as follows
(default in parentheses):
• XC9500 = 2,36 (36)
• XC9500XL/XV = 2,54 (54)
• CoolRunner™ XPLA3 = 2,40 (36)
• CoolRunner-II = 2,40 (36)
Syntax
-iostd
[LVTTL|LVCMOS18|LVCMOS18_ALL|LVCMOS25|LVCMOS33|SSTL2_I|SSTL3_I|HSTL_I|LVCMO
The default is LVCMOS18.
Syntax
-keepio
Syntax
-loc [on|off|try]
on (the default) directs CPLDFit to obey location constraints.
off directs CPLDFit to ignore location constraints.
try directs CPLDFit to use location constraints unless doing so would result in a fitting
failure.
Syntax
-localfbk
Syntax
-log logfile
Syntax
-nofbnand
Syntax
-nogclkopt
Syntax
-nogsropt
Syntax
-nogtsopt
Syntax
-noisp
Syntax
-nomlopt
Syntax
-nouim
Syntax
-ofmt [vhdl|verilog]
Syntax
-optimize density|speed
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
part_number is in the form of device-speedgrade-package (for example,
XC2C512-10-FT256). If a device is a lead-free package, it will have a G suffix in the
package name. For Example: XC2C512-10-FTG256. From a software perspective,
lead-free versus regular packages are identical so when specifying the package type,
omit the G suffix.
If only a product family is entered (for example, XPLA3), CPLDFit iterates through all
densities in that family until a fit is found.
Syntax
-pinfbk
Syntax
-power [std|low|auto]
std (the default) is used for standard high speed mode.
low is used for low power mode (at the expense of speed).
auto allows CPLDFit to choose the std or low setting based on the timing constraints.
Syntax
-pterms [limit:1,90 ]
The limits are as follows (default in parenthesis):
• XC9500 = 90 (25)
• XC9500XL/XV = 90 (25)
• CoolRunner™ XPLA3 = 48 (36)
• CoolRunner-II = 56 (36)
Syntax
-slew [fast|slow|auto]
Syntax
-terminate [pullup|keeper|float]
The available modes for each architecture follow (default in parentheses):
• XC9500XL/ XV: Float, Keeper (keeper)
• CoolRunner™ XPLA3: Float, Pullup (pullup)
• CoolRunner-II: Float, Pullup, Keeper, Pulldown (float)
Syntax
-unused [ground|pulldown|pullup|keeper|float]
The allowable options follow (default in parentheses):
• XC9500XL/XV: Float, Ground (float)
• CoolRunner™ XPLA3: Float, Pullup (pullup)
• CoolRunner-II: Float, Ground, Pullup, Keeper, Pulldown (ground)
Syntax
-wysiwyg
TSIM
This chapter describes the TSIM program. This chapter contains the following sections:
• TSIM Overview
• TSIM Syntax
TSIM Overview
The TSIM program is a command line executable that takes an implemented CPLD
design file (VM6) as input and outputs an annotated NGA file used by the NetGen
program. The NetGen Timing Simulation flow produces a back-annotated timing netlist
for timing simulation. See the CPLD Timing Simulation section in the NetGen chapter
for more information.
TSIM Syntax
Following is the syntax for the TSIM command line program:
tsim design.vm6 output.nga
design.vm6 is the name of the input design file (VM6) output by the CPLDFit program.
See the CPLDFit chapter for more information.
output.nga is the name of the output file for use with the NetGen Timing Simulation flow
to create a back-annotated netlist for timing simulation. If an output file name is not
specified, TSIM uses the root name of the input design file with a .nga extension.
TAEngine
This chapter describes the Timing Analysis Engine (TAEngine) program. TAEngine is a
command line executable that performs static timing analysis on implemented Xilinx®
CPLD designs. This chapter contains the following sections:
• TAEngine Overview
• TAEngine Syntax
• TAEngine Options
TAEngine Overview
TAEngine takes an implemented CPLD design file (VM6) from CPLDFit and performs a
static timing analysis of the timing components. The results of the static timing analysis
are written to a TAEngine report file (TIM) in summary or detail format.
The default output for TAEngine is a TIM report in summary format, which lists all
timing paths and their delays. A detailed TIM report, specified with the -detail (Detail
Report) option, lists all timing paths and a summary of all individual timing components
in each path. Both the summary TIM report and the detailed TIM report show the
performance of all timing constraints contained in the design.
TAEngine Syntax
Following is the command line syntax for running TAEngine:
taengine -f design_name .vm6 [options ]
-f design_name.vm6 specifies the name of the VM6 design file
options can be any number of the TAEngine options listed in TAEngine Options. Enter
options in any order, preceded them with a dash (minus sign on the keyboard) and
separate them with spaces.
TAEngine Options
This section describes the TAEngine command line options.
• -detail (Detail Report)
• -iopath (Trace Paths)
• -l (Specify Output Filename)
Syntax
-detail
Syntax
-iopath
Syntax
-l output_file .tim
Hprep6
This chapter describes the Hprep6 program. Hprep6 is a command line executable that
takes an implemented CPLD design file (VM6) as input and generates a programming
file for configuring a Xilinx® CPLD device. This chapter contains the following sections:
• Hprep6 Overview
• Hprep6 Options
Hprep6 Overview
Hprep6 takes an implemented CPLD design file (VM6) from the CPLDFit program
and generates a programming file for downloading to a CPLD device. Program files
are generated in JEDEC (JED) format and optionally ISC format based on options
specified on the command line.
Hprep6 Syntax
Following is the command line syntax for running the Hprep6 program:
hprep6 -i design_name .vm6 [options ]
-i design_name.vm6 specifies the name of the input design file, and is required.
options can be any number of the Hprep6 options listed in the Hprep6 Options section of
this chapter. Enter options in any order, preceded them with a dash (minus sign on the
keyboard) and separate them with spaces.
Hprep6 Options
This section describes the Hprep6 command line options.
• -autosig (Automatically Generate Signature)
• -intstyle (Integration Style)
• -n (Specify Signature Value for Readback)
• -nopullup (Disable Pullups)
• -s (Produce ISC File)
• -tmv (Specify Test Vector File)
Syntax
-autosig
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-n [signature ]
Syntax
-nopullup
Syntax
-s IEEE1532
Syntax
-tmv filename
XFLOW
This chapter describes the XFLOW program, a scripting tool that lets you automate
implementation, simulation, and synthesis flows using Xilinx® programs. This chapter
contains the following sections:
• XFLOW Overview
• XFLOW Flow Types
• XFLOW Option Files
• XFLOW Options
• Running XFLOW
XFLOW Overview
XFLOW is a Xilinx® command line program that automates Xilinx synthesis,
implementation, and simulation flows. XFLOW reads a design file as input as well as a
flow file and an option file. Xilinx provides a default set of flow files that automate which
Xilinx programs are run to achieve a specific design flow. For example, a flow file can
specify that NGDBuild, MAP, PAR, and TRACE are run to achieve an implementation
flow for an FPGA. You can use the default set of flow files as is, or you can customize
them. See XFLOW Flow Types and Flow Files for more information. Option files specify
which command line options are run for each of the programs listed in the flow file. You
can use the default set of option files provided by Xilinx, or you can create your own
option files. See XFLOW Options for more information.
The following figure shows the inputs and the possible outputs of the XFLOW program.
The output files depend on the flow you run.
Design File (for synthesis flows) - For the -synth flow type, the input design can be a
Verilog or VHDL file. If you have multiple VHDL or Verilog files, you can use a PRJ or V
file that references these files as input to XFLOW. For information on creating a PRJ or
V file, see the XST User Guide or the XST User Guide for Virtex-6 and Spartan-6 Devices.
You can also use existing PRJ files generated while using Project Navigator. XFLOW
recognizes and processes files with the extensions shown in the following table.
Note You must use the -g option for multiple file synthesis with Synplify synthesis
products. See -synth for details.
• FLW File - The flow file is an ASCII file that contains the information necessary for
XFLOW to run an implementation or simulation flow. When you specify a flow type
(described in XFLOW Flow Types), XFLOW calls a particular flow file. The flow file
contains a program block for each program invoked in the flow. It also specifies the
directories in which to copy the output files. You can use the default set of flow files
as is, or you can modify them. See Flow Files for more information.
• OPT Files - Option files are ASCII files that contain options for each program
included in a flow file. You can create your own option files or use the ones provided
by Xilinx. See XFLOW Option Files for more information.
• Trigger Files - Trigger files are any additional files that a command line program
reads as input, for example, UCF, NCF, PCF, and MFP files. Instead of specifying
these files on the command line, these files must be listed in the Triggers line of the
flow file. See XFLOW Flow Types for more information.
The following table lists the output files that can be generated for FPGAs.
design_name .dly This report file lists delay Flow file must include par
information for each net in a
design. (Use the -implement flow
type)
design_name .ncd (by PAR This Native Circuit Flow file must include map or
phase) Description (NCD) file par
can be used as a guide file.
design_name_ map.ncd (by It is a physical description (Use the -implement flow
MAP phase) of the design in terms of the type)
components in the target
Xilinx device. This file can
be a mapped NCD file or a
placed and routed NCD file.
design_name .par This report file contains Flow file must include par
summary information of
all placement and routing (Use the -implement flow
iterations. type)
design_name .pad This report file lists all I/O Flow file must include par
components used in the
design and their associated (Use the -implement flow
primary pins. type)
design_name .rbt This optional ASCII rawbits Flow file must include
file contains ones and zeros bitgen
representing the data in the
bitstream file. (Use the -config flow type)
Option file must include
bitgen -b option
design_name .twr This report file contains Flow file must include trce
timing data calculated from
the NCD file. (Use the -implement flow
type)
design_name .xpi This report file contains Flow file must include par
information on whether the
design routed and timing (Use the -implement flow
specifications were met. type)
The following table lists the output files that can be generated for CPLDs.
design_name .tim This report file contains Flow file must include
timing data. taengine (
Use the -fit flow type)
XFLOW Syntax
Following is the command line syntax for XFLOW:
xflow [-p partname ] [flow type] [option file[.opt]] [xflow
options ] design_name
flow type can be any of the flow types listed in XFLOW Flow Types. Specifying a flow
type prompts XFLOW to read a certain flow file. You can combine multiple flow types
on one command line, but each flow type must have its own option file.
option file can be any of the option files that are valid for the specified flow type. See
XFLOW Option Files for more information. In addition, option files are described in
the applicable flow type section.
xflow options can be any of the options described in XFLOW Options. Enter options
in any order, preceded them with a dash (minus sign on the keyboard) and separate
them with spaces.
design_name is the name of the top-level design file you want to process. See XFLOW
Input Files in the Overview section for a description of input design file formats.
Note If you specify a design name only and do not specify a flow type or option file,
XFLOW defaults to the -implement flow type and fast_runtime.opt option file for
FPGAs and the -fit flow type and balanced.opt option file for CPLDs.
You do not need to specify the complete path for option files. By default, XFLOW uses
the option files in your working directory. If the option files are not in your working
directory, XFLOW searches for them in the following locations and copies them to your
working directory. If XFLOW cannot find the option files in any of these locations, it
issues an error message.
• Directories specified using XIL_XFLOW_PATH
• Installed area specified with the XILINX environment variable
Note By default, the directory from which you invoked XFLOW is your working
directory. If you want to specify a different directory, use the -wd option described in
-wd (Specify a Working Directory).
Syntax
-config option_file
Xilinx® provides the bitgen.opt option file for use with this flow type.
To use a netlist file as input, you must use the -implement flow type with the -config
flow type.
Example
The following example shows how to use multiple flow types to implement and
configure an FPGA:
xflow -p xc5vlx30ff324-2 -implement balanced.opt -config
bitgen.opt testclk.edf
To use this flow type without the -implement flow type, you must use a placed and
routed NCD file as input.
Syntax
-ecn option_file
Xilinx® provides the following option files for use with this flow type.
Syntax
-fit option_file
Xilinx® provides the following option files for use with this flow type. These files allow
you to optimize your design based on different parameters.
Example
xflow -p xc2c64-4-cp56 -fit balanced.opt -tsim generic_vhdl.opt
main_pcb.edn
This example shows how to use a combination of flow types to fit a design and generate
a VHDL timing simulation netlist for a CPLD.
Syntax
-fsim option_file
Xilinx provides the following option files, which are targeted to specific vendors, for
use with this flow type.
Example
The following example shows how to generate a Verilog functional simulation netlist
for an FPGA design.
xflow -p xc5vlx30ff324-2 -fsim generic_verilog.opt testclk.v
Syntax
-implement option_file
Xilinx® provides the following option files for use with this flow type. These files allow
you to optimize your design based on different parameters.
Example
The following example shows how to use the -implement flow type:
xflow -p xc5vlx30ff324-2 -implement balanced.opt testclk.edf
Syntax
-sta option_file
Xilinx® provides theprimetime_verilog.opt option file for use with this flow type.
-synth
This flow type allows you to synthesize your design for implementation in an FPGA,
for fitting in a CPLD, or for compiling for functional simulation. The input design file
can be a Verilog or VHDL file.
You can use the -synth flow type alone or combine it with the -implement, -fit, or
-fsim flow type. If you use the -synth flow type alone, XFLOW invokes either the
fpga.flw or cpld.flw file and runs XST to synthesize your design. If you combine
the -synth flow type with the -implement, -fit, or -fsim flow type, XFLOW
invokes the appropriate flow file, runs XST to synthesize your design, and processes
your design as described in one of the following sections:
• -implement (Implement an FPGA)
• -fit (Fit a CPLD)
• -fsim (Create a File for Functional Simulation)
Syntax
-synth option_file
Note When using the -synth flow type, you must specify the -p option.
You can use the -synth command to synthesize using either XST or Synplify synthesis
products. The synthesis tool invoked depends on the option file that you use.
Xilinx® provides the following option files for use with the -synth flow type. These
files allow you to optimize your design based on different parameters.
Option File Description
xst_vhdl.opt Optimizes a VHDL source file for speed,
which reduces the number of logic levels and
synplicity_vhdl.opt increases the speed of the design
xst_verilog.opt Optimizes a Verilog source file for speed,
which reduces the number of logic levels and
synplicity_verilog.opt increases the speed of the design
xst_mixed.opt Optimizes a mixed level VHDL and Verilog
source file for speed, which reduces the
number of logic levels and increases the speed
of the design.
Syntax
-tsim option_file
Xilinx provides the following option files, which are targeted to specific vendors, for
use with this flow type.
Example
The following example shows how to use a combination of flow types to fit and perform
a VHDL timing simulation on a CPLD:
xflow -p xc2c64-4-cp56 -fit balanced.opt -tsim generic_vhdl.opt
main_pcb.vhd
Flow Files
When you specify a flow type on the command line, XFLOW invokes the appropriate
flow file and executes some or all of the programs listed in the flow file. These files have
a .flw extension. Programs are run in the order specified in the flow file.
The flow file contains a program block for each program in the flow. Each program
block includes the following information:
• Program program_name
This line identifies the name of the program block. It also identifies the command
line executable if you use an executable name as the program_name, for example,
ngdbuild. This is the first line of the program block.
• Flag: ENABLED | DISABLED
– ENABLED: This option instructs XFLOW to run the program if there are options
in the options file.
– DISABLED: This option instructs XFLOW to not run the program even if there
are corresponding options in the options file.
• Input: filename
This line lists the name of the input file for the program. For example, the NGDBuild
program block might list design.edn.
• Triggers:
This line lists any additional files that should be read by the program. For example,
the NGDBuild program block might list design.ucf.
• Exports:
This line lists the name of the file to export. For example, the NGDBuild program
block might list design.ngd.
• Reports:
This line lists the report files generated. For example, the NGDBuild program block
might list design.bld.
• Executable: executable_name
This line is optional. It allows you to create multiple program blocks for the same
program. When creating multiple program blocks for the same program, you must
enter a name other than the program name in the Program line (for example, enter
post_map_trace, not trce). In the Executable line, you enter the name of the
program as you would enter it on the command line (for example, trce).
For example, if you want to run TRACE after MAP and again after PAR, the program
blocks for post-MAP TRACE and post-PAR TRACE appear as follows:
Program post_map_trce
Flag: ENABLED;
Executable: trce;
Input: <design>_map.ncd;
Exports: <design>.twr, <design>.tsi;
End Program post_map_trce
Program post_par_trce
Flag: ENABLED;
Executable: trce;
Input: <design>.ncd;
Reports: <design>.twr, <design>.tsi;
End Program post_par_trce
Note If your option file includes a corresponding program block, its Program line must
match the Program line in the flow file (for example, post_map_trace).
End Program program_name
This line identifies the end of a program block. The program_name should be consistent
with the program_name specified on the line that started the program block.
XFLOW Options
This section describes the XFLOW command line options. These options can be used
with any of the flow types described in the preceding section.
• -config (Create a BIT File for FPGAs)
• -ecn (Create a File for Equivalence Checking)
• -ed (Copy Files to Export Directory)
• -f (Execute Commands File)
• -fit (Fit a CPLD)
• -fsim (Create a File for Functional Simulation)
• -g (Specify a Global Variable)
• -implement (Implement an FPGA)
• -log (Specify Log File)
• -norun (Creates a Script File Only)
• -o (Change Output File Name)
• -p (Part Number)
• -rd (Copy Report Files)
• -sta (Create a File for Static Timing Analysis)
• -synth
• -tsim (Create a File for Timing Simulation)
• -wd (Specify a Working Directory)
Syntax
-ed export_directory
If you use the -ed option with the -wd option and do not specify an absolute path name
for the export directory, the export directory is placed underneath the working directory.
Examples
In the following example, the export3 directory is created underneath the sub3 directory:
xflow -implement balanced.opt -wd sub3 -ed export3 testclk.vhd
If you do not want the export directory to be a subdirectory of the working directory,
enter an absolute path name as in the following example:
xflow -implement balanced.opt-wd sub3 -ed /usr/export3
testclk.vhd
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-g variable :value
Example
The following example shows how to specify a global variable at the command line:
xflow -implement balanced -g $simulation_output:time_sim calc
Note If a global variable is specified both on the command line and in a flow file, the
command line takes precedence over the flow file.
Syntax
-log
Syntax
-norun
Example
Following is an example:
xflow -implement balanced.opt -norun testclk.edf
In this example, XFLOW copies the balanced.opt and fpga.flw files to the current
directory and creates the following script file:
###########################################
# Script file to run the flow
#
###########################################
#
# Command line for ngdbuild
#
ngdbuild -p xc5vlx30ff324-2 -nt timestamp /home/
xflow_test/testclk.edf testclk.ngd
#
# Command line for map
#
map -o testclk_map.ncd testclk.ngd testclk.pcf
#
# Command line for par
#
par -w -ol high testclk_map.ncd testclk.ncd
testclk.pcf
#
# Command line for post_par_trce
#
trce -e 3 -o testclk.twr testclk.ncd testclk.pcf
Syntax
-o output_filename
Example
The following example shows how to use the -o option to change the base name of
output files from testclk to newname:
xflow -implement balanced.opt -o newname testclk.edf
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
By default (without the -p option), XFLOW searches for the part name in the input
design file. If XFLOW finds a part number, it uses that number as the target device for
the design. If XFLOW does not find a part number in the design input file, it prints an
error message indicating that a part number is missing.
For FPGA part types, you must designate a part name with a package name. If you do
not, XFLOW halts at MAP and reports that a package needs to be specified. You can use
the partgen -i option to obtain package names for installed devices. See -i (Output
List of Devices, Packages, and Speeds) in the PARTGen chapter for information.
For CPLD part types, either the part number or the family name can be specified.
Example
The following example show how to use the -p option for a Virtex®-5 design:
xflow -p xc5vlx30ff324-2 -implement high_effort.opt testclk.edf
Syntax
-rd report_directory
You can create the report directory prior to using this option, or specify the name of the
report directory and let XFLOW create it for you. If you do not specify an absolute
path name for the report directory, XFLOW creates the specified report directory in
your working directory.
Examples
Following is an example in which the report directory (reportdir) is created in the
working directory (workdir):
xflow -implement balanced.opt -wd workdir -rd reportdir
testclk.edf
If you do not want the report directory to be a subdirectory of the working directory,
enter an absolute path name, as shown in the following example:
xflow -implement balanced.opt -wd workdir -rd /usr/reportdir
testclk.edf
Syntax
-wd working_directory
Note If you use the -wd option and want to use a UCF file as one of your input files,
you must copy the UCF file into the working directory.
Unless you specify a directory path, the working directory is created in the current
directory.
Examples
For example, if you enter the following command, the directory sub1 is created in the
current directory:
xflow -fsim generic_verilog.opt -wd sub1 testclk.v
You can also enter an absolute path for a working directory as in the following example.
You can specify an existing directory or specify a path for XFLOW to create.
xflow -fsim generic_verilog.opt -wd /usr/project1 testclk.v
Running XFLOW
The following sections describe common ways to use XFLOW.
NGCBuild
This chapter describes the NGCBuild utility, and contains the following sections:
• NGCBuild Overview
• NGCBuild Syntax
• NGCBuild Options
NGCBuild Overview
The NGCBuild utility:
• Compiles multiple source netlists (EDIF and NGC files) into a single NGC file that
can be delivered as an atomic entity (also known as “incremental linkage”).
• Annotates a User Constraints File (UCF) onto an existing netlist or collection of
netlists.
Most NGCBuild features are a subset of NGDBuild features. NGCBuild:
1. Opens the top level EDIF or NGC netlist.
2. Recursively traverses (top-down) the design hierarchy of the top level netlist,
checking for references to other netlists that are present in the same directory, or in
directories specified by the -sd command line option.
3. Annotates a UCF file to the resulting, linked design hierarchy (optional).
4. Writes the resulting design hierarchy to a new NGC file, as specified on the
command line.
NGCBuild Syntax
To start NGCBuild, run the following command:
ngcbuild [options ] infile[.ext]outfile[.ngc]
This command:
1. Opens NGCBuild.
2. Reads the design.
3. Converts the design to an NGC file.
NGCBuild Options
NGCBuild options are a subset of the NGDBuild options, and have the same
functionality. NGCBuild supports the following options:
• -aul (Allow Unmatched LOCs)
• -dd (Destination Directory)
• -f (Execute Commands File)
• -i (Ignore UCF File)
• -insert_keep_hierarchy (Insert KEEP_HIERARCHY constraint)
• -intstyle (Integration Style)
• -filter (Filter File)
• -nt (Netlist Translation Type)
• -p (Part Number)
• -quiet (Quiet)
• -r (Ignore LOC Constraints)
• -sd (Search Specified Directory)
• -uc (User Constraints File)
• -ur (Read User Rules File)
• -verbose (Report All Messages)
Syntax
-aul
You may want to run this program with the -aul option if your constraints file includes
location constraints for pin, net, or instance names that have not yet been defined in the
HDL or schematic. This allows you to maintain one version of your constraints files for
both partially complete and final designs.
Note When using this option, make sure you do not have misspelled net or instance
names in your design. Misspelled names may cause inaccurate placing and routing.
Syntax
-dd NGOoutput_directory
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-i
Note If you use this option, do not use the -uc option.
Syntax
-insert_keep_hierarchy
Note Care should be taken when trying to use this option with Cores, as they may
not be coded for maintaining hierarchy.
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
Syntax
-filter [filter_file ]
By default, the filter file name is filter.filter.
Syntax
-nt timestamp|on|off
timestamp (the default) instructs the Netlist Launcher to perform the normal timestamp
check and update NGO files according to their timestamps.
on translates netlists regardless of timestamps (rebuilding all NGO files).
off does not rebuild an existing NGO file, regardless of its timestamp.
-p (Part Number)
This option specifies the part into which your design is implemented.
Syntax
-p part_number
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
-quiet (Quiet)
This option tells the program to only report error and warning messages.
Syntax
-quiet
Syntax
-r
Syntax
-sd {search_path }
The search_path must be separated from the -sd option by spaces or tabs (for example,
-sd designs is correct, -sddesigns is not). You can specify multiple search paths
on the command line. Each must be preceded with the -sd option; you cannot specify
more than one search_path with a single -sd option. For example, the following syntax is
acceptable for specifying two search paths:
-sd /home/macros/counter -sd /home/designs/pal2
The following syntax is not acceptable:
-sd /home/macros/counter /home/designs/pal2
Syntax
-uc ucf_file [.ucf]
The User Constraints File (UCF) must have a .ucf extension. If you specify a UCF
without an extension, NGCBuild appends the .ucf extension to the file name. If you
specify a file name with an extension other than .ucf, you get an error message and
NGCBuild does not run.
If you do not enter a -uc option and a UCF file exists with the same base name as the
input design file and a .ucf extension, NGCBuild automatically reads the constraints in
this UCF file.
See the Constraints Guide for more information on the UCF file.
Note NGCBuild only allows one UCF file as input. Therefore, you cannot specify
multiple -uc options on the command line.
Note If you use this option, do not use the -i option.
Syntax
-ur rules_file [.urf]
The user rules file must have a .urf extension. If you specify a user rules file with no
extension, NGDBuild appends the .urf extension to the file name. If you specify a file
name with an extension other than .urf, you get an error message and NGDBuild
does not run.
See User Rules File (URF) in Appendix B for more information.
Syntax
-verbose
Compxlib
This chapter describes the Compxlib, which is a program used to compile Xilinx®
simulation libraries. This chapter contains the following sections:
• Compxlib Overview
• Compxlib Syntax
• Compxlib Options
• Compxlib Command Line Examples
• Specifying Run Time Options
• Sample Configuration File (Windows Version)
Compxlib Overview
Compxlib is a tool for compiling the Xilinx® HDL-based simulation libraries with the
tools provided by simulator vendors. Libraries are generally compiled or recompiled
anytime a new version of a simulator is installed, a new ISE version is installed, a new
service pack is installed.
Before starting the functional simulation of your design, you must compile the Xilinx
simulation libraries for the target vendor simulator. For this purpose, Xilinx provides
Compxlib.
Note Do NOT use Compxlib with ModelSim XE (Xilinx Edition) or ISim. These
simulators come with the Xilinx libraries pre-compiled.
Design Flow
Note Compxlib should be rerun when a new simulator, a new ISE® Design Suite
version, or a new ISE Design Suite update is installed during a design cycle.
Compxlib Syntax
To compile simulation libraries from the command line, type:
compxlib [options ]
options can be any number of the Compxlib command line options listed in Compxlib
Options. Enter options in any order, preceded them with a dash (minus sign on the
keyboard) and separate them with spaces.
For example, the following command compiles all Xilinx® Verilog libraries for the
Virtex®-6 device family on the ModelSim SE simulator:
compxlib -s mti_se -arch virtex4 -l verilog
The compiled results are saved in the default location, which is
$XILINX/verilog/mti_se//6.5c/lin
For a list of Compxlib options and syntax details, see Compxlib Options. in this chapter.
To view Compxlib help, type compxlib -help <value>
You can specify the value of a specific Compxlib option or device family to get help
information on. See the Compxlib Command Line Examples section of this chapter
for details.
Note For information on compiling a simulation library in Project Navigator, see
the ISE® Help, especially Compiling HDL Simulation Libraries. Various options are
available from the Process Properties dialog box in Project Navigator. Project Navigator
shows only the options that apply to your specific design flow. For example, for a
Virtex-6 project, it shows only the list of libraries required to simulate a Virtex-6 design.
To see the compilation results after the libraries are compiled, double-click View
Compilation Log in Project Navigator to open the compxlib.log file.
Compxlib Options
This section describes the Compxlib command line options.
• -arch (Device Family)
• -cfg (Create Configuration File)
• -dir (Output Directory)
• -e (Existing Directory)
• -exclude_deprecated (Exclude Deprecated EDK Libraries)
• -exclude_sublib (Exclude EDK Sub-Libraries)
• -f (Execute Commands File)
• -info (Print Precompiled Library Info)
• -l (Language)
• -lib (Specify Name of Library to Compile)
• -log (Log File)
• -p (Simulator Path)
• -s (Target Simulator)
• -source_lib (Source Libraries)
• -verbose (List Detailed Messages)
• -w (Overwrite Compiled Library)
Syntax
-arch {device_family |all}
If -arch is not specified, Compxlib exits with an error message without compiling the
libraries. Specifying “all” rather than a specific device family generates libraries for
all device families.
Syntax
-cfg [cfg_file ]
Syntax
-dir dir_path
-e (Existing Directory)
Specifies the directory that contains libraries previously compiled by Compxlib.
Syntax
-e existing_directory
existing_directory is the directory containing the libraries previously compiled by
Compxlib.
Syntax
-exclude_deprecated
Syntax
-exclude_sublib
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-info dir_path
-l (Language)
Use this option to specify the language from which the libraries will be compiled.
Syntax
-l {all|verilog|vhdl}
By default, Compxlib detects the language type from the -s (Target Simulator) option. If
the simulator supports both Verilog and VHDL, Compxlib:
• Sets the -l option to all.
• Compiles both Verilog and VHDL libraries.
If the simulator does not support both Verilog and VHDL, Compxlib:
• Detects the language type supported by the simulator
• Sets the -l value accordingly
If you specify -l, Compxlib compiles only the libraries for the language that you specify.
Note When the XILINX_EDK environment variable is set and EDK compilation is
selected, Compxlib ignores this option and compiles both VHDL and Verilog libraries.
Syntax
-lib [library |all]
Valid values for library are:
• unisim (alias u)
• simprim (alias s)
• uni9000 (alias n)
• xilinxcorelib (alias c)
• coolrunner (alias r)
• edk (alias e)
For multiple libraries, separate -lib options with spaces. For example:
.. -lib unisim -lib simprim ..
Note If you select EDK libraries (-lib edk), all ISE® libraries will be compiled
because EDK libraries are dependent on UNISIM and SIMPRIM.
Syntax
-log log_file
log_file is the name of the log file.
-p (Simulator Path)
Use this option to specify the directory path where the simulator executables reside.
By default, Compxlib automatically searches for the path from the $PATH or %PATH%
environment variable. This option is required if the target simulator is not specified in
the $PATH or %PATH% environment variable or to override the path from the $PATH or
%Path% environment variable.
Syntax
-p dir_path
-s (Target Simulator)
Use this option to specify the simulator for which the libraries will be compiled.
If you do not specify -s, Compxlib exits without compiling the libraries.
Syntax
-s simulator
Valid simulator values are:
• mti_se
• mti_pe
• mti_de
• questa
• ncsim
• riviera
• vcs_mx
Syntax
-source_lib dir_path
dir_path is the name of the directory in which to start searching for library source files.
Syntax
-verbose
Syntax
-w
EXECUTE
EXECUTE: on|off
By default, the value is ON.
If the value is on, Compxlib compiles the libraries.
If the value is off, Compxlib generates only the list of compilation commands in the
compxlib.log file, without executing them.
EXTRACT_LIB_FROM_ARCH
EXTRACT_LIB_FROM_ARCH: on|off
This option supports Early Access devices. Do not change this option.
LOCK_PRECOMPILED
LOCK_PRECOMPILED: on|off
By default, the value is off.
If the value is off, Compxlib compiles the dependent libraries automatically if they
are not precompiled.
If the value is on, Compxlib does not compile the precompiled libraries.
For example, if you want to compile the XilinxCoreLib Library, Compxlib looks for this
value to see if the dependent UNISIM libraries should be compiled.
LOG_CMD_TEMPLATE
LOG_CMD_TEMPLATE: on|off
By default, the value is off.
If the value is off, Compxlib does not print the compilation command line in the
compxlib.log file.
If the value is on, Compxlib prints the compilation commands in the compxlib.log file.
HIER_OUT_DIR
HIER_OUT_DIR: on|off
By default, the value is off.
If the value is off, Compxlib places all of the libraries in the directory that is specified
with the -dir switch.
If the value is on, Compxlib creates hierarchical output directories for the libraries for
each of the simulators.
PRECOMPILED_INFO
PRECOMPILED_INFO: on|off
By default, the value is on.
If the value is on, Compxlib prints the precompiled library information including the
date the library was compiled.
If the value is off, Compxlib does not print the precompiled library information.
BACKUP_SETUP_FILES
BACKUP_SETUP_FILES: on|off
By default, the value is on.
If the value is on, Compxlib creates a backup of the all the simulator specific
setup files (modelsim.ini for MTI, cds.lib and hdl.var for NCSim, and
synopsys_sim.setup for Synopsys VCS and VCS MX) that it wrote out in the
previous run.
If the value is off, Compxlib does not create a backup of the setup files.
FAST_COMPILE
FAST_COMPILE: on|off
ABORT_ON_ERROR
ABORT_ON_ERROR: on|off
By default, the value is off.
If the value is off, Compxlib does not error out if a compilation error occurs.
If the value is on, Compxlib errors out if a compilation error occurs.
ADD_COMPILATION_RESULTS_TO_LOG
ADD_COMPILATION_RESULTS_TO_LOG: on|off
By default, the value is on.
If the value is on, Compxlib writes to the log file with the name specified by -log.
If the value is off, Compxlib ignores -log.
USE_OUTPUT_DIR_ENV
USE_OUTPUT_DIR_ENV: empty|<NAME_OF_ENVIRONMENT_VARIABLE>
By default, the value is empty.
If the value is empty, Compxlib does not look for an environment variable for the output
directory. Instead, it uses the directory specified by -o.
If the value is <NAME_OF_ENV_VAR>, Compxlib looks on the system for an
environment variable with the name listed in this option, and compiles the libraries to
that folder. See the following example.
cfg file USE_OUTPUT_DIR_ENV:MY_LIBS
system setting setenv MY_LIBS /my_compiled_libs
compiles the libraries to the folder /my_compiled_libs
OPTION
OPTION
Simulator language command line options.
OPTION:Target_Simulator:Language:Command_Line_Options
By default, Compxlib picks the simulator compilation commands specified in the
Command_Line_Options.
You can add or remove the options from Command_Line_Options depending on
the compilation requirements.
#*****************************************************************
# $XILINX/bin/lin/unwrapped/compxlib configuration file - compxlib.cfg
# Mon Apr 19 19:36:33 2010
#
# Important :-
# All options/variables must start from first column
#
#*****************************************************************
#
RELEASE_VERSION:12.1
#
RELEASE_BUILD:M.55
#
# set current simulator name
SIMULATOR_NAME:
#
# set current language name
LANGUAGE_NAME:all
#
# set compilation execution mode
EXECUTE:on
#
# print compilation command template in log file
LOG_CMD_TEMPLATE:off
#
# Hierarchical Output Directories
HIER_OUT_DIR:off
#
# print Pre-Compiled library info
PRECOMPILED_INFO:on
#
# create backup copy of setup files
BACKUP_SETUP_FILES:on
#
# use enhanced compilation techniques for faster library compilation
# (applicable to selected libraries only)
FAST_COMPILE:on
#
# save compilation results to log file with the name specified with -log option
ADD_COMPILATION_RESULTS_TO_LOG:on
#
# abort compilation process if errors are detected in the library
ABORT_ON_ERROR:off
#
# compile library in the directory specified by the environment variable if the
# -dir option is not specified
OUTPUT_DIR_ENV:
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: ModelSim SE
SET:mti_se:MODELSIM=modelsim.ini
#
# ModelSim SE options for VHDL Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vcom -work <library> <OPTION> <file_name>
#
OPTION:mti_se:vhdl:u:-source -93 -novopt
OPTION:mti_se:vhdl:s:-source -93 -novopt
OPTION:mti_se:vhdl:c:-source -93 -novopt -explicit
OPTION:mti_se:vhdl:r:-source -93 -novopt
OPTION:mti_se:vhdl:i:-source -93 -novopt
OPTION:mti_se:vhdl:e:-93 -novopt -quiet
#
# ModelSim SE options for VERILOG Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vlog -work <library> <OPTION> <file_name>
#
OPTION:mti_se:verilog:u:-source -novopt
OPTION:mti_se:verilog:s:-source -novopt
OPTION:mti_se:verilog:n:-source -novopt
OPTION:mti_se:verilog:c:-source -novopt
OPTION:mti_se:verilog:r:-source -novopt
OPTION:mti_se:verilog:i:-source -novopt
OPTION:mti_se:verilog:e:-novopt -quiet
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: ModelSim PE
SET:mti_pe:MODELSIM=modelsim.ini
#
# ModelSim PE options for VHDL Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vcom -work <library> <OPTION> <file_name>
#
OPTION:mti_pe:vhdl:u:-source -93
OPTION:mti_pe:vhdl:s:-source -93
OPTION:mti_pe:vhdl:c:-source -93 -explicit
OPTION:mti_pe:vhdl:r:-source -93
OPTION:mti_pe:vhdl:i:-source -93
OPTION:mti_pe:vhdl:e:-93 -novopt -quiet
#
# ModelSim PE options for VERILOG Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vlog -work <library> <OPTION> <file_name>
#
OPTION:mti_pe:verilog:u:-source
OPTION:mti_pe:verilog:s:-source
OPTION:mti_pe:verilog:n:-source
OPTION:mti_pe:verilog:c:-source
OPTION:mti_pe:verilog:r:-source
OPTION:mti_pe:verilog:i:-source
OPTION:mti_pe:verilog:e:-novopt -quiet
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: ModelSim DE
SET:mti_de:MODELSIM=modelsim.ini
#
# ModelSim DE options for VHDL Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vcom -work <library> <OPTION> <file_name>
#
OPTION:mti_de:vhdl:u:-source -93 -novopt
OPTION:mti_de:vhdl:s:-source -93 -novopt
OPTION:mti_de:vhdl:c:-source -93 -novopt -explicit
OPTION:mti_de:vhdl:r:-source -93 -novopt
OPTION:mti_de:vhdl:i:-source -93 -novopt
OPTION:mti_de:vhdl:e:-93 -novopt -quiet
#
# ModelSim DE options for VERILOG Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vlog -work <library> <OPTION> <file_name>
#
OPTION:mti_de:verilog:u:-source -novopt
OPTION:mti_de:verilog:s:-source -novopt
OPTION:mti_de:verilog:n:-source -novopt
OPTION:mti_de:verilog:c:-source -novopt
OPTION:mti_de:verilog:r:-source -novopt
OPTION:mti_de:verilog:i:-source -novopt
OPTION:mti_de:verilog:e:-novopt -quiet
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: QuestaSim
SET:questa:MODELSIM=modelsim.ini
#
# QuestaSim options for VHDL Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vcom -work <library> <OPTION> <file_name>
#
OPTION:questa:vhdl:u:-source -93 -novopt
OPTION:questa:vhdl:s:-source -93 -novopt
OPTION:questa:vhdl:c:-source -93 -novopt -explicit
OPTION:questa:vhdl:r:-source -93 -novopt
OPTION:questa:vhdl:i:-source -93 -novopt
OPTION:questa:vhdl:e:-93 -novopt -quiet
#
# QuestaSim options for VERILOG Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# vlog -work <library> <OPTION> <file_name>
#
OPTION:questa:verilog:u:-source -novopt
OPTION:questa:verilog:s:-source -novopt
OPTION:questa:verilog:n:-source -novopt
OPTION:questa:verilog:c:-source -novopt
OPTION:questa:verilog:r:-source -novopt
OPTION:questa:verilog:i:-source -novopt
OPTION:questa:verilog:e:-novopt -quiet
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: ncvhdl
SET:ncsim:CDS=cds.lib
SET:ncsim:HDL=hdl.var
#
# ncvhdl options for VHDL Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# ncvhdl -work <library> <OPTION> <file_name>
#
OPTION:ncsim:vhdl:u:-MESSAGES -v93 -RELAX -NOLOG
OPTION:ncsim:vhdl:s:-MESSAGES -v93 -RELAX -NOLOG
OPTION:ncsim:vhdl:c:-MESSAGES -v93 -RELAX -NOLOG
OPTION:ncsim:vhdl:r:-MESSAGES -v93 -RELAX -NOLOG
OPTION:ncsim:vhdl:i:-MESSAGES -v93 -RELAX -NOLOG
OPTION:ncsim:vhdl:e:-MESSAGES -v93 -RELAX -NOLOG
#
# ncvhdl options for VERILOG Libraries
# Syntax:-
# OPTION:<simulator_name>:<language>:<library>:<options>
# <library> :- u (unisim) s (simprim) c (xilinxcorelib)
# r (coolrunner)
# ncvlog -work <library> <OPTION> <file_name>
#
OPTION:ncsim:verilog:u:-MESSAGES -NOLOG
OPTION:ncsim:verilog:s:-MESSAGES -NOLOG
OPTION:ncsim:verilog:n:-MESSAGES -NOLOG
OPTION:ncsim:verilog:c:-MESSAGES -NOLOG
OPTION:ncsim:verilog:r:-MESSAGES -NOLOG
OPTION:ncsim:verilog:i:-MESSAGES -NOLOG
OPTION:ncsim:verilog:e:-MESSAGES -NOLOG
#
#///////////////////////////////////////////////////////////////////////
# Setup file name: vlogan script version
SET:vcs_mx:SYNOPSYS_SIM=synopsys_sim.setup
#
XWebTalk
This chapter describes the XWebTalk command line utility, which lets you enable or
disable WebTalk data collection. This chapter contains the following sections:
• XWebTalk Overview
• XWebTalk Syntax
• XWebTalk Options
XWebTalk Overview
The WebTalk feature of ISE® Design Suite helps Xilinx® understand how its customers
use Xilinx FPGA devices, software, and Intellectual Property (IP). The information
collected and transmitted by WebTalk allows Xilinx to improve the features most
important to customers as part of its continuing effort to provide products that meet
your current and future needs. WebTalk settings can also be set in ISE Design Suite and
PlanAhead™ by editing user preferences. .
The WebTalk install preference can be set during the ISE Design Suite installation
process. To set WebTalk user preferences, select Edit > Preferences > WebTalk in Project
Navigator or select Tools > Options > General in PlanAhead™. XWebTalk lets you set
both install and user preferences from the command line.
Note WebTalk is always enabled in WebPACK. WebTalk ignores user and install
preference when a bitstream is generated using the WebPACK license. If a design
is using a device contained in WebPACK and a WebPACK license is available, the
WebPACK license will always be used. To change this, see Answer Record 34746.
WebTalk Behavior
This table summarizes WebTalk behavior for data transmission back to Xilinx based on your ISE
Design Suite License and WebTalk install and user preference settings.
XWebTalk Syntax
Following is the command line syntax for XWebTalk:
xwebtalk [options ]
options can be any of the options listed in XWebTalk Options.
XWebTalk Options
This section describes the XWebTalk command line options, and includes the following:
• -user (User)
• -install (Install)
• -info (Information)
-user (User)
This option lets you turn WebTalk on or off on a per user basis.
Syntax
-user on|off
on turns WebTalk on for the current user.
off turns WebTalk off for the current user.
User settings are saved in the following location:
• Windows - %APPDATA%\Xilinx\Common\version\webtalk where %APPDATA%
is C:\Documents and Settings\user\Application Data
• Linux - /home/user/.Xilinx/Common/version/webtalk
Example
xwebtalk -user on
Enables WebTalk for the current user.
-install (Install)
This option lets you turn WebTalk on or off on a per-installation basis.
Syntax
-install on|off
on turns WebTalk on for the installation.
off turns WebTalk off for the installation.
Install settings are saved in the following location:
• Windows - %XILINX%\data\reports\webtalksettings
• Linux - $XILINX/data/reports/webtalksettings
Note You will need administrator privileges to be able to write to the install location.
Example
xwebtalk -install on
Enables WebTalk for an installation
-info (Information)
This option lets you check the current status of WebTalk settings.
Syntax
-info
Example
xwebtalk -info
Lists the current WebTalk settings.
Produced
Name Type By Description
HEX Hex PROMGen Output file from PROMGen that contains a
Command hexadecimal representation of a bitstream
IBS ASCII IBISWriter Output file from IBISWriter that consists of
Command a list of pins used by the design, the signals
internal to the device that connect to those
pins, and the IBIS buffer models for the
IOBs connected to the pins
JED JEDEC CPLDFit Programming file to be downloaded to a
device
LOG ASCII XFLOW Log file containing all the messages
generated during the execution of XFLOW
TRACE (xflow.log)
TRACE (macro.log)
LL ASCII BitGen Optional ASCII logic allocation file with
a .ll extension. The logic allocation file
indicates the bitstream position of latches,
flip-flops, and IOB inputs and outputs.
MEM ASCII User (with User-edited memory file that defines the
text editor) contents of a ROM
MCS Data PROMGen PROM-formatted file in the Intel MCS-86
format
MDF ASCII MAP A file describing how logic was
decomposed when the design was
mapped. The MDF file is used for guided
mapping.
MOD ASCII TRACE File created with the -stamp option
in TRACE that contains timing model
information
MRP ASCII MAP MAP report file containing information
about a technology mapper command run
MSK Data BitGen File used to compare relevant bit locations
when reading back configuration data
contained in an operating Xilinx device
NAV XML NGDBuild Report file containing information about an
NGDBuild run, including the subprocesses
run by NGDBuild. From this file, the user
can click any linked net or instance names
to navigate back to the net or instance in
the source design.
NCD Data MAP, PAR, Flat physical design database correlated to
FPGA Editor the physical side of the NGD in order to
provide coupling back to the users original
design
NCF ASCII CAE Vendor Vendor-specified logical constraints files
toolset
NGA Data NetGen Back-annotated mapped NCD file
NGC Binary XST Netlist file with constraint information.
Produced
Name Type By Description
NGD Data NGDBuild Native Generic Database (NGD) file. This
file contains a logical description of the
design expressed both in terms of the
hierarchy used when the design was first
created and in terms of lower-level Xilinx
primitives to which the hierarchy resolves.
NGM Data MAP File containing all of the data in the input
NGD file as well as information on the
physical design produced by the mapping.
The NGM file is used for back-annotation.
NGO Data Netlist File containing a logical description of the
Readers design in terms of its original components
and hierarchy
NKY Data BitGen Encryption key file
NLF ASCII NetGen NetGen log file that contains information
on the NetGen run
NMC Binary FPGA Editor Xilinx physical macro library file
containing a physical macro definition that
can be instantiated into a design
OPT ASCII XFLOW Options file used by XFLOW
PAD ASCII PAR File containing a listing of all I/O
components used in the design and their
associated primary pins
PAR ASCII PAR PAR report file containing execution
information about the PAR command
run. The file shows the steps taken as the
program converges on a placement and
routing solution
PCF ASCII MAP, FPGA File containing physical constraints
Editor specified during design entry (that is,
schematics) and constraints added by the
user
PIN ASCII NetGen Cadence signal-to-pin mapping file
PNX ASCII CPLDFit File used by the IBISWriter program
to generate an IBIS model for the
implemented design.
PRM ASCII PROMGen File containing a memory map of a PROM
file showing the starting and ending
PROM address for each BIT file loaded
RBT ASCII BitGen Rawbits" file consisting of ASCII ones
and zeros representing the data in the
bitstream file
RPT ASCII PIN2UCF Report file generated by PIN2UCF when
conflicting constraints are discovered. The
name is pinlock.rpt.
RCV ASCII FPGA Editor FPGA Editor recovery file
SCR ASCII FPGA Editor FPGA Editor or XFLOW command script
or XFLOW file
SDF ASCII NetGen File containing the timing data for a
design. Standard Delay Format File
Produced
Name Type By Description
SVF ASCII NetGen Assertion file written for Formality
equivalency checking tool
TCL ASCII User (with Tcl script file
text editor)
TDR ASCII DRC Physical DRC report file
TEK Data PROMGen PROM-formatted file in Tektronixs
TEKHEX format
TV ASCII NetGen Verilog test fixture file
TVHD ASCII NetGen VHDL testbench file
TWR ASCII TRACE Timing report file produced by TRACE
TWX XML TRACE Timing report file produced by TRACE.
From this file, the user can click any linked
net or instance names to navigate back to
the net or instance in the source design.
UCF ASCII User (with User-specified logical constraints file
text editor)
URF ASCII User (with User-specified rules file containing
text editor) information about the acceptable netlist
input files, netlist readers, and netlist
reader options
V ASCII NetGen Verilog netlist
VHD ASCII NetGen VHDL netlist
VM6 Design CPLDFit Output file from CPLDFit
VXC ASCII NetGen Assertion file written for Conformal-LEC
equivalence checking tool
XCT ASCII PARTGen File containing detailed information about
architectures and devices
XTF ASCII Previous Xilinx netlist format file
releases
of Xilinx
software
XPI ASCII PAR File containing PAR run summary
EDIF2NGD Overview
The EDIF2NGD program lets you read an Electronic Data Interchange Format (EDIF) 2 0
0 file into the Xilinx® toolset. EDIF2NGD converts an industry-standard EDIF netlist to
the Xilinx-specific NGO file format. The EDIF file includes the hierarchy of the input
schematic. The output NGO file is a binary database describing the design in terms of
the components and hierarchy specified in the input design file. After you convert the
EDIF file to an NGO file, you run NGDBuild to create an NGD file, which expands the
design to include a description reduced to Xilinx primitives.
EDIF2NGD Syntax
The following command reads your EDIF netlist and converts it to an NGO file:
edif2ngd [options ] edif_file ngo_file
• options can be any number of the EDIF2NGD options listed in EDIF2NGD Options.
Enter options in any order, preceded them with a dash (minus sign on the keyboard)
and separate them with spaces.
• edif_file is the EDIF 2 0 0 input file to be converted. If you enter a file name with
no extension, EDIF2NGD looks for a file with the name you specified and a .edn
extension. If the file has an extension other than .edn, you must enter the extension
as part of edif_file.
Note For EDIF2NGD to read a Mentor Graphics EDIF file, you must have installed
the Mentor Graphics software component on your system. Similarly, to read a
Cadence EDIF file, you must have installed the Cadence software component.
• ngo_file is the output file in NGO format. The output file name, its extension, and its
location are determined in the following ways:
– If you do not specify an output file name, the output file has the same name as
the input file, with an .ngo extension.
– If you specify an output file name with no extension, EDIF2NGD appends the
.ngo extension to the file name.
– If you specify a file name with an extension other than .ngo, you get an error
message and EDIF2NGD does not run.
– If you do not specify a full path name, the output file is placed in the directory
from which you ran EDIF2NGD.
If the output file exists, it is overwritten with the new file.
EDIF2NGD Options
This section describes the EDIF2NGD command line options.
• -a (Add PADs to Top-Level Port Signals)
• -aul (Allow Unmatched LOCs)
• -f (Execute Commands File)
• -intstyle (Integration Style)
• -l (Libraries to Search)
• -p (Part Number)
• -r (Ignore LOC Constraints)
Syntax
-a
In all Mentor Graphics and Cadence EDIF files, PAD symbols are translated into ports.
For EDIF files from either of these vendors, the -a option is set automatically; you do
not have to enter the -a option on the EDIF2NGD command line.
Syntax
-aul
Note When using this option, make sure you do not have misspelled net or instance
names in your design. Misspelled names may cause inaccurate placing and routing.
Syntax
-f command_file
For more information on the -f option, see -f (Execute Commands File) in the
Introduction chapter.
Syntax
-intstyle ise|xflow|silent
When using -intstyle, one of three modes must be specified:
• -intstyle ise indicates the program is being run as part of an integrated design
environment.
• -intstyle xflow indicates the program is being run as part of an integrated
batch flow.
• -intstyle silent limits screen output to warning and error messages only.
Note -intstyle is automatically invoked when running in an integrated environment
such as Project Navigator or XFLOW.
-l (Libraries to Search)
This option specifies a library to search when determining what library components
were used to build the design. This information is necessary for NGDBuild, which must
determine the source of the design components before it can resolve the components to
Xilinx® primitives.
Syntax
-l libname
You may specify multiple -l options on the command line, but Each instance must be
preceded with -l. For example, -l xilinxun synopsys is not acceptable, while -l
xilinxun -l synopsys is acceptable.
The allowable entries for libname are the following.
• xilinxun (For Xilinx Unified library)
• synopsys
Note You do not have to enter xilinxun with a -l option. The Xilinx tools automatically
access these libraries. You do not have to enter synopsys with a -l option if the EDIF
netlist contains an author construct with the string Synopsys. In this case, EDIF2NGD
automatically detects that the design is from Synopsys.
-p (Part Number)
This option specifies the part into which your design is implemented.
Note If you do not specify a part when you run EDIF2NGD, you must specify one
when you run NGDBuild.
Syntax
-p part number
part_number must be a complete Xilinx® part name including device, package and speed
information (example: xc4vlx60-10- ff256).
Note For syntax details and examples, see -p (Part Number) in the Introduction chapter.
Syntax
-r
NGDBuild
NGDBuild performs all the steps necessary to read a netlist file in EDIF format and create
an NGD file describing the logical design. The NGD file resulting from an NGDBuild
run contains both a logical description of the design reduced to NGD primitives and a
description in terms of the original hierarchy expressed in the input netlist. The output
NGD file can be mapped to the desired device family.
This program is compatible with the following families:
• Virtex®-4
• Virtex-5
• Spartan®-3
• Spartan-3A
• Spartan-3E
• CoolRunner™ XPLA3
• CoolRunner-II
• XC9500 series
When NGDBuild reads the source netlist, it detects any files or parts of the design that
have changed since the last run of NGDBuild. It updates files as follows:
• If you modified your input design, NGDBuild updates all of the files affected by the
change and uses the updated files to produce a new NGD file.
The Netlist Launcher checks timestamps (date and time information) for netlist files
and intermediate NGDBuild files (NGOs). If an NGO file has a timestamp earlier
than the netlist file that produced it, the NGO file is updated and a new NGD file
is produced.
• NGDBuild completes the NGD production if all or some of the intermediate
files already exist. These files may exist if you ran a netlist reader before you
ran NGDBuild. NGDBuild uses the existing files and creates the remaining files
necessary to produce the output NGD file.
Note If the NGO for an netlist file is up to date, NGDBuild looks for an NCF file with
the same base name as the netlist in the netlist directory and compares the timestamp of
the NCF file against that of the NGO file. If the NCF file is newer, EDIF2NGD is run
again. However, if an NCF file existed on a previous run of NGDBuild and the NCF file
was deleted, NGDBuild does not detect that EDIF2NGD must be run again. In this case,
you must use the -nt on option to force a rebuild. The -nt on option must also be
used to force a rebuild if you change any of the EDIF2NGD options.
Syntax, files, and options for NGDBuild are described in the NGDBuild chapter.
Bus Matching
When NGDBuild encounters an instance of one netlist within another netlist, it requires
that each pin specified on the upper-level instance match to a pin (or port) on the
lower-level netlist. Two pins must have exactly the same name in order to be matched.
This requirement applies to all FPGAs and CPLDs supported for NGDBuild.
If the interface between the two netlists uses bused pins, these pins are expanded
into scalar pins before any pin matching occurs. For example, the pin A[7:0] might
be expanded into 8 pins named A[7] through A[0]. If both netlists use the same
nomenclature (that is, the same index delimiter characters) when expanding the bused
pin, the scalar pin names will match exactly. However, if the two netlists were created by
different vendors and different delimiters are used, the resulting scalar pin names do
not match exactly.
In cases where the scalar pin names do not match exactly, NGDBuild analyzes the pin
names in both netlists and attempts to identify names that resulted from the expansion
of bused pins. When it identifies a bus-expanded pin name, it tries several other
bus-naming conventions to find a match in the other netlist so it can merge the two
netlists. For example, if it finds a pin named A(3) in one netlist, it looks for pins named
A(3), A[3], A<3> or A3 in the other netlist.
The following table lists the bus naming conventions understood by NGDBuild.
If your third-party netlist writer allows you to specify the bus-naming convention,
use one of the conventions shown in the preceding table to avoid pin mismatch errors
during NGDBuild. If your third-party EDIF writer preserves bus pins using the EDIF
array construct, the bus pins are expanded by EDIF2NGD using parentheses, which is
one of the supported naming conventions.
Note NGDBuild support for bused pins is limited to this understanding of different
naming conventions. It is not able to merge together two netlists if a bused pin has
different indices between the two files. For example, it cannot match A[7:0] in one
netlist to A[15:8] in another.
In the Xilinx® UnifiedPro library, some of the pins on the block RAM primitives are
bused. If your third-party netlist writer uses one of the bus naming conventions listed in
the preceding table or uses the EDIF array construct, these primitives are recognized
properly by NGDBuild. The use of any other naming convention may result in an
unexpanded block error during NGDBuild.
When NGDBuild is invoked, the Netlist launcher goes through the following steps:
1. The Netlist Launcher initializes itself with a set of rules for determining what netlist
reader to use with each type of netlist, and the options with which each reader is
invoked.
The rules are contained in the system rules file (described in System Rules File) and
in the user rules file (described in User Rules File).
2. NGDBuild makes the directory of the top-level netlist the first entry in the Netlist
Launchers list of search paths.
3. For the top-level design and for each file referenced in the top-level design,
NGDBuild queries the Netlist Launcher for the presence of the corresponding
NGO file.
4. For each NGO file requested, the Netlist Launcher performs the following actions:
• Determines what netlist is the source for the requested NGO file
The Netlist Launcher determines the source netlist by looking in its rules
database for the list of legal netlist extensions. Then, it looks in the search
path (which includes the current directory) for a netlist file possessing a legal
extension and the same name as the requested NGO file.
• Finds the requested NGO file
The Netlist Launcher looks first in the directory specified with the -dd option
(or current directory if a directory is not specified). If the NGO file is not
found there and the source netlist was not found in the search path, the Netlist
Launcher looks for the NGO file in the search path.
• Determines whether the NGO file must be created or updated
If neither the netlist source file nor the NGO file is found, NGDBuild exits with
an error.
If the netlist source file is found but the corresponding NGO file is not found,
the Netlist Launcher invokes the proper netlist reader to create the NGO file.
If the netlist source file is not found but the corresponding NGO file is found,
the Netlist Launcher indicates to NGDBuild that the file exists and NGDBuild
uses this NGO file.
If both the netlist source file and the corresponding NGO file are found, the
netlist files time stamp is checked against the NGO files timestamp. If the
timestamp of the NGO file is later than the source netlist, the Netlist Launcher
returns a found status to NGDBuild. If the timestamp of the NGO file is earlier
than the netlist source, or the NGO file is not present in the expected location,
then the Launcher creates the NGO file from the netlist source by invoking
the netlist reader specified by its rules.
Note The timestamp check can be overridden by options on the NGDBuild
command line. The -nt on option updates all existing NGO files, regardless of
their timestamps. The -nt off option does not update any existing NGO
files, regardless of their timestamps.
5. The Netlist launcher indicates to NGDBuild that the requested NGO files have been
found, and NGDBuild can process all of these NGO files.
The system rules file contains the default rules supplied by Xilinx®. The user rules file
can add to or override the system rules.
RuleName = EDN_RULE;
NetlistFile = .edn;
TargetExtension = .ngo;
Netlister = edif2ngd;
NetlisterTopOptions = "[$IGNORE_LOCS] [$ADD_PADS] [$QUIET] [$AUL] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterOptions = "-noa [$IGNORE_LOCS] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterDirectory = NONE;
NetlisterSuccessStatus = 0;
RuleName = EDF_RULE;
NetlistFile = .edf;
TargetExtension = .ngo;
Netlister = edif2ngd;
NetlisterTopOptions = "[$IGNORE_LOCS] [$ADD_PADS] [$QUIET] [$AUL] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterOptions = "-noa [$IGNORE_LOCS] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterDirectory = NONE;
NetlisterSuccessStatus = 0;
RuleName = EDIF_RULE;
NetlistFile = .edif;
TargetExtension = .ngo;
Netlister = edif2ngd;
NetlisterTopOptions = "[$IGNORE_LOCS] [$ADD_PADS] [$QUIET] [$AUL] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterOptions = "-noa [$IGNORE_LOCS] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterDirectory = NONE;
NetlisterSuccessStatus = 0;
RuleName = SYN_EDIF_RULE;
NetlistFile = .sedif;
TargetExtension = .ngo;
Netlister = edif2ngd;
NetlisterTopOptions = NONE;
NetlisterOptions = "-l synopsys [$IGNORE_LOCS] {-l $LIBRARIES} $INFILE $OUTFILE";
NetlisterDirectory = NONE;
NetlisterSuccessStatus = 0;
The EDF_RULE instructs the Netlist Launcher to use EDIF2NGD to translate an EDIF
file to an NGO file. If the top-level netlist is being translated, the options defined in
NetlisterTopOptions are used; if a lower-level netlist is being processed, the options
defined by NetlisterOptions are used. Because NetlisterDirectory is NONE, the Netlist
Launcher runs EDIF2NGD in the current working directory (the one from which
NGDBuild was launched). The launcher expects EDIF2NGD to issue a return code of 0 if
it was successful; any other value is interpreted as failure.
Note If EDF_LIB_RULE (from the example in Example 3: User Rule) and this rule
were both in the user rules file, STATE_EDF_RULE includes the modifications made
by EDF_LIB_RULE. So a lower-level state.edf is translated by running state2ngd
with the -l xilinxun option.
Tcl Reference
This chapter provides information on the Xilinx® Tcl command language and contains
the following sections:
• Tcl Overview
• Tcl Fundamentals
• Project and Process Properties
• Tcl Commands for General Use
• Tcl Commands for Advanced Scripting
• Example Tcl Scripts
Tcl Overview
Tool Command Language (Tcl) is an easy to use scripting language and an industry
standard popular in the electronic design automation (EDA) industry.
The Xilinx® software Tcl command language is designed to complement and extend
the ISE® graphical user interface (GUI). For new users and projects, the GUI provides
an easy interface to set up a project, perform initial implementations, explore available
options, set constraints, and visualize the design. Alternatively, for users who know
exactly what options and implementation steps they wish to perform, the Xilinx Tcl
commands provide a batch interface that makes it convenient to execute the same
script or steps repeatedly. Since the syntax of the Xilinx Tcl commands match the GUI
interaction as closely as possible, Xilinx Tcl commands allow an easy transition from
using the GUI to running the tools in script or batch mode.
Tcl Fundamentals
Each Tcl command is a series of words, with the first word being the command name.
For Xilinx Tcl commands, the command name is either a noun (e.g., project) or a verb
(e.g., search). For commands that are nouns, the second word on the command line is
the verb (e.g., project open). This second word is called the subcommand.
Subsequent words on the command line are additional parameters to the command. For
Xilinx Tcl commands, required parameters are positional, which means they must always
be specified in an exact order and follow the subcommand. Optional parameters follow
the required parameters, can be specified in any order, and always have a flag that starts
with "-" to indicate the parameter name; for example, -instance <instance-name> .
Tcl is case sensitive. Xilinx® Tcl command names are always lower case. If the name
is two words, the words are joined with an underscore (_). Even though Tcl is case
sensitive, most design data (e.g., an instance name), property names, and property
values are case insensitive. To make it less burdensome to type at the command prompt,
unique prefixes are recognized when typing a subcommand, which means only typing
the first few letters of a command name is all that is required for it to be recognized.
To get the most from this Tcl reference, it is best to understand some standard Tcl
commands.
• set - Used to assign values to variables and properties. set takes 2 arguments:
the name of the variable followed by the argument to be assigned to that variable.
Since Tcl variables are "type-less", it is not necessary to declare a variable or its
type before using it.
% set fruit apple; # assigns the value "apple" to the variable
named "fruit"
• $ (dollar sign) - Used to substitute a variable’s value for its name. Using the previous
example, consider the variable’s name as well as its value:
% puts fruit; # this prints the word "fruit"
% puts $fruit; # this prints the value of the variable fruit:
the word "apple."
• [ ] (square brackets) - The result of one command can be substituted directly as
input into another command. Using the square brackets, you can nest commands,
because Tcl interprets everything between the brackets and substitutes its result.
• more substitution - Tcl provides several ways to delimit strings that contain spaces
or other special characters and to manage substitution. Double quotes (") allow
some special characters ([ ] and $) for substitution. Curly braces { } perform no
substitutions.
• Tcl and backslashes - The backslash ( \ ) has a special meaning in Tcl, thus it
will not behave as you expect if you paste DOS style path names, which contain
backslashes, into Tcl commands. It is recommended that you specify all path names
using forward slashes within Tcl commands and scripts.
The real power of Tcl is unleashed when it is used for nested commands and for scripting.
The result of any command can be stored in a variable, and the variable (or the command
result substituted within square brackets) can be nested as input to other commands.
For more information about Tcl in general, please refer to Tcl documentation easily
available on the internet, for example: http://www.tcl.tk/doc/, which is the website for
the Tcl Developer Xchange. If you wish to review sample scripts made up of standard
Tcl commands, refer to "Sample Standard Tcl Scripts" within the Example Tcl Scripts
section at the end of this chapter. Further tutorials and examples are available at the Tcl
Developer Xchange: http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html.
Xilinx Namespace
All Xilinx® Tcl commands are part of the Tcl namespace xilinx::. If another Tcl
package uses a command name that conflicts with a Xilinx-specific Tcl command name,
the Xilinx namespace must be used to access the command. For example, type the
following to create a new project using Xilinx-specific Tcl commands:
% xilinx::project new <project_name>
It is only necessary to specify the Xilinx namespace when you have more than one
namespace installed.
Note In many cases, the properties listed in the following tables are dependent
properties. This means that a particular property setting may not be available unless a
different, related property has been set. If you try to set a property, yet it is not available,
a warning message will inform you that it is dependent on another property.
Project Properties
Project Properties
Property Name Description
family The device family into which you will implement your design
device The device (within previously-specified device family) to use
for the project.
package The package (available for previously-specified device) to use
for the project.
speed The device speed grade.
"Top-Level Source Type" The source type of the top-level module in your design.
Choices are: HDL, EDIF, Schematic, and NGC/NGO.
also: top_level_module_type
"Synthesis Tool" The synthesis tool for ISE® Design Suite to use when
synthesizing your sources. The default is XST, but partner
synthesis tools are available if they are installed.
Simulator Specify the integrated simulator for the ISE Design Suite to
use (ISim or ModelSim XE), or specify from a larger selection
of external simulators as target for ISE Design Suite-generated
simulation netlists and files.
"Preferred Language" The HDL language that you wish the ISE Design Suite to use
when generating simulation netlists and other intermediate
files. If your synthesis tool and simulator only support one
language, that is your default.
Top Identify which source file is the top-level module in your
design hierarchy.
name Name of the project
"Use SmartGuide" Enables or disables SmartGuide™ functionality. Choices are:
TRUE or FALSE.
"SmartGuide Filename" If you wish to specify a different guide file (other than the
default previous placed and routed NCD), you may specify
the file with this property. The value must be a placed and
routed NCD file. This is a dependent property on the "Use
SmartGuide" property.
NGDBuild
Property Default Command-Line
Name Type Allowed Values Value Equivalent
Command Line are not already
Options" set through other
properties
set
xfile add
(manage project files) get
properties
remove
set
Syntax
% lib_vhdl subcommand
Available subcommands are:
• new (create a new library)
• delete (delete a library)
• add_file (add a source file to a library)
• properties (get the list of library properties)
• get (get a library property value)
Syntax
% lib_vhdl add_file library_name file_name
lib_vhdl is the Tcl command name.
add_file is the subcommand name.
library_name specifies the name of the VHDL library.
file_name specifies the name of the project source file.
Example
% lib_vhdl add_file mylib top.vhd
This example adds the source file, top.vhd, to the mylib library.
Tcl Return
True if the file was added successfully; otherwise an ERROR message appears.
Syntax
% lib_vhdl delete library_name
lib_vhdl is the Tcl command name.
delete is the subcommand name.
library_name specifies the name of the library to delete.
Example
% lib_vhdl delete mylib
This example deletes the mylib library from the current project.
Tcl Return
True if the library was deleted successfully; otherwise an ERROR message appears.
To get a list of all library properties, use lib_vhdl properties (get list of library properties).
Syntax
% lib_vhdl get library_name property_name
lib_vhdl is the Tcl command name.
get is the subcommand name.
library_name specifies the name of the library.
property_name specifies the name of the library property. Valid property names are
name and files.
Example 1
% lib_vhdl get mylib name
This example returns the name of the mylib library.
Example 2
% lib_vhdl get mylib files
This example returns the list of files in the mylib library.
Tcl Return
The property value if successful; otherwise an ERROR message.
Syntax
% lib_vhdl new library_name
lib_vhdl is the Tcl command name.
new is the subcommand name.
library_name specifies the name of the library you wish to create.
Example
% lib_vhdl new mylib
This example creates a new VHDL library named mylib and adds it to the current project.
Tcl Return
True if the library was created successfully; otherwise ERROR message appears.
To see the value of a specific library property, use lib_vhdl get (get the library property
value).
Syntax
% lib_vhdl properties
lib_vhdl is the Tcl command name.
properties is the subcommand name.
Example
% lib_vhdl properties
This example returns a list of library properties.
Tcl Return
A list of properties if successful; otherwise an ERROR message.
Syntax
% process subcommand
Available subcommands are:
• get (get the value of the specified property for a process)
• properties (list process properties)
• run (run process task)
• set (set the value of the specified property on a process)
process get (get the value of the specified property for a process)
This command gets the status of the specified process task.
Note The list of available processes changes based on the source file you select. Use
the % project get_processes command to get a list of available processes. Type %
help project get_processes for more information.
Syntax
% process get process_task property_name
process is the Tcl command name.
get is the subcommand name.
process_task specifies the name of one of the process tasks for which to get the property.
Process tasks are listed in the Processes pane of the Design panel in Project Navigator.
The list of available processes changes based on the source file you select. Use the %
project get_processes command to get a list of available processes. Type % help
project get_processes for more information.
property_name is the name of the property. Valid properties for this command are
"status" and "name."
Example 1
% process get "Map" status
This example gets the current status of the Map process.
Example 2
% process get "place" name
This example gets the full name of the process that starts with the string "place". The
returned value will be "Place & Route".
Tcl Return
The value of the specified property as a text string.
Syntax
% process properties
process is the Tcl command name.
properties is the subcommand name.
Example
% process properties
This example lists all process properties.
Tcl Return
The available process properties as a Tcl list.
Syntax
% process run process_task [-instance instance_name ] [-force {
rerun | rerun_all }]
process is the Tcl command name.
run is the subcommand name.
process_task specifies the name of the process task to run. Process tasks are listed in the
Project Navigator Process pane.
-instance is the option to limit the search for processes to the specified instance_name.
instance_name specifies the name of the instance to limit search of the process_task for.
The default is the top-level instance.
-force is the option to force the re-implementation of the specified process regardless
of the current state of the process.
rerun reruns the processes and updates input data as necessary, by running any
dependent processes that are out-of-date.
rerun_all reruns the processes and all dependent processes back to the source data,
as defined by the specified process goal. All processes are run whether they are out
of date or not.
Example 1
% process run "Translate"
This example runs the "Translate" process.
Example 2
% process run "Implement Design" -force rerun_all
This example forces the re-implementation of the entire design, regardless of whether all
source files are up-to-date or not.
Tcl Return
True if the process was successful; false otherwise.
Syntax
% process set process_task property_name property_value
process is the Tcl command name.
set is the subcommand name.
process_task specifies the name of one of the process tasks on which the property needs to
be set. Process tasks are listed in the Process window in Project Navigator.
property_name is the name of the property. Currently, the only property supported for
this command is "status".
property_value specifies the name of the property value. The list of property values
are:-"up_to_date"
Example
% process set "Map" status up_to_date
This example forces the up_to_date status on the Map process. If the MAP process was
out_of_date for some reason, this command will force the MAP process to be up_to_date
and in ISE® Project Navigator, a green tick will be displayed by the process name.
Tcl Return
The value of the property set as a text string.
Syntax
% project subcommand
Available subcommands are:
• archive (archive all files belonging to the current ISE project)
• clean (remove system-generated project files)
• close (close the ISE project)
• get (get project properties)
• get_processes (get project processes)
• new (create a new ISE project)
• open (open an ISE project)
• properties (list project properties)
• set (set project properties, values, and options)
– set device (set device)
– set family (set device family)
– set package (set device package)
– set speed (set device speed)
– set top (set the top-level module or entity)
Syntax
% project archive archive_name
project is the Tcl command name.
archive is the subcommand name.
archive_name is the name of the archive that all files will be saved to. Typically, the
archive file has a .zip extension. If no extension is specified, .zip is assumed.
Caution! If the specified archive name already exists, the existing archive is overwritten.
Example
% project archive myarchive.zip
This example archives all files in the current project. The name of the archive is
myarchive.zip.
Tcl Return
True if the project is archived successfully; false otherwise.
Syntax
% project clean
project is the Tcl command name.
clean is the subcommand name.
Caution! The project clean command permanently deletes all system-generated files
from the current project. These files include the NGD, NGA, and NCD files generated
by the implementation tools.
Example
% project clean
This example cleans the current project. All temporary and system-generated files are
removed.
Tcl Return
True if the project is cleaned successfully; false otherwise.
Syntax
% project close
project is the Tcl command name.
close is the subcommand name.
Example
% project close
This example closes the current project.
Tcl Return
True if the project is closed successfully; false otherwise.
Syntax
% project get {option_name|property_name } [-process
process_name ] [-instance instance_name ]
project is the Tcl command name.
get is the subcommand name.
option_name specifies the name of the batch application option you wish to get the
value of, such as Map Effort Level. Batch application options are entered as strings
distinguished by double quotes (""). You can specify either the exact text representation
of the option in Project Navigator, or a portion. If only a portion, this command attempts
to complete option_name or lists an error message if a unique option_name is not found.
property_name specifies the name of the property you wish to get the value of. Valid
property names are family, device, generated_simulation_language, package, speed,
and top.
-process is the command that limits the properties listed to only those for the specified
process. By default, the properties for all synthesis and implementation processes are
listed. You can also specify "all" to list the properties for all project processes.
process_name specifies the name of the process for which the value of option_name is
to be obtained.
-instance is the command to limit the search for the option_name to the specified
instance_name.
instance_name specifies the name of the instance to look for the option_name. This is
only needed if you want to limit search of the option_name to processes applicable to
instance_name, which may only be part of the design. It is necessary to specify the full
hierarchical instance name; the default is the top-level instance.
Example
% project get speed
This example gets the value of the speed grade that was set with the "project set speed"
command.
Tcl Return
The property value as a text string.
Syntax
% project get_processes [-instance instance_name ]
project is the Tcl command name.
get_processes is the subcommand name.
-instance limits the properties listed to only those of the specified instance. If no
instance is specified, the top-level instance is used by default.
instance_name specifies the name of the instance you wish to know the available
processes for.
Example
% project get_processes -instance /stopwatch/Inst_dcm1
This example lists all of the available processes for only the instance
/stopwatch/Inst_dcm1.
Tcl Return
The available processes as a Tcl list.
Syntax
% project new project_name
project is the Tcl command name.
new is the subcommand name.
project_name specifies the name for the project you wish to create. If an .ise extension is
not specified, it is assumed.
Example
% project new watchver.ise
Tcl Return
The name of the new project.
Syntax
% project open project_name
project is the Tcl command name.
open is the subcommand name.
project_name specifies the name for the project you wish to open. If a .ise extension is
not specified, it is assumed.
Example
% project open watchver.ise
This example opens the watchver.ise project in the current directory.
Tcl Return
The name of the open project.
Syntax
% project properties [-process process_name ] [-instance
instance_name ]
project is the Tcl command name.
properties is the subcommand name.
-process process_name limits the properties listed to only those for the specified
process. By default, the properties for all synthesis and implementation processes are
listed. You can also specify "all" to list the properties for all project processes.
-instance instance_name limits the properties listed to only those of the specified
instance. If no instance name is specified, the properties for the top-level instance are
listed. You can also specify "top" to specify the top-level instance. Otherwise, it is
necessary to specify the full hierarchical instance name.
Note To get processes information for a specific instance, use the % project
get_processes command. To get property information for specific properties such as
family, device, and speed, use the % project get command.
Example
% project properties -process all
This example lists the properties for all of the available processes for the current project.
Tcl Return
The available process properties as a Tcl list, which includes among others a list of all
properties for XST (synthesis), NGDBuild (translate), MAP, ReportGen, TRACE, and
BitGen.
Syntax
% project set property_name property_value [-process
process_name ] [-instance instance_name ]
project is the Tcl command name.
set is the subcommand name.
property_name specifies the name of the property, variable or batch application option.
property_value specifies the value of the property, variable, or batch application option.
-process process_name limits the property search to only those for the specified process.
By default, the properties for all synthesis and implementation processes are listed. You
can also specify -process all to list the properties for all project processes.
-instance instance_name limits the property search to only those of the specified
instance. If no instance name is specified, the properties for the top-level instance are
listed. You can also specify -instance top to specify the top-level instance. You must
specify the full hierarchical name of the instance.
Note Some batch application options only work when other options are specified. For
example, in XST, the Synthesize Constraints File option only works if the Use Synthesis
Constraints File option is also specified. Batch application options are entered as strings
distinguished by double quotes (""). You can specify either the exact text representation
of the option in Project Navigator, or a portion. If a portion, this command attempts to
complete the option_name or lists an error message if a unique option_name is not found.
Note For VHDL based sources, the top level source is set using the architecture_name
entity_name. See the example below.
Example 1
% project set top /stopwatch/sixty
This example sets the top level source to the instance named "sixty"
Example 2
% project set top inside cnt60
This example sets the top level source to the instance corresponding to the architecture
named "inside" and entity named "cnt60"
Example 3
% project set "Map Effort Level" High
This example sets the map effort level to high.
Tcl Return
The value of the newly set option.
Syntax
% xfile subcommand
Available subcommands are:
• add (add files to project)
• get (get project file properties)
• properties (list file properties)
• remove (remove files from project)
• set (set the value of the specified property for file)
Syntax
% xfile add file_name [-copy] [-lib_vhdl library_name ] [-view
view_type ] [-include_global]
xfile is the Tcl command name.
add is the subcommand name.
file_name specifies the name of the source file(s) you wish to add to the current project.
Wildcards can be used to specify one or more files to add to the project. Tcl commands
support wildcard characters, such as "*" and "?". Please consult a Tcl manual for more
information on wildcards.
-copy is the optional argument for copying files to the current project.
-lib_vhdl specifies the option to add the file(s) to an existing VHDL library.
library_name is the name of the VHDL library.
-view specifies the option to set the view-type for the source file.
view_type specifies the name of the view-type. Values are:-"All" "Implementation"
"Simulation" "None".
-include_global tells xfile to increment the compile order sequence ID for each of
the sources added to the project.
Example 1
% xfile add alu.vhd processor.vhd alu.ucf
This example adds the alu.vhd, processor.vhd and alu.ucf files to the current
project.
Example 2
% xfile add *.v
This example adds all of the Verilog files from the current directory to the current project.
Example 3
% xfile add test.vhd -lib_vhdl mylib
This example adds the test.vhd source file to the current project. The command also
adds this file to the "mylib" library.
Example 4
% xfile add test_tb.vhd -view "Simulation"
This example adds the test_tb.vhd source file to the simulation view ONLY in the
current project.
Tcl Return
True if the file was added successfully; otherwise false.
Syntax
% xfile get file_name {name|timestamp|include_global}
xfile is the Tcl command name.
get is the subcommand name.
file_name specifies the name of the source file to get the name or timestamp information
on.
name if specified, returns the full path of the specified file.
timestamp if specified, returns the timestamp of when the file was first added to the
project with the xfile add command.
include_global if specified returns the status of the compile order tag (true if the file is
part of the compile order list and false if it is not).
Example
% xfile get stopwatch.vhd timestamp
This example gets the timestamp information for the stopwatch.vhd file.
Tcl Return
The value of the specified property as a text string.
Syntax
% xfile properties
xfile is the Tcl command name.
properties is the subcommand name.
Note To get a list of all files in the project, use the search command
Example
% xfile properties
This example lists the available properties of files in the current project.
Tcl Return
The available file properties as a Tcl list.
Note The files are not deleted from the physical location (disk).
Syntax
% xfile remove file_name
xfile is the Tcl command name.
remove is the subcommand name.
file_name specifies the names of the files you wish to remove from the project. Wild cards
are not supported (use a Tcl list instead as shown in Example 3 below).
Example 1
% xfile remove stopwatch.vhd
This example removes stopwatch.vhd from the current project.
Example 2
% xfile remove alu.vhd processor.vhd
This example removes alu.vhd and processor.vhd from the current project.
Example 3
% xfile remove [ search *memory*.vhd -type file ]
This example removes all VHDL files with "memory" in the file name from the current
project.
• The command in brackets uses wildcards to create a Tcl list of file names containing
“memory.”
• The list is then used to remove these files from the project.
Example 4
% set file_list [ list alu.v processor.v ]
% xfile remove $file_list
This example removes alu.v and processor.v from the current project.
• The first command creates a Tcl list named file_list containing the files alu.v and
processor.v.
• The second command removes the files in the list from the project.
Tcl Return
true if the file(s) were removed successfully; false otherwise.
xfile set (set the value of the specified property for file)
This command sets property values for the specified file within the current ISE® project.
The only property supported for this command is "lib_vhdl"
Syntax
% xfile set file_name property_name property_value
xfile is the Tcl command name.
Example 1
% xfile set stopwatch.vhd lib_vhdl mylib
This example sets the lib_vhdl information for the stopwatch.vhd file and adds it to
the "mylib" library.
Example 2
% xfile set stopwatch.vhd include_global true
This example adds stopwatch.vhd to the compile order list. To remove a file from the
list, use include_global true
Tcl Return
The new value of the specified property as a text string.
Syntax
% globals subcommand
Available subcommands are:
• get (get global property/data)
• set (set global property/data)
• properties (list global properties/data)
• unset (unset global property/data)
Syntax
% globals get property_name
globals is the Tcl command name.
get is the subcommand name.
property_name specifies the name of one of the global properties/data.
Example
% globals get display_type
This example returns the value of global property ’display_type’.
Tcl Return
The value of the specified property.
Syntax
% globals properties
globals is the Tcl command name.
properties is the subcommand name.
Example
% globals properties
This example returns the list of available global properties.
Tcl Return
The available globals properties as a Tcl list.
Syntax
% globals set property_name property_value
globals is the Tcl command name.
set is the subcommand name.
property_name specifies the name of one of the global properties/data.
property_value specifies the value for property.
Example
% globals set display_type 1
This example sets the value of global property ’display_type’ to 1.
Tcl Return
The value of the specified property.
Syntax
% globals unset property_name
globals is the Tcl command name.
unset is the subcommand name.
property_name specifies the name of one of the global properties/data.
Example
% globals unset display_type
This example deletes the global property ’display_type’.
Tcl Return
The value of the specified property.
Syntax
% collection subcommand
Syntax
% collection append_to collection_variable objects_to_append
[-unique]
collection is the Tcl command name.
append_to is the subcommand name.
collection_variable specifies the name of the collection variable, which references the
collection. If the collection variable does not exist, then it is created.
objects_to_append specifies an object or a collection of objects to be added to the collection.
-unique optionally adds only objects that are not already in the collection. If the
-unique option is not used, then duplicate objects may be added to the collection.
Example
% collection append_to colVar [search * -type instance]
This example creates a new collection variable named colVar. The nested search
command returns a collection of all the instances in the current design. These instances
are objects that are added to the collection, referenced by the colVar collection variable.
Tcl Return
A collection of objects.
Syntax
collection copy collection_variable
collection is the Tcl command name.
copy is the subcommand name.
collection_variable specifies the name of the collection to copy.
Tcl Return
A new collection.
Syntax
% collection equal colVar_1 colVar_2 [-order_dependent]
Example
% set colVar_1 [search * -type instance]
% set colVar_2 [search /top/T* -type instance]
% collection equal $colVar_1 $colVar_2
This example compares the contents of two collections.
• The first command assign a collection of instances to the collection variable colVar_1.
• The second command assigns another collection of filtered instance names to the
collection variable colVar_2.
• The third command compares the two collections. The dollar sign ($) syntax is used
to obtain the values of the collection variables. In this case, the values of colVar_1
and colVar_2 to determine if they are equal.
Tcl Return
0 if the collections are not the same, 1 if the collections are the same.
Syntax
% collection foreach iterator_variable collection_variable
{body}
collection is the Tcl command name.
foreach is the subcommand name.
iterator_variable specifies the name of the iterator variable.
collection_variable specifies the name of the collection to iterate through.
body specifies a set of commands or script to execute at each iteration.
Caution! You cannot use the standard Tcl-supplied foreach command to iterate over
collections. You must use the Xilinx®-specific collection foreach command. Using the
Tcl-supplied foreach command may cause the collection to be deleted.
Example
% set colVar [search * -type instance]
% collection foreach itr $colVar {puts [object name $itr]}
This example iterates through the objects of a collection.
• The first command assigns a collection of instances to the colVar collection variable.
• The second line iterates through each object in the colVar collection, where itr is the
name of the iterator variable. Curly braces { } enclose the body, which is the script
that executes at each iteration. Note that the object name command is nested in the
body to return the value of the iterator variable, which is an instance in this case.
Tcl Return
An integer representing the number of times the script was executed
Syntax
% collection get property_name
collection is the Tcl command name.
get is the subcommand name.
property_name specifies the name of the property you wish to get the value of. Valid
property names for the collection get command are display_line_limit and display_type.
Note See also the collection set command.
Example
% collection get display_type
This example gets the current setting of the display_type property.
Tcl Return
The set value of the specified property.
Syntax
% collection index collection_variable index_value
collection is the Tcl command name.
index is the subcommand name.
collection_variable specifies the collection to be used for index.
index_value specifies the index into the collection. Index values are 0 to one minus the
size of the collection. Use the collection sizeof command to determine the size of the
collection.
Note Xilinx®-specific Tcl commands that create a collection of objects do not impose a
specific order on the collection, but they do generate the objects in the same, predictable
order each time. Applications that support sorting collections, can impose a specific
order on a collection.
Example
% set colVar [search * -type instance]
% set item [collection index $colVar 2]
% object name $item
This example extracts the third object in the collection of instances.
• The first command creates a collection variable named colVar. The nested search
command defines the value of the collection for colVar, which in this case is all
of the instances in the current design.
• The second command creates a variable named item. The nested collection index
command obtains the third object (starting with index 0, 1, 2 . . .) in the given
collection.
• The last command returns the value of the item variable, which is the specified
value of index.
Tcl Return
The object at the specified index.
Syntax
% collection properties
collection is the Tcl command name.
properties is the subcommand name.
There are two collection properties: display_line_limit and display_type. These
properties are supported with the collection get and collection set commands.
Note See the collection get command for a list of available properties.
Example
% collection properties
This example displays a list of available collection properties. It returns
display_line_limit and display_type.
Tcl Return
A list of available collection properties.
Syntax
% collection remove_from collection_variable objects_to_remove
collection is the Tcl command name.
remove_from is the subcommand name.
collection_variable specifies the name of the collection variable.
objects_to_remove specifies a collection of objects, or the name of an object that you wish
to remove from the collection.
Example
% set colVar_1 [search * -type instance]
% set colVar_2 [search /stopwatch/s* -type instance]
% set colVar_3 [collection remove_from colVar_1 $colVar_2]
In this example, the objects in colVar_2 are removed from colVar_1.
• The first command creates the collection variable colVar_1.
• The second command creates the collection variable colVar_2.
• The last command creates a third collection variable, colVar_3 that contains all of
the instances in colVar_1, but no instances in colVar_2.
Tcl Return
The original collection modified by removed elements.
Syntax
% collection set property_name property_value
collection is the Tcl command name.
set is the subcommand name.
property_name is the property name for all of the collection variables in the current project.
property_value is the property value for all of the collection variables in the current project.
There are two available property settings for the collection set command
• display_line_limit - specifies the number of lines that can be displayed by a
collection variable. This property setting is useful for very large collections, which
may have thousands, if not millions of objects. The default value for this property is
100. The minimum value is 0. There is no maximum value limit for this property.
• display_type - instructs Tcl to include the object type in the display of objects
from any specified collection variable. Values for this property are true and false.
By default, this option is set to false, which means object types are not displayed.
See the example below.
Example
% collection set display_type true
This example sets the property name and value for all collection variables in the project,
where display_type is the name of the property setting and true is the value for the
property.
Tcl Return
The value of the property.
Syntax
% collection sizeof collection_variable
collection is the Tcl command name.
sizeof is the subcommand name.
collection_variable specifies the name of the collection for Tcl to return the size of.
Example
% collection sizeof $colVar
This example returns the size of the collection, which is referenced by the colVar
collection variable.
Tcl Return
An integer representing the number of items in the specified collection.
Syntax
% object subcommand
Available subcommands are:
• get (get object properties)
• name (name of the object)
• properties (list object properties)
• type (type of object)
Syntax
% object get obj property_name
object is the Tcl command name.
get is the subcommand name.
obj specifies the object to get the property of.
property_name specifies the name of one of the properties of an object.
The properties of an object vary depending on the type of object. Use the object
properties command to get a list of valid properties for a specific object.
Example
% set colVar [search * -type instance]
% collection foreach obj $colVar {
set objProps [object properties $obj]
foreach prop $objProps {
puts [object get $obj $prop]
}
}
This example first runs a search to create a collection of all instances in the project. The
second statement iterates through the objects in the collection. For each object, the list of
available properties on the object are obtained by the object properties command. Then,
the value of each property for each of the objects is returned.
Tcl Return
The value of the specified property.
Syntax
% object name obj
object is the Tcl command name.
name is the subcommand name.
obj object whose name is to be returned.
Example
% set colVar [search * -type instance]
% object name [collection index $colVar 1]
This example returns the name of the second object in the colVar collection.
• The first command creates the colVar collection variable. The nested search
command defines the value of the collection variable to be all instances in the
current project.
• The second command gets the name of the second object in the collection. The
collection index command defines which object to get, where $colVar is the collection
from which to get the object. One (1) specifies the index into the collection. Since
index values start at 0 (zero), this returns the name of the second object in the
collection.
Note See the collection index command for more information.
Tcl Return
The name of the object as a text string.
Syntax
% object properties obj [-descriptors]
object is the Tcl command name.
properties is the subcommand name.
obj specifies the object to list the properties of.
-descriptors specifies that the command should return a collection of property
descriptors on which users can iterate through to get more information on each property.
If not specified, the command returns a list of property names as a TCL List.
Example 1
% set colVar [search * -type partition]
% collection foreach obj $colVar {
set objProps [object properties $obj]
foreach prop $objProps
puts [object get $obj $prop]
}
}
This example first runs a search to create a collection of objects. The second statement
iterates through the objects in the collection. For each object, a list of available properties
for the object are obtained with the object properties command. Then, the value of
each property is returned for each object.
Example 2
% set colVar [search * -type partition]
% set partition [collection index $colVar 1]
% set propertyDescritpors [object properties $partition -descriptors]
% collection foreach propDescr $propertyDescritpors {
puts "name : [object get $propDescr name]"
puts "type : [object get $propDescr type]"
puts "is_read_only : [object get $propDescr is_read_only]"
puts "allowable_values : [object get $propDescr allowable_values]"
puts "default : [object get $propDescr default]"
puts "units : [object get $propDescr units]"
puts "drivers : [object get $propDescr drivers]"
puts "description : [object get $propDescr description]"
}
Tcl Return
Collection of property descriptors if -descriptors switch is specified, otherwise is returns
a Tcl list of property names.
Syntax
% object type obj
object is the Tcl command name.
type is the subcommand name.
obj specifies the object to return the type of. The object name will always be a Tcl variable.
The set command is used to create a Tcl variable, as shown in the following example.
Example
% set colVar [search * -type instance]
% object type [collection index $colVar 1]
This example returns the object type of the second object in the collection.
• The first command creates the colVar collection variable. The nested search
command defines the value of the collection variable to be all instances in the
current project.
• The second command gets the name of the second object in the collection. The
collection index command defines which object to get, where $colVar is the
collection from which to get the object. One (1) specifies the index into the collection.
Since index values start at 0 (zero), this returns the type of the second object in
the collection.
Note See the collection index command for more information.
Tcl Return
The object type as a text string.
Syntax
% search {pattern |expression } [[-matchcase] [-exactmatch]
[-regexp]] | [-exp] [-type object_type ] [-in
{project|collection}]
search is the Tcl command name.
pattern or expression is a string. When -exp is used, it is an expression that specifies the
searching criteria using Xilinx® search expression syntax. When -exp is not used, it is a
pattern that is used to match object names.
-matchcase is meaningful only when -exp is not used. It specifies that the names of
the objects to be searched for should match pattern in a case-sensitive way.
-exactmatch is meaningful only when -exp is not used. It specifies that the names of
the objects to be searched for should match pattern exactly.
-regexp is meaningful only when -exp is not used. It specifies that pattern is a regular
expression. By default, pattern is treated as a simple string that can contain wildcard
characters, e.g. "*_ccir_*".
-exp specifies that the searching criteria are expressed in expression using search
expression syntax. Search expression enables searching for objects by properties.
-type object_type specifies what type of objects to search for. If a project is loaded,
supported types can be: file, instance, and lib_vhdl. If a device is loaded, supported
types can be: belsite, io_standard, site and tile.
-in {project|collection} specifies the scope of the search. If you use -in or -in
project, searching is within the current. If you use -in collection, searching is
within the specified collection.
Example 1
% search "/stopwatch" -type instance
In this example, the search command is used to find all instances in the design.
Example 2
% search * -type file
In this example, the search command is used to find a list of all the source files
contained in the project.
Tcl Return
A collection of objects that match the search criteria. If no matches are found, an empty
collection is returned.
The next script is a procedure to strip the filename off the end of a fully-qualified
pathname. This script utilizes some of the many string-manipulation functions provided
by Tcl. There are several ways to write this procedure, here is one that uses these string
manipulation functions:
[string last "/" $fullfile]; # position of last slash in the string
[string length $fullfile]; # give string length
[string range $fullfile a b]; # new string from position a to b
consider the input: fullfile is "C:/designs/proj1/top.vhd"
Calling the following procedure with the full path name as its argument:
% getfname C:/designs/proj1/top.vhd
will return just the filename: top.vhd.
proc getfname {fullfile}{
set start [expr [string last “/” $fullfile] + 1]
set end [string length $fullfile]
return [string range $fullfile $start $end]
}
You can consolidate the 3 commands of the procedure into one by omitting the
intermediate variable assignments:
proc getfname {fullfile}{
return [string range $fullfile \
[expr [string last “/” $fullfile] + 1] [string length $fullfile]]
}
The first script is a useful way to print out (either to your screen or to a file) a list of your
current design properties for any processes you want to list. First, set up your own
"Apps_list" with the names of the Xilinx processes whose properties you want to list.
Next, this script opens a file for writing (the filename is options.tcl) and then it loops
through each process in the Apps_list, getting a list of properties for each process. A
second loop goes through each property and gets the value of each, printing it to the file.
After closing the file, you can open the options.tcl file in an editor, or print it as a
customized report of properties and their values.
set Apps_list {"Synthesize - XST"\
"Translate"\
"Map"\
"Generate Post-Map Static Timing"\
"Generate Post-Map Simulation Model"\
"Place & Route"\
"Generate Post-Place & Route Static Timing"\
"Generate Post-Place & Route Simulation Model"\
"Back-Annotate Pin Locations"\
"Generate Programming File"
}
set fp [open "options.tcl" "w"]
foreach ISE_app $Apps_list {
puts $fp "# ****** Properties for < $ISE_app > *********"
foreach prop [project properties -process $ISE_app] {
set val [project get "$prop" -process "$ISE_app"]
if {$val != "" } {
puts $fp "project set \"$prop\" \"$val\" -process \"$ISE_app\""
}
}
}
close $fp
The following script shows how you can use the standard Tcl catch command to
capture any errors before they are caught by the Tcl shell. You may have a case where
you want to run a long script without stopping, even if intermediate steps within the
script may have errors. This script also uses the Tcl time command, to record the
elapsed clock time of the process.
# Run XST, catch any errors, and record the runtime
if { [catch { time {process run "Synthesize - XST"} } synthTime ] } {
puts “Synthesis failed”
}
# or else, XST was successful.Write out the runtime.
else {
puts “Synthesis ran in $synthTime”
}
The following individual commands may be useful to add to your Tcl scripts when
running designs through Implement.
# Regenerate Core for a particular instance
process run "Regenerate Core" -instance myCore
# Set up properties to generate post place static timing report
project set "report type" "Verbose Report" \ process "Generate Post-Place & Route Static Timing"
# Set up properties to create the source control friendly version # of the bit file: the .bin file
# The .bin file has the same internals, but no header so a # simple diff works.
project set "Create Bit File" "true" project set "Create Binary Configuration File" "true"