1 Bit Adder - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

1 Bit Adder

Description:

adder. A3. S3. B3. C1. C2. C3. A3A2A1A0 B3B2B1B0 ... adder. 0. 0. Subtraction. Compute A-B as A (-B-1) 1 -B-1 is just all the bits of B inverted. ... – PowerPoint PPT presentation

Number of Views:142
Avg rating:3.0/5.0
Slides: 12
Provided by: DaveHol
Category:
Tags: adder | bit

less

Transcript and Presenter's Notes

Title: 1 Bit Adder


1
1 Bit Adder
Carry In
adder
A
Sum
B
Carry Out
2
4 Bit Ripple Carry Adder
C3 C2 C1 C0
A3A2A1A0 B3B2B1B0 S3S2S1S0
A0
B0
A1
B1
A2
B2
A3
B3
C1
C2
C3
adder
adder
adder
adder
C0
S0
S1
S2
S3
3
4 Bit Ripple Carry Adder
0011 0010
adder
adder
adder
adder
0



4
Subtraction
  • Compute A-B as A (-B-1) 1
  • -B-1 is just all the bits of B inverted.
  • Add the 1 by setting C0 to 1

5
Subtraction
0101 - 0011
adder
adder
adder
adder
1



6
Twos Complement Numbers
  • Nothing is different!
  • This is the advantage of using 2s complement
    representation.
  • Overflow
  • For addition sign of the result is different
    than the sign of the operands (and they have the
    same sign).

7
-3 7
1101 0111
adder
adder
adder
adder
0



8
-3 -7
1101 1001
adder
adder
adder
adder
0



9
Ripple Carry Timing
  • All the adders are actually operating all the
    time (they are just combinational circuits).
  • We wait long enough (until the last carry has
    been computed) and then pay attention to the
    complete answer.
  • It is likely that there are intermediate values
    that are wrong!

10
Carry Look-ahead
  • Compute the carry bits right away.
  • Not possible for a large adder (32 bit), but
    realistic for a 4 bit adder.

11
4 Bit Carry Look-ahead
0011 0010
Carry Generator
adder
adder
adder
adder


Write a Comment
User Comments (0)
About PowerShow.com