SlideShare a Scribd company logo
Digital Logic and Design
Karnaugh Map
Recap: Boolean Algebra
 Simplification of Boolean expressions are
done through Boolean algebra.
 The method wasn’t effective.
 Solving a problem through Boolean
algebra was a bit tricky
 Need skill of applying rules and law.
 Doesn’t guarantee simplest form of expression
Karnaugh Map
 K-map provides a systematic method
 For simplifying Boolean expressions and minimizing
expressions.
 If properly used, will produce the simplest SOP and
POS.
 Similar to truth table, presents all possible values of
input variables and resulting output for each value.
Karnaugh Map
 Karnaugh map is an array of cells in which each cell
represents a binary value of input variables.
 The cells are managed in a way so that simplification of
a given expression is simply a matter of properly
grouping the cells.
 Karnaugh maps can be used for expression with two,
three, four and five variables, but we will discuss only 3-
variable and 4-varable situations to illustrate the
principles.
Karnaugh Map
2-variable K-map
3-variable karnaugh map
 The 3-variable karnaugh map is an array
of eight cells.
 In this case A, B and C are used for the
variables although other letters could be
used.
 Binary values of A is along the left side
and the value of B and C is across the top.
The 3-variable Karnaugh map
 The value of a given cell is the binary
values of A at the left in the same row
combined with the value of B and C at
the top in the same column.
 For example: the cell in the upper left
corner has a binary value of 000 and the
cell in the lower right corner has a binary
value of 110.
3-Variable K-map
ABC 0 1
00 0 1
01 2 3
11 6 7
10 4 5
ABC 00 01 11 10
0 0 1 3 2
1 4 5 7 6
The 4-variable karnaugh map
 The 4-variable karnaugh map is an array
of sixteen cells
 Binary values of A and B are along the left
side and the values of C and D are across
the top.
 The value of a given cell is the binary
value of A and B at the left in the same row
combined with the binary values of C and
D at the top of the same column.
4-Variable K-map
ABCD 00 01 11 10
00 0 1 3 2
01 4 5 7 6
11 12 13 15 14
10 8 9 11 10
Grouping & Adjacent Cells
 K-map is considered to be wrapped around
 All sides are adjacent to each other
 Adjacent cells which has 1’s in SOP can be grouped
together in 2’s power.
 2 adjacent cells can be grouped (pair)
 4 adjacent cells can be grouped (Quads)
 8 adjacent cells can be grouped (octets)
 Groups can be row, column, square or rectangular.
 Groups of diagonal cells are not allowed
Mapping of Standard SOP
expression
 Selecting n-variable K-map
 1 marked in cell for each minterm
Mapping of Standard SOP
expression
 SOP expression CBACBACAB 
ABC 00 01 11 10
0 0 0 0 1
1 1 0 0 1
Cell Adjacency
 The cells in a karnaugh map are arranged
so that there is only a single-variable
change between adjacent cells.
 Adjacency is defined by a single variable
change.
 Cells with values that differ by more than
one variable are not adjacent.
Cell Adjacency
Continued ( simplification
through K maps)
 Karnaugh map is used for simplifying
Boolean expressions to their minimum
form.
 A minimized SOP expression contains the
fewest possible terms with the fewest
possible variables per term.
 Generally a minimum SOP expression can
be implemented with fewer logic gates
than a standard expression.
Mapping SOP expression
Mapping entries in K-map
Class activity
Solution
Mapping a non standard SOP
expression
Mapping a non standard SOP
expression
Numerical expansion of the given
expression can be done as follows
Mapping non standard SOP into K-map
Continued…
Continued…
0 1
00
01
11
10
AB
C
Cells are usually labeled using 0’s and 1’s to represent the
variable and its complement.
Gray
code
Karnaugh maps
Ones are read as the true variable
and zeros are read as the
complemented variable.
The numbers are entered in gray
code, to force adjacent cells to be
different by only one variable.
1. Group the 1’s into two overlapping
groups as indicated.
2. Read each group by eliminating any
variable that changes across a
boundary.
3. The vertical group is read AC.
K-maps can simplify combinational logic by grouping
cells and eliminating variables that change.
Karnaugh maps
1
1 1
AB
C
00
01
11
10
0 1
1
1 1
AB
C
00
01
11
10
0 1
Group the 1’s on the map and read the minimum logic.
B changes
across this
boundary
C changes
across this
boundary
4. The horizontal group is read AB.
X = AC +AB
X
Karnaugh maps
Group the 1’s on the map and read the minimum logic.
1. Group the 1’s into two separate
groups as indicated.
2. Read each group by eliminating
any variable that changes across a
boundary.
3. The upper (yellow) group is read as
AD.
4. The lower (green) group is read as
AD.
AB
CD
00
01
11
10
00 01 11 10
1 1
1 1
1
1
1
1
AB
CD
00
01
11
10
00 01 11 10
1 1
1 1
1
1
1
1
X = AD +AD
B changes
C changes
B changes
C changes across
outer boundary
Related Example
 Minimize the following SOP expression,
 F(x, y, z) = Σ(0,2,6,7)
 F(x, y, z) = Σ(0,2,3,4,6)
 F(x, y, z) = Σ(0,1,2,3,7)
 F(x, y, z) = Σ(3,5,6,7)
 F(x, y, z) = Σ(0,1,5,7)
 F(x, y, z) = Σ(0,1,6,7)
 F(x, y, z) = Σ(1,2,3,6,7)
