05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

XST <strong>User</strong> <strong>Guide</strong><br />

Script Mode<br />

It can be very tedious work entering XST commands directly into the<br />

XST shell, especially when you have to specify several options and<br />

execute the same command several times. You can run XST in a script<br />

mode as follows.<br />

1. Open a new file called xst.scr in the current directory. Put the<br />

previously executed XST shell command into this file and save it.<br />

run -ifn watchver.v -ifmt Verilog -ofn<br />

watchver.ngc -ofmt NGC -p xcv50-bg256-6<br />

-opt_mode Speed -opt_level 1<br />

2. From the tcsh or other shell, enter the following command to start<br />

synthesis.<br />

xst -ifn xst.scr<br />

During this run, XST creates the following files:<br />

• watchvhd.ngc: an NGC file ready for the implementation tools<br />

• xst.srp: the xst script log file<br />

You can improve the readability of the xst.scr file, especially if you<br />

use many options to run synthesis. You can place each option with its<br />

value on a separate line, respecting the following rules:<br />

• The first line must contain only the run command without any<br />

options.<br />

• There must be no empty lines in the middle of the command<br />

• Each line (except the first one) must start with a dash (-)<br />

For the previously used command, you may have the xst.cmd file in<br />

the following form:<br />

run<br />

-ifn watchver.v<br />

-ifmt Verilog<br />

-ofn watchver.ngc<br />

-ofmt NGC<br />

-p xcv50-bg256-6<br />

-opt_mode Speed<br />

-opt_level 1<br />

8-22 <strong>Xilinx</strong> Development System

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!