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

Blocks<br />

The following table lists the results of evaluating expressions using<br />

the more frequently used operators supported by XST.<br />

Note The (===) and (!==) are special comparison operators useful in<br />

simulations to check if a variable is assigned a value of (x) or (z). They<br />

are treated as (==) or (!=) in synthesis.<br />

Table 7-2 Results of Evaluating Expressions<br />

a b a==b a===b a!=b a!==b a&b a&&b a|b a||b a^b<br />

0 0 1 1 0 0 0 0 0 0 0<br />

0 1 0 0 1 1 0 0 1 1 1<br />

0 x x 0 x 1 0 0 x x x<br />

0 z x 0 x 1 0 0 x x x<br />

1 0 0 0 1 1 0 0 1 1 1<br />

1 1 1 1 0 0 1 1 1 1 0<br />

1 x x 0 x 1 x x 1 1 x<br />

1 z x 0 x 1 x x 1 1 x<br />

x 0 x 0 x 1 0 0 x x x<br />

x 1 x 0 x 1 x x 1 1 x<br />

x x x 1 x 0 x x x x x<br />

x z x 0 x 1 x x x x x<br />

z 0 x 0 x 1 0 0 x x x<br />

z 1 x 0 x 1 x x 1 1 x<br />

z x x 0 x 1 x x x x x<br />

z z x 1 x 0 x x x x x<br />

Block statements are used to group statements together. XST only<br />

supports sequential blocks. Within these blocks, the statements are<br />

executed in the order listed. Parallel blocks are not supported by XST.<br />

Block statements are designated by begin and end keywords, and<br />

are discussed within examples later in this chapter.<br />

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

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

Saved successfully!

Ooh no, something went wrong!