SlideShare a Scribd company logo
1 of 33
Electronics and Communication Engineering Department
National Institute of Technology, Hamirpur
Karnaugh Map
Presented by
Dr. Gargi Khanna
Associate Professor
E&CED Dept. , NIT Hamirpur, HP.
K-Map (Karnaugh Map)
 Boolean Algebra: The results obtained from Boolean algebra is not
always minimum
 K-Map: K-Map is a method to simplify Boolean algebra expressions
& it also reduces the need of extensive calculations
 The results obtained from k-map are always most minimised & it is
less time consuming process
Pictorial form of a truth table
Rules of K-Map:
 Grouping of 1’s ( not include any cell containing a zero) or
Grouping of 0’s ( not include any cell containing a one)
 Groups may be vertical or horizontal, but not diagonal
 Groups must contain 1,2,4,8 or in general 2^n cells.
 Only power of 2 number of cells in each group
 Groups should be as large as possible
 Every 1 must be in at-least one group
 Overlapping allowed
 Wrap around allowed
 Fewest number of groups possible
Representation of 2,3 & 4 Variable K-Map
0 1
2 3
0 1 3 2
4 5 7 6
0 1 3 2
4 5 7 6
12 13 15 14
8 9 11 10
A
B
A
BC CD
AB
00 01 11 10 10
10
11
11
01
01
00
00
0 1
1
0
2 Variable k-map
3 Variable k-map
4 Variable k-map
0
1
 Any two adjacent cells in the map differ by only one variable, Which
appears complemented in one cell and uncomplemented in other
 Generally, a minimum SOP or POS expression can be
implemented with fewer logic gates than a standard expression
Maxterm/Minterm Corresponding to Each Cell of K-maps
Maxterm/Minterm Corresponding to Each Cell of K-maps
SIMPLIFICATION OF LOGICAL FUNCTIONS
USING K-MAP
based on the principle of combining terms
Two cells are said to be adjacent if they differ in only one
variable.
If there are two adjacent ones on the map, these can be grouped
together and the resulting term will have one less literal than the
original two terms.
Y=Σm(0,3,7,4)
(0,4) (3,7)
Pair Formation
Pair formation results in one variable elimination
Grouping Four Adjacent Ones
Four cells form a group of four adjacent ones if two of the literals
associated with the minterms/maxterms are not same and the other literals
are same
Grouping Eight Adjacent Ones
 Eight cells form a group of eight adjacent ones if three of the literals associated
with the minterms/maxterms are not same and the other literals are same.
 In case of 3-variable Kmap, there is only one possibility of eight ones appearing in
the K-map and this corresponds to output equal to 1, irrespective of the values of
the input variables.
Cont..
Boolean function solution using Boolean algebra
Truth Table
Boolean Function
Minimised solution using
Boolean rules
Cont..
Boolean function solution using K-Map
Boolean Function
Truth Table
Minimised solution using
K-Map
K-Map Basics
K-Map Examples
Ex.1 f(A,B,C)= ∑m (1,3,5,7)
I. Find out no. of variables
n=3
II. Fin out no. of cell in k-map
2^3= 8 cells
III. Solve it by using k-map
Where A= MSB bit, C= LSB bit and
1(m1),3(m3),5(m5),7(m7) are the minterms
Minimised Result
Cont..
Ex.2 f (A,B,C)= ∑m (0,1,2,4,7)
I. Find out no. of variables n=3
II. Fin out no. of cell in k-map 2^3= 8 cells
III. Solve it by using k-map
Minimised Result
Cont..
Ex.3 f (A,B,C)= ∑m (1,3,6,7)
I. Find out no. of variables
n=3
II. Fin out no. of cell in k-map
2^3= 8 cells
III. Solve it by using k-map
IV.Special case of k-map i.e. redundant pair
Cont.. Ex.4 f(A,B,C)= ∑m (0,1,5,6,7)
I. Find out no. of variables n=3
II. Fin out no. of cell in k-map 2^3= 8 cells
III. Solve it by using k-map
IV.Special case of k-map i.e. redundant pair
The result is
minimised but may
not be unique
K-Map and Implicants:
• Implicants: Group of 1’s is called as implicants. Ex- 1,2,4,8,16 etc.
• Prime Implicants (PI’s): It is the largest possible group of 1’s
• Essential Prime Implicants (EPI’s): At least there is single 1
which can not be combined in any other way
Ex. Find out the essential prime implicants
Note: Just see the EPI’s
definition
4 Variable K-Map:
Ex.1 f(A,B,C,D)= ∑m (0,2,3,11,13,14,15)
I. Find out no. of variables
n=4
II. Fin out no. of cell in k-map
2^4= 16 cells
III. Solve it by using k-map
( m0, m2, m3, m11, m13, m14, m15 )
Cont..
Ex.2 f (A,B,C,D)= ∑m (0,2,3,5,7,8,10,11,14,15)
I. Find out no. of variables
n= 4
II. Fin out no. of cell in k-map
2^4= 16 cells
III. Solve it by using k-map
Cont..
Minimize f(x, z, y, w)= ∑m (1,5,7,9,11,13,15)
I. Find out no. of variables n= 4
II. Fin out no. of cell in k-map
2^4= 16 cells
III. Solve it by using k-map
Cont..
Ex. f (A,B,C,D)= П𝑴 (0,2,6,7,8,10,12,13)
I. Find out no. of variables n= 4
II. Find out no. of cell in k-map 2^4 = 16 cells
III. Solve it by using k-map
F = I + II + III
F = (B+D)(A+B’+C’)(A’+B’+C)
Don’t Care in K-Map
 Don’t cares are usually indicated on the map with dash or X
 K-Map also allow easy minimization of functions whose truth tables
