282 DIGITAL BUILDING BLOCKS AND COMPUTER SYSTEMS
BD A
+ B
A CDHalf-adder
CX C Z
WFull adder
YBDAHalf-
adder
CC BWXDAHalf-
adder“Carry” from
previous digit“Carry” to
next digitC
YZAB
00
01
10
11CD
00
01
01
10
(a)(b)Inputs OutputsWX
00
00
01
01YZ
00
01
01
10
10
10
11
11C 0 1 0 1 0 1 0 101
10
10
11Inputs OutputsWA
XB
YDZ+Figure 6.1.10(a)Half-adder and its truth table.(b)Full adder and its truth table.WXYFA C
ZA 3 B 3S 4 S 3WXYFA C
ZA 2 B 2S 2WXYFA C 0 +
ZA 1A 3B 1S 1WXYFA C
ZA 0 B 0S 0S 4A 2S 3A 1S 2A 0
B 3 B 2 B 1 B 0
S 1 S 0Figure 6.1.11Addition of 4-digit binary numbers.EXAMPLE 6.1.7
Refer to Figure 6.1.10(a) of the half-adder and its truth table for adding two single-digit binary
numbers,AandB, to yield a two-digit numberCD. Using the SOP method, develop a circuit to
generateCandD.SolutionIn terms of the four possible gates (with an output of 1 only) shown in Figure 6.1.8, the circuit in
Figure E6.1.7(a) can be drawn. Note that the resulting circuit will not be minimal, as is usually
the case with the SOP method. The truth table can be realized with only three gates, using the
circuit shown in Figure E6.1.7(b). The student is encouraged to verify by constructing its truth
table.