SlideShare a Scribd company logo
1 of 60
Lecture 8
The Karnaugh Map or K-map
Minimization of Boolean expressions
 The minimization will result in reduction of the number of
gates (resulting from less number of terms) and the
number of inputs per gate (resulting from less number of
variables per term)
 The minimization will reduce cost, efficiency and power
consumption.
 y(x+x`)=y.1=y
 y+xx`=y+0=y
 (x`y+xy`)=x⊕y
 (x`y`+xy)=(x⊕y)`
Minimum SOP and POS
 The minimum sum of products (MSOP) of a
function, f, is a SOP representation of f
that contains the fewest number of product
terms and fewest number of literals of any
SOP representation of f.
Minimum SOP and POS
f= (xyz +x`yz+ xy`z+ …..)
Is called sum of products.
The + is sum operator which is an OR gate.
The product such as xy is an AND gate for
the two inputs x and y.
Example
 Minimize the following Boolean function
using sum of products (SOP):
 f(a,b,c,d) = ∑m(3,7,11,12,13,14,15)
abcd
3 0011 a`b`cd
7 0111 a`bcd
11 1011 ab`cd
12 1100 abc`d`
13 1101 abc`d
14 1110 abcd`
15 1111 abcd
Example
f(a,b,c,d) = ∑m(3,7,11,12,13,14,15)
=a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` +
abcd
=cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd )
=cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d])
=cd(a`[1] + ab`) + ab(c`[1] + c[1])
=ab+ab`cd + a`cd
=ab+cd(ab` + a`)
=ab+ cd(a + a`)( a`+b`)
= ab + a`cd + b`cd
= ab +cd( a` + b`)
Minimum product of sums (MPOS)
 The minimum product of sums (MPOS) of a
function, f, is a POS representation of f that
contains the fewest number of sum terms
and the fewest number of literals of any POS
representation of f.
 The zeros are considered exactly the same
