Documente Academic
Documente Profesional
Documente Cultură
Chapter 6
Combinational Logic Design Practices
Adders, subtractors,
ALUs
Prev…
Full Subtractor
Ripple Subtractor
Adder/ Subtractor Circuit
Half Adder: adds two 1-bit operands
Truth table :
X Y HS=(X+Y) CO X
0 0 0 0 HS
Y
0 1 1 0
1 0 1 0 CO
1 1 0 1
HS X Y
CO X Y
Full Adders: provide for carries
between bit positions
Basic building block is “full adder”
1-bit-wide adder, produces sum and carry outputs
Truth table:
Full Adders: provide for carries
between bit positions
Basic building block is “full adder”
1-bit-wide adder, produces sum and carry outputs
Truth table:
X Y Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Full Adders: provide for carries
between bit positions
Basic building block is “full adder”
1-bit-wide adder, produces sum and carry outputs
Truth table:
X Y Cin S Cout
S is 1 if an odd number 0 0 0 0 0
of inputs are 1. 0 0 1 1 0
0 1 0 1 0
COUT is 1 if two or 0 1 1 0 1
more of the inputs are 1 0 0 1 0
1. 1 0 1 0 1
Recall: Table 2-3, pp32 1 1 0 0 1
1 1 1 1 1
Full-adder circuit
Full-adder circuit
Full-adder circuit
Ripple adder