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

Example 1: How to Synthesize VHDL Designs Using<br />

Command Line Mode<br />

The goal of this example is to synthesize a hierarchical VHDL design<br />

for a Virtex FPGA using Command Line Mode.<br />

Following are the two main cases:<br />

• Case 1—all design blocks (entity/architecture pairs) are located<br />

in a single VHDL file.<br />

• Case 2—each design block (entity/architecture pair) is located in<br />

a separate VHDL file.<br />

The example uses a VHDL design, called watchvhd. The files for<br />

watchvhd can be found in the ISEexamples\watchvhd directory of<br />

the ISE installation directory.<br />

This design contains 7 entities:<br />

• stopwatch<br />

• statmach<br />

• tenths (a CORE Generator core)<br />

• decode<br />

• smallcntr<br />

• cnt60<br />

• hex2led<br />

Case 1: All Blocks in a Single File<br />

For Case 1, all design blocks will be located in a single VHDL file.<br />

1. Create a new directory called vhdl_s.<br />

2. Copy the following files from the ISEexamples\watchvhd<br />

directory of the ISE installation directory to the vhdl_s directory.<br />

♦ stopwatch.vhd<br />

♦ statmach.vhd<br />

♦ decode.vhd<br />

♦ cnt60.vhd<br />

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

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

Saved successfully!

Ooh no, something went wrong!