include “don’t care” condition
 A “don’t care” condition is a combination of the inputs for which the
designer doesn’t care what the output is
 A “don’t care” condition can either be included in or excluded from
any circled group, whichever makes it larger
 Don’t care condition can be treated as a zero(0) or a one (1) in a k-
map
Cont..
Ex.1 f(x, z, y, w)= ∑m (2,3,4,5) + ∑d (6,7)
I. Find out no. of variables
n= 3
II. Fin out no. of cell in k-map
2^3= 8 cells
III. Solve it by using k-map
Note:
d= 1  Min
d= 0  Max
We use the don’t care to reduce
the function to much minimum
form
f = Quad1+Quad2
f = A+B
f = Pair1+ Pair2
f = A EXOR B
Without don’t care
assumption to d=1=min,
d=0=max, hardware
complexity is more
With don’t Care
assumption to d=1=min,
d=0=max, hardware
complexity is very less
K-Map Using Maxterm:
Ex.1 f (A,B,C)= ∑𝜋 (2,4,5,6,7)
I. Find out no. of variables
n= 3
II. Fin out no. of cell in k-map
2^3 = 8 cells
III. Solve it by using k-map
Maxterm Result
F = A+BC’ Minterm Result
K-Map with 5 Variables
Cont..
F = C’E’+BD+A’DE+BCE
Minimised solution using 5
variable k-map
Quine-McCluskey Minimization Technique
(Tabular Method)
• For many applications number of inputs are too large, so the
simplification using k-map becomes too difficult it happens when
number of variables grater than 6.
• As we know two methods for minimization i.e. 1st one is Boolean
Algebra & 2nd one is K-Map
• Boolean Algebra is good up to 2 or 3 variables
• K-Maps are good up to 3,4 & 5 variables minimization
• If we have variables more than 5 we go with Quine-McCluskey
minimization method
Cont..
Example: f (A,B,C,D)=∑m (0,1,3,7,8,9,11,15) solve it by using Quine McCluskey
method
Cont..
Step2:
Cont..
Above example using 4 variable K-Map:
Ex. f (A,B,C,D)= ∑m (0,1,3,7,8,9,11,15) solve it by using k-Map method
I. Find out no. of variables
n= 4
II. Fin out no. of cell in k-map
2^4 = 16 cells
III. Solve it by using k-map
Thank You

More Related Content

What's hot

What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.Satya P. Joshi
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2WanNurdiana
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsArti Parab Academics
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERSkumari36
 
Lab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderLab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderKatrina Little
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversionsuma jangaman
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction setjemimajerome
 
mealy and moore machines
mealy and moore machinesmealy and moore machines
mealy and moore machinesUnsa Shakir
 
Ripple counter
Ripple counterRipple counter
Ripple counterchandkec
 
Logic gates for seminar purpose and easy to understand
Logic gates for seminar purpose and easy to understandLogic gates for seminar purpose and easy to understand
Logic gates for seminar purpose and easy to understandSwaraj Nayak
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Bharti Airtel Ltd.
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsstudent
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersDeepikaDG1
 

What's hot (20)

What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Logic gate
Logic gateLogic gate
Logic gate
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
K map.
K map.K map.
K map.
 
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic CircuitsFYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
FYBSC IT Digital Electronics Unit III Chapter II Arithmetic Circuits
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Lab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderLab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary Adder
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Karnaugh Graph or K-Map
 
