Lec 12
Lec 12
Lecture 12
Recap
Karnaugh Maps
Mapping Standard POS expressions
Mapping Non-Standard POS expressions
Simplification of K-maps for POS
expressions
SOP-POS conversion using K-map
5-variable K-map
Functions having multiple outputs
Comparator Circuit
Inputs two 2-bit binary numbers A and B
Has three outputs
A>B
A=B
A<B
Function Table for A>B
A 1 B1 A 0 B1 B 0 A 1 A 0 B 0
A1A0/
00 01 11 10
B1B0
00 0 0 0 0
01 1 0 0 0
11 1 1 0 1
10 1 1 0 0
Karnaugh Map for A=B
00 1 0 0 0
01 0 1 0 0
11 0 0 1 0
10 0 0 0 1
Karnaugh Map for A<B
A 1B1 A 1 A 0B 0 A 0B1B 0
A1A0/
00 01 11 10
B1B0
00 0 1 1 1
01 0 0 1 1
11 0 0 0 0
10 0 0 1 0
Quine-McCluskey Method
Difficult to manage K-maps of more than 4
variables
With a 4-varaible K-map optimum groups
of 1s and 0s are not formed
Karnaugh Map
AB/
00 01 11 10
CD
00 0 1 1 0
01 0 0 1 1
11 1 1 1 1
10 1 1 1 0
Karnaugh Map
AB/
00 01 11 10
CD
00 0 1 0 0
01 0 1 1 1
11 1 1 1 0
10 0 0 1 0
Quine-McCluskey Method
Programmed based approach
Two step method
Find Prime Implicants through exhaustive
search
Selecting minimal set of essential prime
implicants
Quine-McCluskey Method (table1)
Minterm A B C D
1 0 0 0 1
3 0 0 1 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Quine-McCluskey Method (table2)
Minterm A B C D used
1 0 0 0 1
8 1 0 0 0
3 0 0 1 1
6 0 1 1 0
9 1 0 0 1
12 1 1 0 0
7 0 1 1 1
11 1 0 1 1
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Quine-McCluskey Method (table3)
A B C D used
1,3 0 0 - 1
1,9 - 0 0 1
8,9 1 0 0 -
8,12 1 - 0 0
3,7 0 - 1 1
3,11 - 0 1 1
6,7 0 1 1 -
6,14 - 1 1 0
9,11 1 0 - 1
9,13 1 - 0 1
Quine-McCluskey Method (table3)
A B C D used
12,13 1 1 0 -
12,14 1 1 - 0
7,15 - 1 1 1
11,15 1 - 1 1
13,15 1 1 - 1
14,15 1 1 1 -
Quine-McCluskey Method (table4)
A B C D used
1,3,9,11 - 0 - 1
8,9,12,13 1 - 0 -
3,7,11,15 - - 1 1
6,7,14,15 - 1 1 -
9,11,13,15 1 - - 1
12,13,14,15 1 1 - -
Quine-McCluskey Method (table5)
1 3 6 7 8 9 11 12 13 14 15
BD x x x x
AC x x x x
CD x x x x
BC x x x x
AD x x x x
AB x x x x
Example 2
Slightly different method that uses binary
values
Quine-McCluskey Method (table1)
Minterm A B C D
1 0 0 0 1
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
15 1 1 1 1
Quine-McCluskey Method (table2)
Minterm A B C D Used
1 0 0 0 1
5 0 1 0 1
6 0 1 1 0
12 1 1 0 0
7 0 1 1 1
11 1 0 1 1
13 1 1 0 1
15 1 1 1 1
Quine-McCluskey Method (table3)
5,7,13,15 2,8
Quine-McCluskey Method (table5)
1 5 6 7 11 12 13 15
A CD x x
x x
ABC
x x
ABC
ACD x x
BD x x x x
Quine-McCluskey Method
Comparator that compares two 3-bit
numbers
6 variables, 64 input combinations
Representing the comparator function
through function table long and tedious
Represent three output functions in terms
of minterms
Solve by Quine-McClusky method
Odd Prime Number Circuit
Circuit detects odd prime numbers for a 5-
bit input number
Function represented by minterms
1, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31