as ones in the case of sum of product (SOP)
Example
f(a,b,c,d) = M(0,1,2,4,5,6,8,9,10)
=m(3,7,11,12,13,14,15)
=[(a+b+c+d)(a+b+c+d`)(a+b`+c`+d`)
(a`+b+c`+d`)(a`+b`+c+ d)(a`+b`+c+
d`) (a`+b`+c`+d)(a`+b`+c`+d`)]
The Karnaugh Map
 Feel a little difficult using Boolean
algebra laws, rules, and theorems to
simplify logic?
 A K-map provides a systematic method
for simplifying Boolean expressions and,
if properly used, will produce the
simplest SOP or POS expression
possible, known as the minimum
expression.
What is K-Map
 It’s similar to truth table; instead of being
organized (i/p and o/p) into columns and rows,
the K-map is an array of cells in which each cell
represents a binary value of the input variables.
 The cells are arranged in a way so that
simplification of a given expression is simply a
matter of properly grouping the cells.
 K-maps can be used for expressions with 2, 3, 4,
and 5 variables.
 3 and 4 variables will be discussed to illustrate the
principles.
The 3 Variable K-Map
 There are 8 cells as shown:
C
AB
00
01
11
10
ABC ABC
ABC ABC
ABC ABC
ABC ABC
0 1
The 4-Variable K-Map
00 01 11 10
CD
AB
00
01
11
10
ABCD ABCD ABCD ABCD
ABCD ABCD ABCD ABCD
ABCD ABCD ABCD ABCD
ABCD ABCD ABCD ABCD
00 01 11 10
CD
AB
00
01
11
10
Cell Adjacency
K-Map SOP Minimization
 The K-Map is used for simplifying
Boolean expressions to their minimal
form.
 A minimized SOP expression contains
the fewest possible terms with fewest
possible variables per term.
 Generally, a minimum SOP expression
can be implemented with fewer logic
gates than a standard expression.
Mapping a Standard SOP
Expression
 For an SOP
expression in
standard form:
product term , a
1 goes in the 101 cell
on a 3-variable map.
C
AB
0 1
ABC ABC
ABC ABC
ABC ABC
ABC AB1C
00
01
11
10
 A 1 is placed on the K-
map for each product
term in the expression.
 Each 1 is placed in a
cell corresponding to
the value of a product
term.ABC
 Example: for the
C
AB
00
01
11
10
Mapping a Standard SOP
Expression (full example)
The expression:
ABC  ABC  ABC  ABC
000 001 110 100
0 1
1 1
1
1
ABCD  ABCD  ABCD  ABCD  ABCD  ABCD  ABCD
ABC  ABC  ABC
ABC  ABC  ABC  ABC
Practice:
Mapping a Nonstandard SOP
Expression
 A Boolean expression must be in
standard form before you use a K-map.
 If one is not in standard form, it must be
converted.
 You may use the procedure mentioned
earlier or use numerical expansion.
Mapping a Nonstandard SOP
Expression
follows: C
 Numerical Expansion of a Nonstandard product
term
 Assume that oneAo
B f the product terms in a certain 3-
variable SOP expression is .
 It can be expanded numerically to standard form as
 Step 1: Write the binary value of the two variables and
attach a 0 for the m
C
issing variable : 100.
 Step 2: Write the binary value of the two variables and
attach a 1 for the misAsBinCg variaAbBleC : 100.
 The two resulting binary numbers are the values of
the standard SOP terms  and .
 If the assumption that one of the product term
Mapping a Nonstandard SOP
Expression
A CD  ACD  ABCD
BC  AC
 Map the following SOP expressions on K-maps:
A  AB  ABC
BC  AB  ABC  ABCD  ABCD  ABCD
K-Map Simplification of SOP
Expressions
 After an SOP expression has been
mapped, we can do the process of
minimization:
 Grouping the 1s
 Determining the minimum SOP expression
from the map
Grouping the 1s
 You can group 1s on the K-map
according to the following rules by
enclosing those adjacent cells
containing 1s.
 The goal is to maximize the size of
the groups and to minimize the
number of groups.
Grouping the 1s (rules)
1. A group must contain either 1,2,4,8,or 16 cells
(depending on number of variables in the
expression)
2. Each cell in a group must be adjacent to one or
more cells in that same group, but all cells in the
group do not have to be adjacent to each other.
3. Always include the largest possible number of 1s
in a group in accordance with rule 1.
4. Each 1 on the map must be included in at least
one group. The 1s already in a group can be
included in another group as long as the
overlapping groups include noncommon 1s.
Grouping the 1s (example)
1
1
1 1
C
AB
00
01
11
10
0 1 0 1
C
AB
00
01
11
10
1 1
1
1
1 1
Grouping the 1s (example)
00 01 11 10
CD
AB
00
01
11
10
1 1
1 1 1 1
1 1
00 01 11 10
CD
AB
00
01
11
10
1 1
1 1 1
1 1 1
1 1 1
Determining the Minimum SOP
Expression from the Map
 The following rules are applied to find the
minimum product terms and the minimum
SOP expression:
1. Group the cells that have 1s. Each group of cell
containing 1s creates one product term
composed of all variables that occur in only one
form (either complemented or complemented)
within the group. Variables that occur both
complemented and uncomplemented within the
group are eliminated  called contradictory
variables.
Determining the Minimum SOP
Expression from the Map
2. Determine the minimum product term for
each group.
 For a 3-variable map:
1. A 1-cell group yields a 3-variable product term
2. A 2-cell group yields a 2-variable product term
3. A 4-cell group yields a 1-variable product term
4. An 8-cell group yields a value of 1 for the expression.
 For a 4-variable map:
1. A 1-cell group yields a 4-variable product term
2. A 2-cell group yields a 3-variable product term
3. A 4-cell group yields a 2-variable product term
4. An 8-cell group yields a a 1-variable product term
5. A 16-cell group yields a value of 1 for the expression.
Determining the Minimum SOP
Expression from the Map
3. When all the minimum product terms are
derived from the K-map, they are summed
to form the minimum SOP expression.
Determining the Minimum SOP
Expression from the Map (example)
AB
CD
00 01 11 10
00 1 1
01 1 1 1 1
11 1 1 1 1
10 1
AC
B
ACD
B  AC  ACD
Determining the Minimum SOP
Expression from the Map
(exercises)
AB  BC  ABC
1
1
1 1
C
AB
00
01
11
10
0 1 0 1
1
1
1
C
AB
00
01
11
10 1
1
1
B  AC  AC
Expression from the Map
(exercises)
AB  AC  ABD D  ABC  BC
00 01 11 10
CD
AB
00
01
11
10
1 1
1 1 1 1
1 1
00 01 11 10
CD
AB
00
01
11
10
1 1
1 1 1
1 1 1
1 1 1
Practicing K-Map (SOP)
BCD  ABCD  ABCD  ABCD  ABCD 
ABCD  ABCD  ABCD  ABCD
ABC  ABC  ABC  ABC  ABC
B  AC
D  BC
Mapping Directly from a Truth
Table
I/P O/P
A B C X
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
C
AB
00
01
11
10
0 1
1
1
1
1
“Don’t Care” Conditions
 Sometimes a situation arises in which some
input variable combinations are not allowed,
i.e. BCD code:
 There are six invalid combinations: 1010, 1011,
1100, 1101, 1110, and 1111.
 Since these unallowed states will never occur
in an application involving the BCD code 
they can be treated as “don’t care” terms
with respect to their effect on the output.
 The “don’t care” terms can be used to
advantage on the K-map (how? see the next
itions
“Don’t Care” Cond
INPUTS O/P
A B C D Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 X
1 0 1 1 X
1 1 0 0 X
1 1 0 1 X
1 1 1 0 X
1 1 1 1 X
AB
CD
00 01 11 10
00
01
11
10
1
x x x x
1 1 x x
Without “don’t care”
Y  ABC  ABCD
With “don’t care”
Y  A BCD
K-Map POS Minimization
 The approaches are much the same (as
SOP) except that with POS expression,
0s representing the standard sum terms
are placed on the K-map instead of 1s.
C
AB
0 1
00
01
11
10
Mapping a Standard POS
Expression (full example)
The expression:
(A B C)(A B C)(A  B C)(A  B C )
000 010 110 101
0
0
0
0
K-map Simplification of POS
Expression
(A B C)(A B C )(A B  C)(A B  C )(A  B  C)
C
AB
00
01
11
10
0 1
0 0
AB
0 0
0 AC
B  C
A
1
1
1
A(B C)
AB  AC
Karnaugh Maps (K-maps)
 Karnaugh maps -- A tool for
representing Boolean functions of up to
six variables.
 K-maps are tables of rows and columns
with entries represent 1`s or 0`s of
SOP and POS representations.
Karnaugh Maps (K-maps)
 An n-variable K-map has 2n
cells with each
cell corresponding to an n-variable truth table
value.
 K-map cells are labeled with the
corresponding truth-table row.
 K-map cells are arranged such that adjacent
cells correspond to truth rows that differ in
only one bit position (logical adjacency).
Karnaugh Maps (K-maps)
 If mi is a minterm of f, then place a 1 in
cell i of the K-map.
 If Mi is a maxterm of f, then place a 0 in
cell i.
 If di is a don’t care of f, then place a d
or x in cell i.
Examples
 Two variable K-map
f(A,B)= m(0,1,3)=A`B`+A`B+AB
1 0
1 1
A 0 1
B
0
1
Three variable map
1
A`B`C`
1
A`BC
1
AB`C
A`B`
0 0
A`B
0 1
A B
1 1
A B`
1 0
 f(A,B,C) =
m(0,3,5)=
A`B`C`+A`BC+AB`
C
C`
0
C
1
Maxterm example
f(A,B,C) = M(1,2,4,6,7)
=(A+B+C`)(A+B`+C)(A`+B+C) )(A`+B`+C) (A`+B`+C`)
Note that the complements are (0,3,5) which are the minterms
of the previous example
0 0 0
0 0
A`B` A`B AB AB`
C`
C
(A+B) (A+B`) (A`+B`) (A`+B)
C
C`
Four variable example
(a) Minterm form. (b) Maxterm form.
f(a,b,Q,G) = m(0,3,5,7,10,11,12,13,14,15) = M(1,2,4,6,8,9)
Simplification of Boolean Functions
Using K-maps
 K-map cells that are physically adjacent are also
logically adjacent. Also, cells on an edge of a K-map
are logically adjacent to cells on the opposite edge of
the map.
 If two logically adjacent cells both contain logical 1s,
the two cells can be combined to eliminate the
variable that has value 1 in one cell’s label and value
0 in the other.
Simplification of Boolean Functions
Using K-maps
 This is equivalent to the algebraic
operation, aP + a′P =P where P is a
product term not containing a or a′.
 A group of cells can be combined only if
all cells in the group have the same
value for some set of variables.
Simplification Guidelines for K-maps
 Always combine as many cells in a group as
possible. This will result in the fewest number of
literals in the term that represents the group.
 Make as few groupings as possible to cover all
minterms. This will result in the fewest product
terms.
 Always begin with the largest group, which
means if you can find eight members group is
better than two four groups and one four group
is better than pair of two-group.
Example
Simplify f= A`BC`+ A B C`+ A B C using;
(a) Sum of minterms. (b) Maxterms.
 Each cell of an n-variable K-map has n logically
adjacent cells.
C
AB
10
0 2 6 4
1 3 7 5
B
0
1 0
C
C
AB
00 11 10 00 01 11
0 2 6 4
1 3 7 5
0
1
A A
C
B
AB
BC
01
1 1
1 0
0 0
0
a- f(A,B,C) = AB + BC′ b- f(A,B,C) = B(A + C′)
F`= B`+ A`C F = B(A+C`)
Example Simplify
CD
AB
00 01 11 10
00
01
11
10
B
(a)
D
A
C
CD
AB
00 01 11 10
00
01
11
10
B
(b)
D
A
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
C
CD
AB
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
00 01 11 10
00
01
11
10
B
(c)
D
A
C
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
11
10
D
A
C
B
(d)
1 1
1 1 1
1
1 1
1
f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
Example Multiple selections
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
D
A
C
B
(a)
CD
AB
0 4
1
12 8
1
1 5 13 9
1 1
3
1
7
1
15
1
11
2
1
6 14 10
1
00 01 11 10
00
01
11
10
B
(b)
D
A
C
1 1
1 1
1 1
10 1 1
11 1
CD
AB
0 4
1
12 8
1
1 5 13 9
1 1
3
1
7
1
15
1
11
2
1
6 14 10
1
00 01 11 10
00
01
11
10
B
(c)
D
A
C
f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
c produces less terms than a
Example Redundant selections
f(A,B,C,D) = m(0,5,7,8,10,12,14,15)
1
1
CD
AB
00 01 11 10
00
01
11
10
B
(a)
D
A
C
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
11
10
D
A
C
B
(b)
0
1
4 12
1
8
1
1 5
1
13 9
3 7
1
15
1
11
2 6 14
1
10
1
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
01
11
10
D
A
C
B
(c)
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00 1
01
11
10
D
A
C
B
(d)
1
1 1
1
1
1
1 1
1
1 1
1
1
1
1 1
1
00 1 1
1
1
Example
Example
Example
f(A,B,C,D) = m(1,2,4,6,9)
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
11
10
B
D
1
01 1 1
1 1
A
C
Step 2
Step 1
Step 3
Different styles of drawing maps
f(A,B,C) = m(1,2,3,6) = A′
C + BC′
AB
C
0 2
1
6
1
4
1
1
3
1
7 5
00 01 11 10
0
B
C 1
A
00 01 11 10
BC
A
0
1
1 1 1
1
1
1 1
1
C
AB
0 1
00
01
11
10
•Minterms that may produce either 0 or 1 for the function.
•They are marked with an ´ in the K-map.
•This happens, for example, when we don’t input certain
minterms to the Boolean function.
•These don’t-care conditions can be used to provide further
simplification of the algebraic expression.
(Example) F =A`B`C`+A`BC` +ABC`
d=A`B`C +A`BC +AB`C
F = A` + BC`
Don’t-care condition
Five variable K-maps
U e Two Four-variable K-Maps
f(a,b,c,d,e) = m(0,5,7,13,15,16,21,23,29,31)
a` f
0 1
1 s
2
3
4
5 1
6
7 1
8
9
10
11
12
13 1
14
15 1
1
1 1
1 1
1
1 1
1 1
a`=0 map a=1 map
a f
16 1
17
18
19
20
21 1
22
23 1
24
25
26
27
28
29 1
30
31 1
a`=0 map a=1 map
1
1 1
1 1
1
1 1
1 1
F1=a`b`c`d`e` + a`ce,
f(a,b,c,d,e) = f1+f2
F2=ace + ab`c`d`e`
F=(a+a`)ce + (a+a`)b`c`d`e`
=ce + b`c`d`e`
Assignment – 8:
Solve the following boolean function
using k-map:
F(A,B,C,D) = Σm(3,5,6,7,9,11,15)

More Related Content

Similar to pos and do not care ppt.pptx

08 logic simplification
08 logic simplification08 logic simplification
08 logic simplificationarunachalamr16
 
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...Arti Parab Academics
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010arunachalamr16
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their functionkumarankit06875
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraMahiboobAliMulla
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptxVivekNaik55
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptxVivekNaik71
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptsonusreekumar
 
Electronic devices and circuits.pptx
Electronic devices and circuits.pptxElectronic devices and circuits.pptx
Electronic devices and circuits.pptxArunKumar674066
 
Lecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxLecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxWilliamJosephat1
 
Digital logic design lecture 07
Digital logic design   lecture 07 Digital logic design   lecture 07
Digital logic design lecture 07 FarhatUllah27
 
NOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxNOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxeedayaya1
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7wajanga
 

Similar to pos and do not care ppt.pptx (20)

08 logic simplification
08 logic simplification08 logic simplification
08 logic simplification
 
Simplification
SimplificationSimplification
Simplification
 
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Minimization Technique .ppt
 Minimization Technique .ppt Minimization Technique .ppt
Minimization Technique .ppt
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Document from Saikrish.S.pdf
Document from Saikrish.S.pdfDocument from Saikrish.S.pdf
Document from Saikrish.S.pdf
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptx
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptx
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
 
Electronic devices and circuits.pptx
Electronic devices and circuits.pptxElectronic devices and circuits.pptx
Electronic devices and circuits.pptx
 
Lecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxLecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptx
 
Digital logic design lecture 07
Digital logic design   lecture 07 Digital logic design   lecture 07
Digital logic design lecture 07
 
NOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxNOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptx
 
Chapter-3.ppt
Chapter-3.pptChapter-3.ppt
Chapter-3.ppt
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7
 
module3:Karnaugh Map
module3:Karnaugh Mapmodule3:Karnaugh Map
module3:Karnaugh Map
 

More from Dr. Pravin Prajapati

More from Dr. Pravin Prajapati (6)

Prp tunnel diode
Prp tunnel diodePrp tunnel diode
Prp tunnel diode
 
Opamp prp
Opamp prpOpamp prp
Opamp prp
 
Led prp
Led prpLed prp
Led prp
 
02 zenerdiodes ppt_prp
02 zenerdiodes ppt_prp02 zenerdiodes ppt_prp
02 zenerdiodes ppt_prp
 
01 pn junction diode characteristics prp
01 pn junction diode characteristics prp01 pn junction diode characteristics prp
01 pn junction diode characteristics prp
 
transmission line theory prp
transmission line theory prptransmission line theory prp
transmission line theory prp
 

Recently uploaded

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

pos and do not care ppt.pptx

  • 1. Lecture 8 The Karnaugh Map or K-map
  • 2. Minimization of Boolean expressions  The minimization will result in reduction of the number of gates (resulting from less number of terms) and the number of inputs per gate (resulting from less number of variables per term)  The minimization will reduce cost, efficiency and power consumption.  y(x+x`)=y.1=y  y+xx`=y+0=y  (x`y+xy`)=x⊕y  (x`y`+xy)=(x⊕y)`
  • 3. Minimum SOP and POS  The minimum sum of products (MSOP) of a function, f, is a SOP representation of f that contains the fewest number of product terms and fewest number of literals of any SOP representation of f.
  • 4. Minimum SOP and POS f= (xyz +x`yz+ xy`z+ …..) Is called sum of products. The + is sum operator which is an OR gate. The product such as xy is an AND gate for the two inputs x and y.
  • 5. Example  Minimize the following Boolean function using sum of products (SOP):  f(a,b,c,d) = ∑m(3,7,11,12,13,14,15) abcd 3 0011 a`b`cd 7 0111 a`bcd 11 1011 ab`cd 12 1100 abc`d` 13 1101 abc`d 14 1110 abcd` 15 1111 abcd
  • 6. Example f(a,b,c,d) = ∑m(3,7,11,12,13,14,15) =a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` + abcd =cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd ) =cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d]) =cd(a`[1] + ab`) + ab(c`[1] + c[1]) =ab+ab`cd + a`cd =ab+cd(ab` + a`) =ab+ cd(a + a`)( a`+b`) = ab + a`cd + b`cd = ab +cd( a` + b`)
  • 7. Minimum product of sums (MPOS)  The minimum product of sums (MPOS) of a function, f, is a POS representation of f that contains the fewest number of sum terms and the fewest number of literals of any POS representation of f.  The zeros are considered exactly the same as ones in the case of sum of product (SOP)
  • 9. The Karnaugh Map  Feel a little difficult using Boolean algebra laws, rules, and theorems to simplify logic?  A K-map provides a systematic method for simplifying Boolean expressions and, if properly used, will produce the simplest SOP or POS expression possible, known as the minimum expression.
  • 10. What is K-Map  It’s similar to truth table; instead of being organized (i/p and o/p) into columns and rows, the K-map is an array of cells in which each cell represents a binary value of the input variables.  The cells are arranged in a way so that simplification of a given expression is simply a matter of properly grouping the cells.  K-maps can be used for expressions with 2, 3, 4, and 5 variables.  3 and 4 variables will be discussed to illustrate the principles.
  • 11. The 3 Variable K-Map  There are 8 cells as shown: C AB 00 01 11 10 ABC ABC ABC ABC ABC ABC ABC ABC 0 1
  • 12. The 4-Variable K-Map 00 01 11 10 CD AB 00 01 11 10 ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD
  • 13. 00 01 11 10 CD AB 00 01 11 10 Cell Adjacency
  • 14. K-Map SOP Minimization  The K-Map is used for simplifying Boolean expressions to their minimal form.  A minimized SOP expression contains the fewest possible terms with fewest possible variables per term.  Generally, a minimum SOP expression can be implemented with fewer logic gates than a standard expression.
  • 15. Mapping a Standard SOP Expression  For an SOP expression in standard form: product term , a 1 goes in the 101 cell on a 3-variable map. C AB 0 1 ABC ABC ABC ABC ABC ABC ABC AB1C 00 01 11 10  A 1 is placed on the K- map for each product term in the expression.  Each 1 is placed in a cell corresponding to the value of a product term.ABC  Example: for the
  • 16. C AB 00 01 11 10 Mapping a Standard SOP Expression (full example) The expression: ABC  ABC  ABC  ABC 000 001 110 100 0 1 1 1 1 1 ABCD  ABCD  ABCD  ABCD  ABCD  ABCD  ABCD ABC  ABC  ABC ABC  ABC  ABC  ABC Practice:
  • 17. Mapping a Nonstandard SOP Expression  A Boolean expression must be in standard form before you use a K-map.  If one is not in standard form, it must be converted.  You may use the procedure mentioned earlier or use numerical expansion.
  • 18. Mapping a Nonstandard SOP Expression follows: C  Numerical Expansion of a Nonstandard product term  Assume that oneAo B f the product terms in a certain 3- variable SOP expression is .  It can be expanded numerically to standard form as  Step 1: Write the binary value of the two variables and attach a 0 for the m C issing variable : 100.  Step 2: Write the binary value of the two variables and attach a 1 for the misAsBinCg variaAbBleC : 100.  The two resulting binary numbers are the values of the standard SOP terms  and .  If the assumption that one of the product term
  • 19. Mapping a Nonstandard SOP Expression A CD  ACD  ABCD BC  AC  Map the following SOP expressions on K-maps: A  AB  ABC BC  AB  ABC  ABCD  ABCD  ABCD
  • 20. K-Map Simplification of SOP Expressions  After an SOP expression has been mapped, we can do the process of minimization:  Grouping the 1s  Determining the minimum SOP expression from the map
  • 21. Grouping the 1s  You can group 1s on the K-map according to the following rules by enclosing those adjacent cells containing 1s.  The goal is to maximize the size of the groups and to minimize the number of groups.
  • 22. Grouping the 1s (rules) 1. A group must contain either 1,2,4,8,or 16 cells (depending on number of variables in the expression) 2. Each cell in a group must be adjacent to one or more cells in that same group, but all cells in the group do not have to be adjacent to each other. 3. Always include the largest possible number of 1s in a group in accordance with rule 1. 4. Each 1 on the map must be included in at least one group. The 1s already in a group can be included in another group as long as the overlapping groups include noncommon 1s.
  • 23. Grouping the 1s (example) 1 1 1 1 C AB 00 01 11 10 0 1 0 1 C AB 00 01 11 10 1 1 1 1 1 1
  • 24. Grouping the 1s (example) 00 01 11 10 CD AB 00 01 11 10 1 1 1 1 1 1 1 1 00 01 11 10 CD AB 00 01 11 10 1 1 1 1 1 1 1 1 1 1 1
  • 25. Determining the Minimum SOP Expression from the Map  The following rules are applied to find the minimum product terms and the minimum SOP expression: 1. Group the cells that have 1s. Each group of cell containing 1s creates one product term composed of all variables that occur in only one form (either complemented or complemented) within the group. Variables that occur both complemented and uncomplemented within the group are eliminated  called contradictory variables.
  • 26. Determining the Minimum SOP Expression from the Map 2. Determine the minimum product term for each group.  For a 3-variable map: 1. A 1-cell group yields a 3-variable product term 2. A 2-cell group yields a 2-variable product term 3. A 4-cell group yields a 1-variable product term 4. An 8-cell group yields a value of 1 for the expression.  For a 4-variable map: 1. A 1-cell group yields a 4-variable product term 2. A 2-cell group yields a 3-variable product term 3. A 4-cell group yields a 2-variable product term 4. An 8-cell group yields a a 1-variable product term 5. A 16-cell group yields a value of 1 for the expression.
  • 27. Determining the Minimum SOP Expression from the Map 3. When all the minimum product terms are derived from the K-map, they are summed to form the minimum SOP expression.
  • 28. Determining the Minimum SOP Expression from the Map (example) AB CD 00 01 11 10 00 1 1 01 1 1 1 1 11 1 1 1 1 10 1 AC B ACD B  AC  ACD
  • 29. Determining the Minimum SOP Expression from the Map (exercises) AB  BC  ABC 1 1 1 1 C AB 00 01 11 10 0 1 0 1 1 1 1 C AB 00 01 11 10 1 1 1 B  AC  AC
  • 30. Expression from the Map (exercises) AB  AC  ABD D  ABC  BC 00 01 11 10 CD AB 00 01 11 10 1 1 1 1 1 1 1 1 00 01 11 10 CD AB 00 01 11 10 1 1 1 1 1 1 1 1 1 1 1
  • 31. Practicing K-Map (SOP) BCD  ABCD  ABCD  ABCD  ABCD  ABCD  ABCD  ABCD  ABCD ABC  ABC  ABC  ABC  ABC B  AC D  BC
  • 32. Mapping Directly from a Truth Table I/P O/P A B C X 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 C AB 00 01 11 10 0 1 1 1 1 1
  • 33. “Don’t Care” Conditions  Sometimes a situation arises in which some input variable combinations are not allowed, i.e. BCD code:  There are six invalid combinations: 1010, 1011, 1100, 1101, 1110, and 1111.  Since these unallowed states will never occur in an application involving the BCD code  they can be treated as “don’t care” terms with respect to their effect on the output.  The “don’t care” terms can be used to advantage on the K-map (how? see the next
  • 34. itions “Don’t Care” Cond INPUTS O/P A B C D Y 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 X 1 0 1 1 X 1 1 0 0 X 1 1 0 1 X 1 1 1 0 X 1 1 1 1 X AB CD 00 01 11 10 00 01 11 10 1 x x x x 1 1 x x Without “don’t care” Y  ABC  ABCD With “don’t care” Y  A BCD
  • 35. K-Map POS Minimization  The approaches are much the same (as SOP) except that with POS expression, 0s representing the standard sum terms are placed on the K-map instead of 1s.
  • 36. C AB 0 1 00 01 11 10 Mapping a Standard POS Expression (full example) The expression: (A B C)(A B C)(A  B C)(A  B C ) 000 010 110 101 0 0 0 0
  • 37. K-map Simplification of POS Expression (A B C)(A B C )(A B  C)(A B  C )(A  B  C) C AB 00 01 11 10 0 1 0 0 AB 0 0 0 AC B  C A 1 1 1 A(B C) AB  AC
  • 38. Karnaugh Maps (K-maps)  Karnaugh maps -- A tool for representing Boolean functions of up to six variables.  K-maps are tables of rows and columns with entries represent 1`s or 0`s of SOP and POS representations.
  • 39. Karnaugh Maps (K-maps)  An n-variable K-map has 2n cells with each cell corresponding to an n-variable truth table value.  K-map cells are labeled with the corresponding truth-table row.  K-map cells are arranged such that adjacent cells correspond to truth rows that differ in only one bit position (logical adjacency).
  • 40. Karnaugh Maps (K-maps)  If mi is a minterm of f, then place a 1 in cell i of the K-map.  If Mi is a maxterm of f, then place a 0 in cell i.  If di is a don’t care of f, then place a d or x in cell i.
  • 41. Examples  Two variable K-map f(A,B)= m(0,1,3)=A`B`+A`B+AB 1 0 1 1 A 0 1 B 0 1
  • 42. Three variable map 1 A`B`C` 1 A`BC 1 AB`C A`B` 0 0 A`B 0 1 A B 1 1 A B` 1 0  f(A,B,C) = m(0,3,5)= A`B`C`+A`BC+AB` C C` 0 C 1
  • 43. Maxterm example f(A,B,C) = M(1,2,4,6,7) =(A+B+C`)(A+B`+C)(A`+B+C) )(A`+B`+C) (A`+B`+C`) Note that the complements are (0,3,5) which are the minterms of the previous example 0 0 0 0 0 A`B` A`B AB AB` C` C (A+B) (A+B`) (A`+B`) (A`+B) C C`
  • 44. Four variable example (a) Minterm form. (b) Maxterm form. f(a,b,Q,G) = m(0,3,5,7,10,11,12,13,14,15) = M(1,2,4,6,8,9)
  • 45. Simplification of Boolean Functions Using K-maps  K-map cells that are physically adjacent are also logically adjacent. Also, cells on an edge of a K-map are logically adjacent to cells on the opposite edge of the map.  If two logically adjacent cells both contain logical 1s, the two cells can be combined to eliminate the variable that has value 1 in one cell’s label and value 0 in the other.
  • 46. Simplification of Boolean Functions Using K-maps  This is equivalent to the algebraic operation, aP + a′P =P where P is a product term not containing a or a′.  A group of cells can be combined only if all cells in the group have the same value for some set of variables.
  • 47. Simplification Guidelines for K-maps  Always combine as many cells in a group as possible. This will result in the fewest number of literals in the term that represents the group.  Make as few groupings as possible to cover all minterms. This will result in the fewest product terms.  Always begin with the largest group, which means if you can find eight members group is better than two four groups and one four group is better than pair of two-group.
  • 48. Example Simplify f= A`BC`+ A B C`+ A B C using; (a) Sum of minterms. (b) Maxterms.  Each cell of an n-variable K-map has n logically adjacent cells. C AB 10 0 2 6 4 1 3 7 5 B 0 1 0 C C AB 00 11 10 00 01 11 0 2 6 4 1 3 7 5 0 1 A A C B AB BC 01 1 1 1 0 0 0 0 a- f(A,B,C) = AB + BC′ b- f(A,B,C) = B(A + C′) F`= B`+ A`C F = B(A+C`)
  • 49. Example Simplify CD AB 00 01 11 10 00 01 11 10 B (a) D A C CD AB 00 01 11 10 00 01 11 10 B (b) D A 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 C CD AB 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 00 01 11 10 00 01 11 10 B (c) D A C CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 11 10 D A C B (d) 1 1 1 1 1 1 1 1 1 f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
  • 50. Example Multiple selections CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 D A C B (a) CD AB 0 4 1 12 8 1 1 5 13 9 1 1 3 1 7 1 15 1 11 2 1 6 14 10 1 00 01 11 10 00 01 11 10 B (b) D A C 1 1 1 1 1 1 10 1 1 11 1 CD AB 0 4 1 12 8 1 1 5 13 9 1 1 3 1 7 1 15 1 11 2 1 6 14 10 1 00 01 11 10 00 01 11 10 B (c) D A C f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15) c produces less terms than a
  • 51. Example Redundant selections f(A,B,C,D) = m(0,5,7,8,10,12,14,15) 1 1 CD AB 00 01 11 10 00 01 11 10 B (a) D A C CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 11 10 D A C B (b) 0 1 4 12 1 8 1 1 5 1 13 9 3 7 1 15 1 11 2 6 14 1 10 1 CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 01 11 10 D A C B (c) CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 1 01 11 10 D A C B (d) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00 1 1 1 1
  • 55. f(A,B,C,D) = m(1,2,4,6,9) CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 11 10 B D 1 01 1 1 1 1 A C Step 2 Step 1 Step 3
  • 56. Different styles of drawing maps f(A,B,C) = m(1,2,3,6) = A′ C + BC′ AB C 0 2 1 6 1 4 1 1 3 1 7 5 00 01 11 10 0 B C 1 A 00 01 11 10 BC A 0 1 1 1 1 1 1 1 1 1 C AB 0 1 00 01 11 10
  • 57. •Minterms that may produce either 0 or 1 for the function. •They are marked with an ´ in the K-map. •This happens, for example, when we don’t input certain minterms to the Boolean function. •These don’t-care conditions can be used to provide further simplification of the algebraic expression. (Example) F =A`B`C`+A`BC` +ABC` d=A`B`C +A`BC +AB`C F = A` + BC` Don’t-care condition
  • 58. Five variable K-maps U e Two Four-variable K-Maps f(a,b,c,d,e) = m(0,5,7,13,15,16,21,23,29,31) a` f 0 1 1 s 2 3 4 5 1 6 7 1 8 9 10 11 12 13 1 14 15 1 1 1 1 1 1 1 1 1 1 1 a`=0 map a=1 map a f 16 1 17 18 19 20 21 1 22 23 1 24 25 26 27 28 29 1 30 31 1
  • 59. a`=0 map a=1 map 1 1 1 1 1 1 1 1 1 1 F1=a`b`c`d`e` + a`ce, f(a,b,c,d,e) = f1+f2 F2=ace + ab`c`d`e` F=(a+a`)ce + (a+a`)b`c`d`e` =ce + b`c`d`e`
  • 60. Assignment – 8: Solve the following boolean function using k-map: F(A,B,C,D) = Σm(3,5,6,7,9,11,15)