14.08.2013 Views

Xilinx CPLD Libraries Guide

Xilinx CPLD Libraries Guide

Xilinx CPLD Libraries 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.

Unsigned Binary Operation<br />

About Design Elements<br />

For unsigned binary operation, this element can represent numbers between 0 and 255, inclusive. In add mode,<br />

CO is active (High) when the sum exceeds the bounds of the adder/subtracter. In subtract mode, CO is an<br />

active-Low borrow-out and goes Low when the difference exceeds the bounds.<br />

An unsigned binary “overflow” that is always active-High can be generated by gating the ADD signal and CO<br />

as follows:<br />

unsigned overflow = CO XOR ADD<br />

OFL is ignored in unsigned binary operation.<br />

Twos-Complement Operation<br />

For twos-complement operation, this element can represent numbers between -128 and +127, inclusive.<br />

If an addition or subtraction operation result exceeds this range, the OFL output goes High. CO is ignored<br />

in twos-complement operation.<br />

Design Entry Method<br />

This design element is only for use in schematics.<br />

For More Information<br />

• See the appropriate <strong>CPLD</strong> User <strong>Guide</strong>.<br />

• See the appropriate <strong>CPLD</strong> Data Sheets.<br />

<strong>CPLD</strong> <strong>Libraries</strong> <strong>Guide</strong><br />

42 www.xilinx.com ISE 10.1

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

Saved successfully!

Ooh no, something went wrong!