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.

About Design Elements<br />

ADSU1<br />

Macro: 1-Bit Cascadable Adder/Subtracter with Carry-In, Carry-Out<br />

Supported Architectures<br />

This design element is supported in the following architectures only:<br />

• XC9500XL<br />

• CoolRunner XPLA3<br />

• CoolRunner-II<br />

Introduction<br />

When the ADD input is High, two 1-bit words (A0 and B0) are added with a carry-in (CI), producing a 1-bit<br />

output (S0) and a carry-out (CO). When the ADD input is Low, B0 is subtracted from A0, producing a result (S0)<br />

and borrow (CO). In add mode, CO represents a carry-out, and CO and CI are active-High. In subtract mode, CO<br />

represents a borrow, and CO and CI are active-Low.<br />

Add Function, ADD=1<br />

Inputs Outputs<br />

A0 B0 CI S0 CO<br />

0 0 0 0 0<br />

0 1 0 1 0<br />

1 0 0 1 0<br />

1 1 0 0 1<br />

0 0 1 1 0<br />

0 1 1 0 1<br />

1 0 1 0 1<br />

1 1 1 1 1<br />

Subtract Function, ADD=0<br />

Inputs Outputs<br />

A0 B0 CI S0 CO<br />

0 0 0 1 0<br />

0 1 0 0 0<br />

1 0 0 0 1<br />

1 1 0 1 0<br />

0 0 1 0 1<br />

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

ISE 10.1 www.xilinx.com 35

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

Saved successfully!

Ooh no, something went wrong!