Vhdl
VhdlVhdl
Vhdl
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversions
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
mealy and moore machines
mealy and moore machinesmealy and moore machines
mealy and moore machines
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
Logic gates for seminar purpose and easy to understand
Logic gates for seminar purpose and easy to understandLogic gates for seminar purpose and easy to understand
Logic gates for seminar purpose and easy to understand
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 

Similar to Karnaugh Map

EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITS
EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITSEXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITS
EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITSVLSICS Design
 
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTION
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTIONMODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTION
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTIONijwmn
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanationsGopi Saiteja
 
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
 
Computation of electromagnetic fields scattered from dielectric objects of un...
Computation of electromagnetic fields scattered from dielectric objects of un...Computation of electromagnetic fields scattered from dielectric objects of un...
Computation of electromagnetic fields scattered from dielectric objects of un...Alexander Litvinenko
 
Myers_SIAMCSE15
Myers_SIAMCSE15Myers_SIAMCSE15
Myers_SIAMCSE15Karen Pao
 
Semi-Supervised Regression using Cluster Ensemble
Semi-Supervised Regression using Cluster EnsembleSemi-Supervised Regression using Cluster Ensemble
Semi-Supervised Regression using Cluster EnsembleAlexander Litvinenko
 
designanalysisalgorithm_unit-v-part2.pptx
designanalysisalgorithm_unit-v-part2.pptxdesignanalysisalgorithm_unit-v-part2.pptx
designanalysisalgorithm_unit-v-part2.pptxarifimad15
 
All Perfect Elimination Orderings & Minimal Vertex Seperators
All Perfect Elimination Orderings & Minimal Vertex SeperatorsAll Perfect Elimination Orderings & Minimal Vertex Seperators
All Perfect Elimination Orderings & Minimal Vertex Seperatorsnazlitemu
 

Similar to Karnaugh Map (20)

Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
STLD- Switching functions
STLD- Switching functions STLD- Switching functions
STLD- Switching functions
 
K map
K mapK map
K map
 
Unit 1(stld)
Unit 1(stld) Unit 1(stld)
Unit 1(stld)
 
EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITS
EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITSEXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITS
EXTENDED K-MAP FOR MINIMIZING MULTIPLE OUTPUT LOGIC CIRCUITS
 
Karnaugh map peresentation
Karnaugh map  peresentationKarnaugh map  peresentation
Karnaugh map peresentation
 
Solution 3.
Solution 3.Solution 3.
Solution 3.
 
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTION
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTIONMODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTION
MODIFIED LLL ALGORITHM WITH SHIFTED START COLUMN FOR COMPLEXITY REDUCTION
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
 
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
 
Computation of electromagnetic fields scattered from dielectric objects of un...
Computation of electromagnetic fields scattered from dielectric objects of un...Computation of electromagnetic fields scattered from dielectric objects of un...
Computation of electromagnetic fields scattered from dielectric objects of un...
 
Myers_SIAMCSE15
Myers_SIAMCSE15Myers_SIAMCSE15
Myers_SIAMCSE15
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
K map
K mapK map
K map
 
Semi-Supervised Regression using Cluster Ensemble
Semi-Supervised Regression using Cluster EnsembleSemi-Supervised Regression using Cluster Ensemble
Semi-Supervised Regression using Cluster Ensemble
 
Linear algebra havard university
Linear algebra havard universityLinear algebra havard university
Linear algebra havard university
 
designanalysisalgorithm_unit-v-part2.pptx
designanalysisalgorithm_unit-v-part2.pptxdesignanalysisalgorithm_unit-v-part2.pptx
designanalysisalgorithm_unit-v-part2.pptx
 
All Perfect Elimination Orderings & Minimal Vertex Seperators
All Perfect Elimination Orderings & Minimal Vertex SeperatorsAll Perfect Elimination Orderings & Minimal Vertex Seperators
All Perfect Elimination Orderings & Minimal Vertex Seperators
 

More from GargiKhanna1

Latch & Flip-Flop.pptx
Latch & Flip-Flop.pptxLatch & Flip-Flop.pptx
Latch & Flip-Flop.pptxGargiKhanna1
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and DemultiplexersGargiKhanna1
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codesGargiKhanna1
 
Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction GargiKhanna1
 
Architectural Level Techniques
Architectural Level TechniquesArchitectural Level Techniques
Architectural Level TechniquesGargiKhanna1
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power AnalysisGargiKhanna1
 
Monte carlo analysis
Monte carlo analysisMonte carlo analysis
Monte carlo analysisGargiKhanna1
 
Simulation power analysis low power vlsi
Simulation power analysis   low power vlsiSimulation power analysis   low power vlsi
Simulation power analysis low power vlsiGargiKhanna1
 
