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

The logical operators are further divided as bit-wise versus logical<br />

depending on whether it is applied to an expression involving<br />

several bits or a single bit. The following table lists the expressions<br />

supported by XST.<br />

Table 7-1 Expressions<br />

Concatenation {} Supported<br />

Replication {{}} Supported<br />

+, -, *,** Supported<br />

Arithmetic<br />

/ Supported only if second<br />

operand is a power of 2<br />

Modulus % Supported only if second<br />

operand is a power of 2<br />

Addition + Supported<br />

Subtraction - Supported<br />

Multiplication * Supported.<br />

Power ** Supported<br />

If both operands are integer,<br />

the result will be integer<br />

If either operand is real, the<br />

result will be real<br />

Division / Supported<br />

XST generates incorrect logic<br />

for the division operator<br />

between signed and<br />

unsigned constants.<br />

Example: -1235/3’b111<br />

Remainder % Supported<br />

Relational >, =,

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

Saved successfully!

Ooh no, something went wrong!