4. Design Procedure
The Problem is Stated
The number of available input variables and required output variables is determined.
The input and output variables are assigned letter symbols.
The truth table that defines the required relationship between inputs and outputs is derived.
The simplified Boolean function for each output variable is obtained.
The logic diagram is drawn.
6. Half Adder
X Y S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
S’ = X’Y’ + XY C’ = X’ + Y’
S = (X’Y’ + XY)’ C = (X’ + Y’)’
S = (X + Y)(X’ + Y’) C = XY
Design a circuit for Half-Adder
Inputs -2 Outputs - 2
Inputs – x & y Outputs – S & C
16. Full Adder
LET A = X Y = X’Y +XY’
X Y Z = A Z
= A’Z + AZ’
= (X’Y+XY’)’ Z+ (X’Y+XY’)Z’
= (X +Y’)(X’+Y)Z + X’YZ’ + XY’Z’
= (XX’+XY+X’Y’+YY’)Z + X’YZ’+XY’Z’
= XYZ + X’Y’Z + X’YZ’ + XY’Z’
= m1 + m2 + m4 + m7
S = X Y Z
36. Boolean functions
Pi = Ai ⊕ Bi steady state value
Gi = AiBi steady state value
Output sum and carry
Si = Pi ⊕ Ci
Ci+1 = Gi + PiCi
Gi : carry generate Pi : carry propagate
36
37. • Delay time of n-bit CLAA = XOR + (AND + OR) + XOR
42. Decimal Adder
• When the binary sum is greater than 1001, we obtain
a non-valid BCD representation.
• The addition of binary 6(0110) to the binary sum
converts it to the correct BCD representation and also
produces an output carry as required.
C = K + Z8Z4 + Z8Z2
48. Magnitude Comparator
48
A B X
0 0 1
0 1 0
1 0 0
1 1 1
X = A’B’ + AB
X = A’B’ + AB = A XNOR B
X = (A XOR B)’
= (A’B + AB’)’
= (A’B)’. (AB’)’
= (A + B’).(A’ + B)
= AA’ + AB + A’B’ + BB’
= AB + A’B’
51. Magnitude Comparator
51
We inspect the relative magnitudes of
pairs of MSB. If equal, we compare
the next lower significant pair of
digits until a pair of unequal digits is
reached.
If the corresponding digit of A is 1
and that of B is 0, we conclude that
A>B.
(A>B)=A3B’3+x3A2B’2+x3x2A1B’1+x3x2x1A0B’0
(A<B)=A’3B3+x3A’2B2+x3x2A’1B1+x3x2x1A’0B0
52. Decoders
• The decoder is called n-to-m-line decoder, where
m≤2n
.
• the decoder is also used in conjunction with other
code converters such as a BCD-to-seven_segment
decoder.
• 3-to-8 line decoder: For each possible input
combination, there are seven outputs that are equal
to 0 and only one that is equal to 1.
52
53. Decoders
53
A B Q0 Q1 Q2 Q3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
No. of Inputs = n
No. of Possible Combinations = 2n
No. of Outputs ≤ 2n
54. Decoders (3 X 8)
54
No. of Inputs = 3
No. of Possible Combinations = 23
No. of Outputs = 8
58. Decoders (BCD-to-Decimal)
58
w x y z D0 D1 D2 D3 D4 D5 D6 D7 D8 D9
1 0 1 0 X X X X X X X X X X
1 0 1 1 X X X X X X X X X X
1 1 0 0 X X X X X X X X X X
1 1 0 1 X X X X X X X X X X
1 1 1 0 X X X X X X X X X X
1 1 1 1 X X X X X X X X X X