Chapter2 - Introduction To Logic Circuits
Chapter2 - Introduction To Logic Circuits
S
Power
supply x Light
x1
Power
supply S Light
x2
X1
S
Power
supply S X3 Light
X2
Power
supply x S Light
xn
x1
x2
x1
x1 + x2 x1 + x2 + … + xn
x2
xn
(b) OR gates
x x
x x x x
x y
x y
z
(g) x ⋅ y (h) x ⋅ y + z
x y x y
z z
(a) x (d) x ⋅ y
x y x y
z z
(b) y + z (e) x ⋅ z
x y x y
z z
(c) x ⋅ ( y + z) (f) x ⋅ y + x ⋅ z
x1
f
x2
f
x3
x1
x1
x3
f
x2
xn
x1
x2
x1
x1 + x2 x1 + x2 + … + xn
x2
xn
(a) x1 x2 = x1 + x2
x1
x1 x1
x2 x2
x2
(b) x1 + x2 = x1 x2
x1
x2
x3
x4
x5
x3 x3
x4 x4
x5 x5
x1
x2
x3
x4
x5
x2 f
x3
x1
x2 f
x3
f
x2
x3
x1
f
x2
x3
x1
x2
x3
(a) Sum-of-products realization
x3
x2
x1
(a)Truth table
x1 s
f x1 0
f
s x2 1
x2
endmodule
endmodule
01 m1 m5 m13 m9
x4
11 m3 m7 m15 m11
x3
10 m2 m6 m14 m10
x2
01 1 1 01 1 1
11 1 1 11 1 1
10 1 1 10 1 1
x5 = 0 x5 = 1
1 1 1 1 0
x1 x2x3
01 1 1 x2x3x4
11 1 1 1
10 1 1 1 1 x3x4
x1x3 x2x3
10 1 x1x2x3
x1x2x4
00 1 1 x 1 x3 x4
01 1 1 x 2 x3 x 4
11 1 1 x 1 x3 x 4
10 1 1
x 2 x3 x 4
x1 x2 x4 x1 x 2 x4
x1 x 2 x3 x 1 x2 x3
1 1 1 1 0
( x1 + x2)
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)
(a) Function f 1
x1
x1 x2 x3
x3 x4
00 01 11 10 f2
x2
00 1 1 x3
x4
01 1 1
10 1 1
(b) Function f 2
01 1 1 1 01 1 1 1
11 1 1 1 11 1 1 1
10 1 10 1
11 1 1 1 11 1 1 1 x1
x2
10 1 10 1
x3
(c) Optimal realization of f 3 and f 4 together
x4 f4
x2
x4
x3 x3
x1 x2 x1 x2
x3 x3
x1 x2 x1 x2
x4 x4
(a) (b)
x1 x2 x1 x2
m1
x3 m2 x
x2 1
0
x3 1
0
f 1
0
Time
x2 1
0
x3 1
0
f 1
0
Time
x3
g
x1
x4
x1
x4