11.07.2015 Views

Adder Circuits

Adder Circuits

Adder Circuits

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.

<strong>Adder</strong>.PPT(10/1/2009) 5.8Adding Signed NumbersTo avoid overflow, we use a 5-bit adder:P0P1P2P3Q0Q1Q2Q3040PQ04S0S1S2S3S440C–1CIC4C4This is different from the unsigned case because P4 andQ4 are no longer constants. We cannot simplify this circuitby removing the MSB stage.If P and Q have different signs then S4 will not equal C3.e.g. P=0000, Q=1111Unsigned P+Q=01111 01111, Signed P+Q=11111Some minor simplifications are possible:• If the C4 output is not required, the circuitry thatgenerates it can be removed.• S4 can be generated directly from P3, Q3 and C3which reduces the circuitry needed for the last stage.

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

Saved successfully!

Ooh no, something went wrong!