SOLUTION(1-7)
Don’t care conditions
END OF LECTURE

More Related Content

What's hot

multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
Unsa Shakir
 
K map
K mapK map
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
SARITHA REDDY
 
K map
K mapK map
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
Self-employed
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
Shuaib Hotak
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
ASHISH MANI
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Rules of Karnaugh Map
Rules of Karnaugh MapRules of Karnaugh Map
Rules of Karnaugh Map
Tanjarul Islam Mishu
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
Tamim Tanvir
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
Vaagdevi College of Engineering
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
Paresh Parmar
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
Syed Saeed
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) method
Syed Saeed
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Jamnas Mundakkutty A
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
Self-employed
 

What's hot (20)

multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
K map
K mapK map
K map
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
K map
K mapK map
K map
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
KMAP
KMAPKMAP
KMAP
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Karnaugh Graph or K-Map
 
Rules of Karnaugh Map
Rules of Karnaugh MapRules of Karnaugh Map
Rules of Karnaugh Map
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) method
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 

Similar to Kmap..(karnaugh map)

karnaughmaprev1-130728135103-phpapp01.ppt
karnaughmaprev1-130728135103-phpapp01.pptkarnaughmaprev1-130728135103-phpapp01.ppt
karnaughmaprev1-130728135103-phpapp01.ppt
michaelaaron25322
 
Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01
Neha Agarwal
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
marangburu42
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)
Adeen Ali
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
ssuserf7cd2b
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
kndnewguade
 
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
sonusreekumar
 
K Maps.pptx
K Maps.pptxK Maps.pptx
K Maps.pptx
saneeshoo7
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
wajanga
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
wajanga
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuits
marangburu42
 
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
Dr. Pravin Prajapati
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
GovindSingh278
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
arunachalamr16
 
Karnaugh
KarnaughKarnaugh
Karnaugh
hangkhong
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
Dr.YNM
 
UNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNUNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNDr.YNM
 

Similar to Kmap..(karnaugh map) (20)

karnaughmaprev1-130728135103-phpapp01.ppt
karnaughmaprev1-130728135103-phpapp01.pptkarnaughmaprev1-130728135103-phpapp01.ppt
karnaughmaprev1-130728135103-phpapp01.ppt
 
Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
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
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
 
K Maps.pptx
K Maps.pptxK Maps.pptx
K Maps.pptx
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuits
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
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
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Karnaugh
KarnaughKarnaugh
Karnaugh
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
 
UNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNUNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGN
 

Recently uploaded

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 

Recently uploaded (20)

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 