Boolean Function SOP & POS
Boolean Function SOP &  POSBoolean Function SOP &  POS
Boolean Function SOP & POSGargiKhanna1
 

More from GargiKhanna1 (15)

Latch & Flip-Flop.pptx
Latch & Flip-Flop.pptxLatch & Flip-Flop.pptx
Latch & Flip-Flop.pptx
 
MOS logic family
MOS logic familyMOS logic family
MOS logic family
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and Demultiplexers
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Number system
Number system Number system
Number system
 
Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction Logic Level Techniques for Power Reduction
Logic Level Techniques for Power Reduction
 
Architectural Level Techniques
Architectural Level TechniquesArchitectural Level Techniques
Architectural Level Techniques
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power Analysis
 
Monte carlo analysis
Monte carlo analysisMonte carlo analysis
Monte carlo analysis
 
Simulation power analysis low power vlsi
Simulation power analysis   low power vlsiSimulation power analysis   low power vlsi
Simulation power analysis low power vlsi
 
Boolean Function SOP & POS
Boolean Function SOP &  POSBoolean Function SOP &  POS
Boolean Function SOP & POS
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Binary codes
Binary codesBinary codes
Binary codes
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 

Recently uploaded

Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 

Recently uploaded (20)

Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 

Karnaugh Map

  • 1. Electronics and Communication Engineering Department National Institute of Technology, Hamirpur Karnaugh Map Presented by Dr. Gargi Khanna Associate Professor E&CED Dept. , NIT Hamirpur, HP.
  • 2. K-Map (Karnaugh Map)  Boolean Algebra: The results obtained from Boolean algebra is not always minimum  K-Map: K-Map is a method to simplify Boolean algebra expressions & it also reduces the need of extensive calculations  The results obtained from k-map are always most minimised & it is less time consuming process Pictorial form of a truth table
  • 3. Rules of K-Map:  Grouping of 1’s ( not include any cell containing a zero) or Grouping of 0’s ( not include any cell containing a one)  Groups may be vertical or horizontal, but not diagonal  Groups must contain 1,2,4,8 or in general 2^n cells.  Only power of 2 number of cells in each group  Groups should be as large as possible  Every 1 must be in at-least one group  Overlapping allowed  Wrap around allowed  Fewest number of groups possible
  • 4. Representation of 2,3 & 4 Variable K-Map 0 1 2 3 0 1 3 2 4 5 7 6 0 1 3 2 4 5 7 6 12 13 15 14 8 9 11 10 A B A BC CD AB 00 01 11 10 10 10 11 11 01 01 00 00 0 1 1 0 2 Variable k-map 3 Variable k-map 4 Variable k-map 0 1  Any two adjacent cells in the map differ by only one variable, Which appears complemented in one cell and uncomplemented in other  Generally, a minimum SOP or POS expression can be implemented with fewer logic gates than a standard expression
  • 5. Maxterm/Minterm Corresponding to Each Cell of K-maps
  • 6. Maxterm/Minterm Corresponding to Each Cell of K-maps
  • 7. SIMPLIFICATION OF LOGICAL FUNCTIONS USING K-MAP based on the principle of combining terms Two cells are said to be adjacent if they differ in only one variable. If there are two adjacent ones on the map, these can be grouped together and the resulting term will have one less literal than the original two terms.
  • 8. Y=Σm(0,3,7,4) (0,4) (3,7) Pair Formation Pair formation results in one variable elimination
  • 9. Grouping Four Adjacent Ones Four cells form a group of four adjacent ones if two of the literals associated with the minterms/maxterms are not same and the other literals are same
  • 10. Grouping Eight Adjacent Ones  Eight cells form a group of eight adjacent ones if three of the literals associated with the minterms/maxterms are not same and the other literals are same.  In case of 3-variable Kmap, there is only one possibility of eight ones appearing in the K-map and this corresponds to output equal to 1, irrespective of the values of the input variables.
  • 11. Cont.. Boolean function solution using Boolean algebra Truth Table Boolean Function Minimised solution using Boolean rules
  • 12. Cont.. Boolean function solution using K-Map Boolean Function Truth Table Minimised solution using K-Map K-Map Basics
  • 13. K-Map Examples Ex.1 f(A,B,C)= ∑m (1,3,5,7) I. Find out no. of variables n=3 II. Fin out no. of cell in k-map 2^3= 8 cells III. Solve it by using k-map Where A= MSB bit, C= LSB bit and 1(m1),3(m3),5(m5),7(m7) are the minterms Minimised Result
  • 14. Cont.. Ex.2 f (A,B,C)= ∑m (0,1,2,4,7) I. Find out no. of variables n=3 II. Fin out no. of cell in k-map 2^3= 8 cells III. Solve it by using k-map Minimised Result
  • 15. Cont.. Ex.3 f (A,B,C)= ∑m (1,3,6,7) I. Find out no. of variables n=3 II. Fin out no. of cell in k-map 2^3= 8 cells III. Solve it by using k-map IV.Special case of k-map i.e. redundant pair
  • 16. Cont.. Ex.4 f(A,B,C)= ∑m (0,1,5,6,7) I. Find out no. of variables n=3 II. Fin out no. of cell in k-map 2^3= 8 cells III. Solve it by using k-map IV.Special case of k-map i.e. redundant pair The result is minimised but may not be unique
  • 17. K-Map and Implicants: • Implicants: Group of 1’s is called as implicants. Ex- 1,2,4,8,16 etc. • Prime Implicants (PI’s): It is the largest possible group of 1’s • Essential Prime Implicants (EPI’s): At least there is single 1 which can not be combined in any other way Ex. Find out the essential prime implicants Note: Just see the EPI’s definition
  • 18. 4 Variable K-Map: Ex.1 f(A,B,C,D)= ∑m (0,2,3,11,13,14,15) I. Find out no. of variables n=4 II. Fin out no. of cell in k-map 2^4= 16 cells III. Solve it by using k-map ( m0, m2, m3, m11, m13, m14, m15 )
  • 19. Cont.. Ex.2 f (A,B,C,D)= ∑m (0,2,3,5,7,8,10,11,14,15) I. Find out no. of variables n= 4 II. Fin out no. of cell in k-map 2^4= 16 cells III. Solve it by using k-map
  • 20. Cont.. Minimize f(x, z, y, w)= ∑m (1,5,7,9,11,13,15) I. Find out no. of variables n= 4 II. Fin out no. of cell in k-map 2^4= 16 cells III. Solve it by using k-map
  • 21.
  • 22. Cont.. Ex. f (A,B,C,D)= П𝑴 (0,2,6,7,8,10,12,13) I. Find out no. of variables n= 4 II. Find out no. of cell in k-map 2^4 = 16 cells III. Solve it by using k-map F = I + II + III F = (B+D)(A+B’+C’)(A’+B’+C)
  • 23. Don’t Care in K-Map  Don’t cares are usually indicated on the map with dash or X  K-Map also allow easy minimization of functions whose truth tables include “don’t care” condition  A “don’t care” condition is a combination of the inputs for which the designer doesn’t care what the output is  A “don’t care” condition can either be included in or excluded from any circled group, whichever makes it larger  Don’t care condition can be treated as a zero(0) or a one (1) in a k- map
  • 24. Cont.. Ex.1 f(x, z, y, w)= ∑m (2,3,4,5) + ∑d (6,7) I. Find out no. of variables n= 3 II. Fin out no. of cell in k-map 2^3= 8 cells III. Solve it by using k-map Note: d= 1  Min d= 0  Max We use the don’t care to reduce the function to much minimum form f = Quad1+Quad2 f = A+B f = Pair1+ Pair2 f = A EXOR B Without don’t care assumption to d=1=min, d=0=max, hardware complexity is more With don’t Care assumption to d=1=min, d=0=max, hardware complexity is very less
  • 25. K-Map Using Maxterm: Ex.1 f (A,B,C)= ∑𝜋 (2,4,5,6,7) I. Find out no. of variables n= 3 II. Fin out no. of cell in k-map 2^3 = 8 cells III. Solve it by using k-map Maxterm Result F = A+BC’ Minterm Result
  • 26. K-Map with 5 Variables
  • 27. Cont.. F = C’E’+BD+A’DE+BCE Minimised solution using 5 variable k-map
  • 28. Quine-McCluskey Minimization Technique (Tabular Method) • For many applications number of inputs are too large, so the simplification using k-map becomes too difficult it happens when number of variables grater than 6. • As we know two methods for minimization i.e. 1st one is Boolean Algebra & 2nd one is K-Map • Boolean Algebra is good up to 2 or 3 variables • K-Maps are good up to 3,4 & 5 variables minimization • If we have variables more than 5 we go with Quine-McCluskey minimization method
  • 29. Cont.. Example: f (A,B,C,D)=∑m (0,1,3,7,8,9,11,15) solve it by using Quine McCluskey method
  • 32. Above example using 4 variable K-Map: Ex. f (A,B,C,D)= ∑m (0,1,3,7,8,9,11,15) solve it by using k-Map method I. Find out no. of variables n= 4 II. Fin out no. of cell in k-map 2^4 = 16 cells III. Solve it by using k-map