Logic Circuit Report
Logic Circuit Report
CHAPTER 6
Simplification of
Functions on Karnaugh
Maps
By:
Riza M. Arceño
Karen Joy Delgado
2
Examples of K-Maps:
Examples:
Cell numbers are written in the cells.
2-variable K-map
B
0 1
A
0 0 1
1 2 3
5
3-Variable K-Map:
3-variable K-map
BC
A 00 01 11 10
0 0 1 3 2
1 4 5 7 6
6
4-variable K-map
4-variable K-map
CD
AB 00 01 11 10
00 0 1 3 2
01 4 5 7 6
11 12 13 15 14
10 8 9 11 10
7
Maxterms (continued):
For every K-map, each cell has one Maxterm
associated with it.
Thus for cell no.13 in the 4-variable K-map,
M13 = A’ + B’ + C + D’
By De Morgan’s theorem,
mi = Mi’
ADJACENT minterms (Maxterms):
Minterm which are identical, except for one variable, are
considered to be adjacent to one another.
In a K-map, the corresponding cells are said to be
adjacent cells.
10
Adjacent minterms:
Thus in K-4,
Cell O is adjacent to cells 1, 4, 2 and 8.
In a K-map, the corresponding cells in the top and the
bottom rows are adjacent to each other.
Similarly the corresponding cells in the leftmost column
and the rightmost column are adjacent to each other.
An Example:
A function F, of 4 variables, is defined by the truth table
given in the next slide. ( and again given in the next 3
slides):
11
Example: TruthTable
Dec A B C D F
number
0 0 0 0 0 1
1 0 0 0 1 0
2 0 0 1 0 1
3 0 0 1 1 1
4 0 1 0 0 0
5 0 1 0 1 1
13
12 1 1 0 0 0
13 1 1 0 1 0
14 1 1 1 0 1
15 1 1 1 1 1
15
Some definitions:
The definitions: Given a function F of n variables.
Implicant:
A minterm P is an implicant of F if and only if, for the
combination of values of the n variables, for which P
= 1, F is also equal to 1.
Exam 2:
F=∑ m(0,2,8,9,10,11,14,15)
F= A.B’+A.C+B’.D’
24
Full-adder:
A B C S Carry
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0 Carry= A.C+A.B+B.C
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
S=A.B’.C’ + A’.B’.C+A.B.C+A’.B.C’
25
Example 1:
w A
x F
y N1 B N2
z C
Let A,B and C never have 001 or 110 values. Then for F, values of 001 and 110 for
A, B and C are not of any importance.
Exam 2: All possible input combinations are present. But the output is used in
such a way that we do not care whether it is 0 or 1 for certain input
combinations.
F= ∑ m(0,3,7)+ ∑ d(1,6)
Or F = Π M(2,4,5) Π D(1,6)
27
Solution:
F1 = ∑m (1,2,5,6)
F2 =∑ m(0,2,4,6)
F3 =∑m (1,3,5,7)
F= ∑m (1, 2, 6 ), d(0, 3, 4, 7)
F1 = ∑m (1,2,5,6)
F2 =∑ m(0,2,4,6) F2=C’
F3 =∑m (1,3,5,7)
F3=C
F1=B’C+BC’
30
N1 N2