Kmap..(karnaugh map)

  • 1. Digital Logic and Design Karnaugh Map
  • 2. Recap: Boolean Algebra  Simplification of Boolean expressions are done through Boolean algebra.  The method wasn’t effective.  Solving a problem through Boolean algebra was a bit tricky  Need skill of applying rules and law.  Doesn’t guarantee simplest form of expression
  • 3. Karnaugh Map  K-map provides a systematic method  For simplifying Boolean expressions and minimizing expressions.  If properly used, will produce the simplest SOP and POS.  Similar to truth table, presents all possible values of input variables and resulting output for each value.
  • 4. Karnaugh Map  Karnaugh map is an array of cells in which each cell represents a binary value of input variables.  The cells are managed in a way so that simplification of a given expression is simply a matter of properly grouping the cells.  Karnaugh maps can be used for expression with two, three, four and five variables, but we will discuss only 3- variable and 4-varable situations to illustrate the principles.
  • 7. 3-variable karnaugh map  The 3-variable karnaugh map is an array of eight cells.  In this case A, B and C are used for the variables although other letters could be used.  Binary values of A is along the left side and the value of B and C is across the top.
  • 8. The 3-variable Karnaugh map  The value of a given cell is the binary values of A at the left in the same row combined with the value of B and C at the top in the same column.  For example: the cell in the upper left corner has a binary value of 000 and the cell in the lower right corner has a binary value of 110.
  • 9. 3-Variable K-map ABC 0 1 00 0 1 01 2 3 11 6 7 10 4 5 ABC 00 01 11 10 0 0 1 3 2 1 4 5 7 6
  • 10. The 4-variable karnaugh map  The 4-variable karnaugh map is an array of sixteen cells  Binary values of A and B are along the left side and the values of C and D are across the top.  The value of a given cell is the binary value of A and B at the left in the same row combined with the binary values of C and D at the top of the same column.
  • 11. 4-Variable K-map ABCD 00 01 11 10 00 0 1 3 2 01 4 5 7 6 11 12 13 15 14 10 8 9 11 10
  • 12. Grouping & Adjacent Cells  K-map is considered to be wrapped around  All sides are adjacent to each other  Adjacent cells which has 1’s in SOP can be grouped together in 2’s power.  2 adjacent cells can be grouped (pair)  4 adjacent cells can be grouped (Quads)  8 adjacent cells can be grouped (octets)  Groups can be row, column, square or rectangular.  Groups of diagonal cells are not allowed
  • 13. Mapping of Standard SOP expression  Selecting n-variable K-map  1 marked in cell for each minterm
  • 14. Mapping of Standard SOP expression  SOP expression CBACBACAB  ABC 00 01 11 10 0 0 0 0 1 1 1 0 0 1
  • 15. Cell Adjacency  The cells in a karnaugh map are arranged so that there is only a single-variable change between adjacent cells.  Adjacency is defined by a single variable change.  Cells with values that differ by more than one variable are not adjacent.
  • 17. Continued ( simplification through K maps)  Karnaugh map is used for simplifying Boolean expressions to their minimum form.  A minimized SOP expression contains the fewest possible terms with the fewest possible variables per term.  Generally a minimum SOP expression can be implemented with fewer logic gates than a standard expression.
  • 18.
  • 20.
  • 24.
  • 25.
  • 26.
  • 27. Mapping a non standard SOP expression
  • 28.
  • 29. Mapping a non standard SOP expression
  • 30. Numerical expansion of the given expression can be done as follows
  • 31. Mapping non standard SOP into K-map
  • 32.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. 0 1 00 01 11 10 AB C Cells are usually labeled using 0’s and 1’s to represent the variable and its complement. Gray code Karnaugh maps Ones are read as the true variable and zeros are read as the complemented variable. The numbers are entered in gray code, to force adjacent cells to be different by only one variable.
  • 42.
  • 43. 1. Group the 1’s into two overlapping groups as indicated. 2. Read each group by eliminating any variable that changes across a boundary. 3. The vertical group is read AC. K-maps can simplify combinational logic by grouping cells and eliminating variables that change. Karnaugh maps 1 1 1 AB C 00 01 11 10 0 1 1 1 1 AB C 00 01 11 10 0 1 Group the 1’s on the map and read the minimum logic. B changes across this boundary C changes across this boundary 4. The horizontal group is read AB. X = AC +AB
  • 44. X Karnaugh maps Group the 1’s on the map and read the minimum logic. 1. Group the 1’s into two separate groups as indicated. 2. Read each group by eliminating any variable that changes across a boundary. 3. The upper (yellow) group is read as AD. 4. The lower (green) group is read as AD. AB CD 00 01 11 10 00 01 11 10 1 1 1 1 1 1 1 1 AB CD 00 01 11 10 00 01 11 10 1 1 1 1 1 1 1 1 X = AD +AD B changes C changes B changes C changes across outer boundary
  • 45. Related Example  Minimize the following SOP expression,  F(x, y, z) = Σ(0,2,6,7)  F(x, y, z) = Σ(0,2,3,4,6)  F(x, y, z) = Σ(0,1,2,3,7)  F(x, y, z) = Σ(3,5,6,7)  F(x, y, z) = Σ(0,1,5,7)  F(x, y, z) = Σ(0,1,6,7)  F(x, y, z) = Σ(1,2,3,6,7)
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 64.
  • 65.
  • 66.
  • 67.