Professional Documents
Culture Documents
Full Adder: A Full Adder Can Be Made From Two Half Adders (Plus An OR Gate)
Full Adder: A Full Adder Can Be Made From Two Half Adders (Plus An OR Gate)
Full Adder: A Full Adder Can Be Made From Two Half Adders (Plus An OR Gate)
Ci
Si
half-adder
Ai S C
half-adder C i+1
Bi
C
Si
Block Diagram
Binary Parallel Adder (4-Bit Adder)
Chain single-bit adders together.
What does this do to delay?
A
3B3 A
2B2 A
1B1 A
0B0
Full Adder
Full Adder
Full Adder
Full Adde
0
C3 C2 C1
C
4 S
3 S
2 S
1 S
0
C 1 1 1 0
A 0 1 0 1
B 0 1 1 1
S 1 1 0 0
The 4-bit Adder Subtractor
performing both addition and subtraction
Binary addition :
Mode signal also goes into the carry input of the least
significant full–adder (C0), Hence, when the M=1, the
XOR gates and the Mode switch take the 2’s complement
of B and pass it to the full–adders.
4-bit Subtractor: E = 1
A3 B3 A2 B2 A1 B1 A0 B0
C4 SD 3 SD 2 SD 1 SD 0
AN-1
BN-1 Overflow?
CN-1
00 01 11 10 00 11
0010 0011 1110 1101 0010 1110
0011 0110 1101 1010 1100 0100
-------- -------- -------- -------- -------- --------
0101 1001 1011 0111 1110 0010
2 3 -2 -3 2 -2
3 6 -3 -6 -4 4
5 -7 -5 7 -2 2
OFL OFL
Summary
• Addition and subtraction are fundamental to
computer systems
• Key – create a single bit adder/subtractor
– Chain the single-bit hardware together to create bigger designs