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

Note In combinatorial processes, if a signal is not explicitly assigned<br />

in all branches of "if" or "case" statements, XST will generate a latch to<br />

hold the last value. To avoid latch creation, assure that all assigned<br />

signals in a combinatorial process are always explicitly assigned in all<br />

paths of the process statements.<br />

Different statements can be used in a process:<br />

• Variable and signal assignment<br />

• If statement<br />

• Case statement<br />

• For...Loop statement<br />

• Function and procedure call<br />

The following sections provide examples of each of these statements.<br />

If...Else Statement<br />

If...else statements use true/false conditions to execute statements. If<br />

the expression evaluates to true, the first statement is executed. If the<br />

expression evaluates to false (or x or z), the else statement is executed.<br />

A block of multiple statements may be executed using begin and end<br />

keywords. If ... else statements may be nested. Example 6-12 shows<br />

the use of an If...else statement.<br />

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

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

Saved successfully!

Ooh no, something went wrong!