Unit 2 PDF
Unit 2 PDF
Unit 2 PDF
Computer Organization 15
Unit 2 Digital Components
2.2 INTRODUCTION
2.3.1 Half-Adder
Half-adder is a circuit that can add two binary bits. Its outputs are
SUM and CARRY. The following truth table shows the various combinations
of inputs and the corresponding outputs of a half-adder. X & Y denote inputs
and C & S denotes the two outputs CARRY & SUM.
The minterms for Sum and CARRY are shown in the bracket. The
Sum-Of-Product equation for SUM is :
S = X Y + XY …………… (1)
= X ⊕ Y
Similarly, the SOP equation for the CARRY is:
C = XY ……………………….(2)
Computer Organization 17
Unit 2 Digital Components
2.3.2 Full-Adder
Full-Adder is a logic circuit to add three binary bits. Its outputs are SUM
/ /
and CARRY. In the following truth table X,Y,Z are inputs and C and S
are CARRY & SUM.
Table 2.2: Truth Table for Full- Adder
X Y Z CARRY (Ć ) SUM (Ś)
0 0 0 0 0
0 0 1 0 1 ( X Y Z)
0 1 0 0 1 (X YZ )
0 1 1 1 ( X YZ ) 0
1 0 0 0 1 ( XY Z )
1 0 1 1 ( XY Z ) 0
1 1 0 1 (XY Z ) 0
1 1 1 1 (XYZ) 1 ( XYZ)
= X ( Y Z + Y Z ) + X ( Y Z + YZ )
= X S + XS ……………………. ( 3 )
= X YZ + XYZ + X Y Z + XY Z
= ( X + X )YZ + X( Y Z + Y Z )
= YZ + XS
= C + XS …………………. ( 4 )
18 Computer Organization
Digital Components Unit 2
C
C
X
Y
S
(a)
(b) (c)
Figure 2.2: Full-Adder Circuit
(a) logic diagram, (b) block diagram (c) Symbol
A half-subtractor subtracts one bit from another bit. It has two outputs,
DIFFERENCE ( D) and BORROW ( B ).
Table 2.3: Truth Table for Half-Subtractor
B = XY …………………….. ( 6 )
Computer Organization 19
Unit 2 Digital Components
2.3.4 Full-Subtractor
D´ = X YZ + XYZ + XY Z + XYZ
= XYZ + XY Z + XYZ + X YZ
= (X Y + XY ) Z + ( XY + X Y ) Z
= D Z + DZ …………………… ( 7 )
B´ = X YZ + XYZ + X YZ + XYZ
= X YZ + XYZ + XYZ + X YZ
= ( XY + XY ) Z + XY( Z + Z )
= DZ + XY …………………….. ( 8 )
20 Computer Organization