Professional Documents
Culture Documents
Chapter_2(DLD)
Chapter_2(DLD)
Parallel Connection x1
Power
L = 1 if x1 =1 or x2 = 1 or if supply S Light
x1 = x2 = 1 x2
L = 1 if x = 0
R
L = 0 if x = 1
-
L(x) = x Power
supply
x S Light
L(x) is the inverse (complement)
of the input variable x, and
x- =x’ =~x=!x Logical NOT
Operation
x1 x
S 1
Power x
2
supply S
x3 Light f = (x + x ) x
x 1 2 3
3
x2
Figure 2.9. The function from Figure 2.4.
x1
A
f
B
x2
x x f (x , x ) A B
1 2 1 2
0 0 1 1 0
0 1 1 1 0
1 0 0 0 0
1 1 1 0 1
x 1
1 0
x 1
2 0
1
A
0
1
B
0
1
f
0 Time
(c) Timing diagram
x1
g
x2
x x f (x , x )
1 2 1 2
0 0 1
0 1 1
1 0 0
1 1 1
Truth table
Following table shows, how perfect induction can be used to prove the
validity of DeMorgan’s theorem.
AND ‘.’
OR ‘+’
1+1 = 2 (Ordinary Arithmetic Addition)
NOT AND OR
Summary
1- The straight forward implementation of a function can be
obtained by using a product term for each row of the truth table
for which the function value is ‘1’. Each product term contains all
input variables. The sum of these product terms realize the
desired function.
f=Σ(m1,m4,m5,m6)
OR
f=Σm(1,4,5,6)
x2
f
x3
x1
f=Π(M0.M2.M3.M7)
OR
f=ΠM(0,2,3,7)
x1
x3
f
x2
Example: 2.4
f=ΠM(0,1,5)
Obtain
a) Canonical POS expression
b) Simplified POS expression
Fundamentals of Digital Logic Department of Electrical Engineering
2.7 NAND & NOR Logic Networks
x1
x2
x1
x 1 x 2 x 1 x 2 x n
x2
xn
x1
x2
x1
x1 + x2 x 1 + x 2 + + x n
x2
xn
x1
x1 x1
x2 x2
x2
(a) x1 x2 = x1 + x2
x1
x1 x1
x2 x2
x2
(b) x1 + x2 = x1 x2
x1
x2 F
F= (x1.x2)+(x3.x4.x5)
x3
x4
x5
x1 x1
x2 F x2 F
x3 x3
x4 x4
x5 x5
x1
x2
F
F= (x1+x2).(x3+x4+x5)
x3
x4
x5
x1
x1
x2
F x2 F
x3
x3
x4
x4
x5
x5
x1
F= Σm(2, 3, 4, 6, 7) x2 f
x3
x1
x2 f
x3
x3
x1
f
x2
x3
Logical Expression in
terms of SOP
x1
x2
x3
(a) Sum-of-products realization
Figure 2.26. Truth table for a three-way light Figure 2.27. Implementation of the
control. function in Figure 2.26.
Fundamentals of Digital Logic Department of Electrical Engineering
2.8.1 Three-Way Light Control
Logical Expression in
terms of POS
x3
x2
x1
Figure 2.26. Truth table for a three-way light Figure 2.27. Implementation of the
control. function in Figure 2.26.
Fundamentals of Digital Logic Department of Electrical Engineering
2.8.2 Multiplexer Circuit
x1 s
• Grouping of minterms
• Grouping of Maxterms
x1 x2 x1
x2
0 0 m0 0 1
0 1 m1 0 m0 m2
1 0 m2
1 m1 m3
Easy 1 1 m3
Recognition of
minterms that (a) Truth table (b) Karnaugh map
can be grouped Figure 4.2. Location of two-variable minterms.
x
x2 1
1
0 1
A minterm can
be grouped 0 1 0
f = x2 + x1
twice
1 1 1
x1 x2 x3
x1 x2
0 0 0 m0 x3
00 01 11 10
0 0 1 m1
0 m0 m2 m6 m4
0 1 0 m2
0 1 1 m3 1 m1 m3 m7 m5
1 0 0 m4
1 0 1 m5 (b) Karnaugh map
1 1 0 m6
Adjacent Cells
1 1 1 m7
x1 x2
x3
00 01 11 10
0 0 0 1 1
f = x1 x3 + x2 x3
1 1 0 0 1
x1
x1 x2
x3 x4
00 01 11 10
00 m0 m4 m 12 m8
01 m1 m5 m 13 m9
x4
11 m3 m7 m 15 m 11
x3
10 m2 m6 m 14 m 10
x2
Figure 4.6. A four-variable Karnaugh map.
xx xx
x3x4 1 2 x3x4 1 2
00 01 11 10 00 01 11 10
00 1 0 0 1 00 1 1 1 0
01 0 0 0 0 01 1 1 1 0
11 1 1 1 0 11 0 0 1 1
10 1 1 0 1 10 0 0 1 1
x1x2
f 3 = x2x4 + x1x3 + x2x3x4 f 4 = x1x3 + x1x3 + or
x2x3
x1 x2 x1 x2
x3 x4 x3 x4
00 01 11 10 00 01 11 10
00 00 1
01 1 1 01 1 1
11 1 1 11 1 1
10 1 1 10 1 1
x5 = 0 x5 = 1
f 1 = x1 x3 + x1 x3 x4 + x1 x2 x3 x5
Terminology
x1 x2
• Literal x3
00 01 11 10
• Implicant 0 1 1 0 0
• Prime Implicant 1 1 1 1 0
• Cover
x x2 x3
• Cost 1
Minimization Procedure
• Generate all Prime Implicants for the given function f
• If the set of EPI covers all valuations for which f =1, then the set is
desired cover of f. Otherwise, determine the nonessential Prime
Implicants that should be added to form a complete minimum cover.
01 1 1 x2x3x4
• Eight prime implicants
11 1 1 x1x3x4
• What are essential prime
10 1 1
x2x3x4
implicants? And why?
x1x2x4 x1x2x4
• What should be the final cover?
x1x2x3 x1x2x3
x1 x2
x3
00 01 11 10
0 1 1 0 0 (x 1 + x 3 )
1 1 1 1 0
(x 1 + x 2 )
x1 x2
x3x4
00 01 11 10
00 0 0 0 0 (x3 + x4)
01 0 1 1 0
(x2 + x3)
11 1 1 0 1
10 1 1 1 1
(x1 + x2 + x3 + x4)
x x x1x2
x3x4 1 2 x3x4
00 01 11 10 00 01 11 10
(x2 + x3)
00 0 1 d 0 00 0 1 d 0
x2x3
01 0 1 d 0 01 0 1 d 0
11 0 0 d 0 11 0 0 d 0 (x3 + x4)
10 1 1 d 1 x3x4
10 1 1 d 1
(a) Function f 1 x1
x1 x2 x3
x3 x4 f2
00 01 11 10 x2
00 1 1 x3
x4
01 1 1
(c) Combined circuit for f 1 and f 2
11 1 1 1
10 1 1