Download Xilinx Command Line Tools User Guide (UG628)

Transcript
Chapter 23: XFLOW
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.
Using XFLOW Flow Types in Combination
You can combine flow types on the XFLOW command line to run different flows.
The following example shows how to use a combination of flow types to implement a
design, create a bitstream for FPGA device configuration, and generate an EDIF timing
simulation netlist for an FPGA design named testclk:
xflow -p xc5vlx30ff324-2 -implement balanced -tsim
generic_verilog -config bitgen testclk
The following example shows how to use a combination of flow types to fit a CPLD
design and generate a VHDL timing simulation netlist for a CPLD design named
main_pcb:
xflow -p xc5vlx30ff324-2 -fit balanced -tsim generic_vhdl
main_pcb
Running Smart Flow
Smart Flow automatically detects changes to your input files and runs the flow from
the appropriate point. XFLOW detects changes made to design files, flow files, option
files, and trigger files. It also detects and reruns aborted flows. To run Smart Flow, type
the XFLOW syntax without specifying an extension for your input design. XFLOW
automatically detects which input file to read and starts the flow at the appropriate point.
For example, if you enter the following command and XFLOW detects changes to the
calc.edf file, XFLOW runs all of the programs in the flow and option files.
xflow -implement balanced.opt calc
Using the SCR, BAT, or TCL File
Every time you run XFLOW, it creates a script file that includes the command line
commands of all the programs run. You can use this file for the following:
•
Review this file to check which commands were run
•
Execute this file instead of running XFLOW
By default, this file is named xflow_script.bat (PC) or xflow_script.scr
(Linux), although you can specify the output script file type by using the
$scripts_to_generate option. To execute the script file, type xflow_script.bat,
xflow_script.scr, or xflow_script.tcl at the command line.
If you choose to execute the script file instead of using XFLOW, the features of Smart
XFLOW are not enabled. For example, XFLOW starts the flow at an appropriate point
based on which files have changed, while the script file simply runs every command
listed in the file. In addition, the script file does not provide error detection. For
example, if an error is encountered during NGDBuild, XFLOW detects the error and
terminates the flow, while the script file continues and runs MAP.
Command Line Tools User Guide
UG628 (v14.7) October 2, 2013
Send Feedback
www.xilinx.com
313