218L10S09

# 218L10S09 - ESE218 Lecture 10 Arithmetic circuits Outline...

This preview shows pages 1–7. Sign up to view the full content.

2/3/09 ESE218 Spring 2009 Lecture 10 1 ESE218 Lecture 10: Arithmetic circuits Outline ± Binary Adders Half adder Full adder Ripple-carry adder Carry-lookahead adder ± Binary Subtractors ± 1’s complementer ± Subtraction by addition of a 2’s complement ± Overflow detection ± BCD Adder ± Summary

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2/3/09 ESE218 Spring 2009 Lecture 10 2 Half adder: a bit of history 1 1 0 0 X 1 0 0 0 C OUT 1 0 1 0 Y 0 1 1 0 Sum Sum C Y X OUT + George Stibitz (1904-1995) Vdc 0 13 11 9 4 6 8 16 1 Y 5 1 SUM 2 5 1 CARRYOUT 2 4 3 5 1 X 0 0 The first demonstration of use of relays for implementation of arithmetic operations
2/3/09 ESE218 Spring 2009 Lecture 10 3 Half adder: can add only two bits 1 2 3 1 2 3 1 2 3 4 5 6 1 2 3 4 1 2 3 2 3 1 1 1 0 0 X 1 0 0 0 C OUT 1 0 1 0 Y 0 1 1 0 Sum Sum C Y X OUT + Sum C out X Y X Y Sum C out Various implementations possible: XOR AND NOR OAI Sum with OAI: (X+Y’)(X’+Y) = X’Y+XY’ C out with NOR: (X’+Y’) = XY

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2/3/09 ESE218 Spring 2009 Lecture 10 4 Full adder: can add three bits 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 1 2 3 1 1 1 1 0 0 0 0 X 1 1 1 0 1 0 0 0 C OUT 1 1 0 0 1 1 0 0 Y 0 0 0 1 1 1 1 0 0 1 1 0 1 1 0 0 Sum C IN Sum C C Y X OUT IN + + Sum = X’Y’C in + X’YC in ’+ XY’C in ’+ XYC in (odd function) Carry-out = XY + XC in + YC in (too many gates needed) 001 010 100 111 <= m 1 +m 2 +m 4 +m 7 11- 1-1 -11 <= m 3 +m 5 +m 6 +m 7 6,7 5,7 3,7 Can one simplify the circuit for carry-out? X Y C in
2/3/09 ESE218 Spring 2009 Lecture 10 5 Full adder constructed with two half adders 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 7400 4 5 6 7400 9 10 8 7400 The idea is to utilize two half-adders for implementation of the 1-bit full adder AND-OR for C out NAND-NAND for C out (to be implemented in Lab) XY + ( X Y )C in = XY + XYC in + (X+Y)C in = XY + ( X+Y )C in = = XY + XC in + YC in (X Y)C in X+Y can be replaced with X Y because the already existing term XY covers the difference between X+Y and X Y

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2/3/09 ESE218 Spring 2009 Lecture 10 6 Ripple-carry adder as Iterative network 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/12/2009 for the course ESE 218 taught by Professor Donetsky during the Spring '08 term at SUNY Stony Brook.

### Page1 / 20

218L10S09 - ESE218 Lecture 10 Arithmetic circuits Outline...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online