05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Case 2<br />

Command Line Mode<br />

Each design block is located in a separate Verilog file.<br />

1. Create a new directory named vlg_m.<br />

2. Copy the watchver design files from the ISEexamples\watchver<br />

directory of the ISE installation directory to the newly created<br />

vlg_m directory.<br />

To synthesize the design, which is now represented by four Verilog<br />

files, you can use the project approach supported in XST. A Verilog<br />

project file contains a set of "include" Verilog statements (one each per<br />

Verilog module). The order of the files in the project is not important.<br />

XST is able to recognize the hierarchy and compile Verilog files in the<br />

correct order. Moreover, XST automatically detects the top level<br />

module for synthesis.<br />

For our example:<br />

1. Open a new file, called watchver.v.<br />

2. Enter the names of the Verilog files into this file in any order and<br />

save it:<br />

`include "decode.v"<br />

`include "statmach.v"<br />

`include "stopwatch.v"<br />

`include "cnt60.v"<br />

`include "smallcntr.v"<br />

`include "hex2led.v"<br />

3. To synthesize the design, execute the following command from<br />

the XST shell or via a script file:<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 />

If you want to synthesize just HEX2LED and check its performance<br />

independently of the other blocks, you can specify the top level<br />

module to synthesize in the command line, using the -top option<br />

(please refer to Table 8-3 for more information):<br />

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

-ofmt NGC -p xcv50-bg256-6 -opt_mode Speed<br />

-opt_level 1 -top HEX2LED<br />

XST <strong>User</strong> <strong>Guide</strong> 8-23

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

Saved successfully!

Ooh no, something went wrong!