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.

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

VHDL files in the correct order. Moreover, XST automatically detects<br />

the top level block for synthesis.<br />

For the example, perform the following steps:<br />

1. Open a new file, called watchvhd.prj<br />

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

save the file:<br />

statmach.vhd<br />

decode.vhd<br />

stopwatch.vhd<br />

cnt60.vhd<br />

smallcntr.vhd<br />

hex2led.vhd<br />

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

XST shell or via script file:<br />

run -ifn watchvhd.prj -ifmt VHDL -ofn watchvhd.ngc<br />

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

-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 entity<br />

to synthesize in the command line, using the -ent option (please refer<br />

to Table 8-2 for more details):<br />

run -ifn watchvhd.prj -ifmt VHDL -ofn watchvhd.ngc<br />

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

-opt_level 1 -ent hex2led<br />

During VHDL compilation, XST uses the library "work" as the<br />

default. If some VHDL files must be compiled to different libraries,<br />

then you can add the name of the library just before the file name.<br />

Suppose that "hexl2led" must be compiled into the library, called<br />

"my_lib", then the project file must be:<br />

statmach.vhd<br />

decode.vhd<br />

stopwatch.vhd<br />

cnt60.vhd<br />

smallcntr.vhd<br />

my_lib hex2led.vhd<br />

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

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

Saved successfully!

Ooh no, something went wrong!