Professional Documents
Culture Documents
CS212 Chapter 3 Notes
CS212 Chapter 3 Notes
y y
0 1 0 1
x x
0 m0 m1 0 x’y’ x’y
x 1 m2 m3 x 1 xy’ xy
70 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
z z
y
yz
wx 00 01 11 10
00 m0 m1 m3 m2
01 m4 m5 m7 m6
x
71 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Examples
F = w = x(x+x’)(y+y’)(z+z’) F = x’y’
yz yz
wx 00 01 11 10 wx 00 01 11 10
00 00
01 01
11 1 1 1 1 11
10 1 1 1 1 10
F = wx’z
yz
wx 00 01 11 10
00
01
11
10
72 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
73 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Example
01 1 1 1
11 1 1 1
10 1
74 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
in sum-of-product form
11 0 0 0 0
■ Should check both, sum of products,
and product of sums 10 1 1 0 1
❍ One is often simpler than the other
F’ = wx + yz + xz’
75 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
00
01
11
10
76 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
digit wxyz F
0 0000 0
1 0001 0
77 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
2 0010 0
3 0011 1
4 0100 0
5 0101 0
6 0110 1
7 0111 0
8 1000 0
9 1001 1
1010 - don’t care condition
1011 - ,,
1100 - ,,
1101 - ,,
1110 - ,,
1111 - ,,
❍ F= ∑ (3,6,9) + d(10,11,12,13,14,15)
78 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
00 1 00 0 0 0
01 1 01 0 0 0
11 X X X X 11 X X X X
10 1 X X 10 0 X X
(a) (b) 79 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
80 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
A
Z A Z Z
A A B Z
0 0
B 0 0 1
1 1 0 1 1
NAND gate 1 0 1
Buffer gate
1 1 0
A Z A B Z A Z A B Z
0 0 0
B 0 0 0
0 1 1
B 0 1 1
1 0 1
OR gate 1 0 1
1 1 1 XOR gate 1 1 0
A Z A B Z A Z A B Z
0 0 1
B 0 0 1
0 1 0
B 0 1 0
1 0 0
NOR gate 1 0 0
1 1 0 XNOR gate 1 1 1
81 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
82 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
A
Z A Z
■ Given F = xy’z + wx’ =
B B
same function x
y’ F = xy’z + wx’
❍ Function can be implemented with z
NAND gates only
w
x
❍ present the simplified function in sum y’ F = xy’z + wx’
of product form (AND-OR) z
w
❍ use De morgan’s theorem to represent
the function in NAND-NAND form x’
x
■ Similar steps for NOR implementation y’ F = xy’z + wx’
z
starting from product of sums form
w
x’
83 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
R R R
Out
Out Out
AND
logic x y
Input
Inputs
84 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
■ Some definitions
❍ Implicant: a grouping of one or more K map cells
❍ Prime implicant: an implicant that is not a subset of another
implicant
❍ Essential prime implicant: a prime implicant that covers at
least one minterm not covered by another prime implicant
00 1 1 1 00 1 1 1
01 1 1 1 01 1 1 1
X 1 X 1
11 11
10 1 10 1
xyz’ (6,14) *
w’x’y’ (0,1) A
w’x’z’ (0,2) B
w’xz (5,7) C
w’xy (6,7) D
w’yz’ (2,6)
E
86 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
87 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
88 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
89 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
w x y z
0 0 0 0 0
-- -----------------
4 0 1 0 0
8 1 0 0 0
-- --------------------
3 0 0 1 1
5 0 1 0 1
6 0 1 1 0
9 1 0 0 1
10 1 0 1 0
-- -------------------
7 0 1 1 1
11 1 0 1 1
-- -----------------
15 1 1 1 1
90 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
91 of 92
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
4,5,6,7
8,9,10,11
3,7,11,15
92 of 92
Department of Electrical & Computer Engineering, University of Waterloo