SlideShare ist ein Scribd-Unternehmen logo
1 von 31
KARNAUGH MAP (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
 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.
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.
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
7 0111
11 1011
12 1100
13 1101
14 1110
15 1111
a`b`cd
a`bcd
ab`cd
abc`d`
abc`d
abcd`
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`)]
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
B01
Three variable map
 f(A,B,C) =
∑m(0,3,5)=
A`B`C`+A`BC+AB’C
1
1
A`BC
1
AB`C
A`B`
0 0
A`B
0 1
A B
1 1
A B`
1 0
C`
0
C
1
A`B`C`
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.
a- f(A,B,C) = AB + BC′ b- f(A,B,C) = B(A + C′)
F`= B`+ A`C F = B(A+C`)
 Each cell of an n-variable K-map has n logically
adjacent cells.
Example Simplify
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
1
A
C
1 1
( a ) ( b )
1
1
1
1 1
1 1
1 1
1 1
1 1 1
1
1 1
11 1
1
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
1
A
C
1 1
( c ) ( d )
1
1
1
1 1
1 1
1 1
1 1
1 1 1
1
1 1
11 1
1
f(A,B,C,D) = ∑m(2,3,4,5,7,8,10,13,15)
Example Multiple selections
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
1
A
C
1 1
( a ) ( b )
1
1
1
1 1
1 1
1 1
1 1
1 1 1
1
1 1
11 1
1
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
1 1
1 1
1 1
1 1
1
( 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 1
1
1 11
1
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
( a ) ( b )
1
1 1
1
1
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
A
C
1
( c ) ( d )
1
1
1
1 1
1
1
1 11
1
1
1 1
1
1 11
1
1
1 1
1
1 11
1
Example
Example
Example
f(A,B,C,D) = ∑m(1,2,4,6,9)
C D
A B
0 0 0 1 1 1 1 0
0 4 1 2 8
1 5 1 3 9
3 7 1 5 1 1
2 6 1 4 1 0
0 0
0 1
1 1
1 0
B
D
1
1 1
1 1
A
C
S t e p 2
S t e p 1
S t e p 3
Different styles of drawing maps
f(A,B,C) = ∑m(1,2,3,6) = A′C + BC′
1
C
A B
0 0 0 1 1 1 1 0
0 2 6 4
3 7 5
0
1
B
1 1
1 1
A
C
BC
A 00 01 11 10
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
Use Two Four-variable K-Maps
a`=0 map a=1 map
1
1
1
1
1
1
1
1
1 1
f(a,b,c,d,e) = ∑m(0,5,7,13,15,16,21,23,29,31)
a` f
0 1
1
2
3
4
5 1
6
7 1
8
9
10
11
12
13 1
14
15 1
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, F2=ace + ab`c`d`e`
f(a,b,c,d,e) = f1+f2
F=(a+a`)ce + (a+a`)b`c`d`e`
=ce + b`c`d`e`
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Karnaugh Map (K-map)
Karnaugh Map (K-map)Karnaugh Map (K-map)
Karnaugh Map (K-map)
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
K map
K mapK map
K map
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Fulll Adder
Fulll AdderFulll Adder
Fulll Adder
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 
K map
K mapK map
K map
 

Andere mochten auch

Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
Gagan Deep
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
parsa.khan64
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 

Andere mochten auch (20)

Karnaugh Mapping Explained
Karnaugh Mapping ExplainedKarnaugh Mapping Explained
Karnaugh Mapping Explained
 
Karnaugh Maps
Karnaugh MapsKarnaugh Maps
Karnaugh Maps
 
Basics of K map
Basics of K mapBasics of K map
Basics of K map
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
K map
K mapK map
K map
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
K-map method
K-map methodK-map method
K-map method
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
DIGITAL ELECTRONICS- Minimization Technique Karnaugh Map
DIGITAL ELECTRONICS- Minimization TechniqueKarnaugh MapDIGITAL ELECTRONICS- Minimization TechniqueKarnaugh Map
DIGITAL ELECTRONICS- Minimization Technique Karnaugh Map
 
The Karnaugh Map
The Karnaugh MapThe Karnaugh Map
The Karnaugh Map
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
K-Map Solver Circuit
K-Map Solver CircuitK-Map Solver Circuit
K-Map Solver Circuit
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos forms
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebra
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 

Ähnlich wie KARNAUGH MAP(K-MAP)

Mid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docxMid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docx
annandleola
 
LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!
A Jorge Garcia
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx
KiyokoSlagleis
 

Ähnlich wie KARNAUGH MAP(K-MAP) (20)

Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
kmaps
 kmaps kmaps
kmaps
 
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
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
 
Form 5 Additional Maths Note
Form 5 Additional Maths NoteForm 5 Additional Maths Note
Form 5 Additional Maths Note
 
Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007 Gate Computer Science Solved Paper 2007
Gate Computer Science Solved Paper 2007
 
pos and do not care ppt.pptx
pos and do not care ppt.pptxpos and do not care ppt.pptx
pos and do not care ppt.pptx
 
Perm winter school 2014.01.31
Perm winter school 2014.01.31Perm winter school 2014.01.31
Perm winter school 2014.01.31
 
ISI MSQE Entrance Question Paper (2010)
ISI MSQE Entrance Question Paper (2010)ISI MSQE Entrance Question Paper (2010)
ISI MSQE Entrance Question Paper (2010)
 
Add math may june 2016 p1
Add math may june 2016 p1Add math may june 2016 p1
Add math may june 2016 p1
 
algo1
algo1algo1
algo1
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
 
Aman 2015
Aman 2015Aman 2015
Aman 2015
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 
Mid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docxMid-Term ExamName___________________________________MU.docx
Mid-Term ExamName___________________________________MU.docx
 
LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!
 
Gate-Cs 2007
Gate-Cs 2007Gate-Cs 2007
Gate-Cs 2007
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx
 
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...
 

Mehr von mihir jain (14)

Schering bridge
Schering bridge Schering bridge
Schering bridge
 
signal & system inverse z-transform
signal & system inverse z-transformsignal & system inverse z-transform
signal & system inverse z-transform
 
Types of system
Types of system Types of system
Types of system
 
Pump theory
Pump theory Pump theory
Pump theory
 
euler's theorem
euler's theoremeuler's theorem
euler's theorem
 
Ozone layer
Ozone layer Ozone layer
Ozone layer
 
Maths-double integrals
Maths-double integralsMaths-double integrals
Maths-double integrals
 
inverse z-transform ppt
inverse z-transform pptinverse z-transform ppt
inverse z-transform ppt
 
Ch1
Ch1Ch1
Ch1
 
Ct signal operations
Ct signal operationsCt signal operations
Ct signal operations
 
SIGNAL OPERATIONS
SIGNAL OPERATIONSSIGNAL OPERATIONS
SIGNAL OPERATIONS
 
SPECIAL PURPOSE DIODE
SPECIAL PURPOSE DIODESPECIAL PURPOSE DIODE
SPECIAL PURPOSE DIODE
 
2 port network
2 port network2 port network
2 port network
 
Advance engineering mathematics
Advance engineering mathematicsAdvance engineering mathematics
Advance engineering mathematics
 

Kürzlich hochgeladen

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
 

Kürzlich hochgeladen (20)

Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
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...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
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...
 
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
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
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)
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 

KARNAUGH MAP(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  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.
  • 4. 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.
  • 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 7 0111 11 1011 12 1100 13 1101 14 1110 15 1111 a`b`cd a`bcd ab`cd abc`d` abc`d abcd` 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. 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.
  • 10. 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).
  • 11. 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.
  • 12. Examples  Two variable K-map f(A,B)=∑m(0,1,3)=A`B`+A`B+AB 1 0 1 1 A 0 1 B01
  • 13. Three variable map  f(A,B,C) = ∑m(0,3,5)= A`B`C`+A`BC+AB’C 1 1 A`BC 1 AB`C A`B` 0 0 A`B 0 1 A B 1 1 A B` 1 0 C` 0 C 1 A`B`C`
  • 14. 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`
  • 15. 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)
  • 16. 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.
  • 17. 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.
  • 18. 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.
  • 19. Example Simplify f= A`BC`+ A B C`+ A B C using; (a) Sum of minterms. (b) Maxterms. a- f(A,B,C) = AB + BC′ b- f(A,B,C) = B(A + C′) F`= B`+ A`C F = B(A+C`)  Each cell of an n-variable K-map has n logically adjacent cells.
  • 20. Example Simplify C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 A C 1 1 ( a ) ( b ) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 A C 1 1 ( c ) ( d ) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 f(A,B,C,D) = ∑m(2,3,4,5,7,8,10,13,15)
  • 21. Example Multiple selections C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 A C 1 1 ( a ) ( b ) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C 1 1 1 1 1 1 1 1 1 ( c ) f(A,B,C,D) = ∑m(2,3,4,5,7,8,10,13,15) c produces less terms than a
  • 22. Example Redundant selections f(A,B,C,D) = ∑m(0,5,7,8,10,12,14,15) 1 1 1 1 1 11 1 C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C ( a ) ( b ) 1 1 1 1 1 C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D A C 1 ( c ) ( d ) 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 11 1 1 1 1 1 1 11 1
  • 26. f(A,B,C,D) = ∑m(1,2,4,6,9) C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 1 1 1 1 A C S t e p 2 S t e p 1 S t e p 3
  • 27. Different styles of drawing maps f(A,B,C) = ∑m(1,2,3,6) = A′C + BC′ 1 C A B 0 0 0 1 1 1 1 0 0 2 6 4 3 7 5 0 1 B 1 1 1 1 A C BC A 00 01 11 10 0 1 1 1 1 1 1 1 1 1 C AB 0 1 00 01 11 10
  • 28. •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
  • 29. Five variable K-maps Use Two Four-variable K-Maps a`=0 map a=1 map 1 1 1 1 1 1 1 1 1 1 f(a,b,c,d,e) = ∑m(0,5,7,13,15,16,21,23,29,31) a` f 0 1 1 2 3 4 5 1 6 7 1 8 9 10 11 12 13 1 14 15 1 a f 16 1 17 18 19 20 21 1 22 23 1 24 25 26 27 28 29 1 30 31 1
  • 30. a`=0 map a=1 map 1 1 1 1 1 1 1 1 1 1 F1=a`b`c`d`e` + a`ce, F2=ace + ab`c`d`e` f(a,b,c,d,e) = f1+f2 F=(a+a`)ce + (a+a`)b`c`d`e` =ce + b`c`d`e`