SlideShare a Scribd company logo
1 of 43
Karnaugh Maps
CUME106
Self-taught topic: Encoders and Decoders !!
3
Introduction
Simplification of Boolean functions leads to
simpler (and usually faster) digital circuits.
Simplifying Boolean functions using identities is
time-consuming and error-prone.
This special section presents an easy,
systematic method for reducing Boolean
expressions.
4
In 1953, Maurice Karnaugh was a
telecommunications engineer at Bell Labs.
While exploring the new field of digital logic and its
application to the design of telephone circuits, he
invented a graphical way of visualizing and then
simplifying Boolean expressions.
This graphical representation, now known as a
Karnaugh map, or Kmap, is named in his honor.
Introduction
5
Description of Kmaps and
Terminology
A Kmap is a matrix consisting of rows and
columns that represent the output values of a
Boolean function.
The output values placed in each cell are derived
from the minterms of a Boolean function.
A minterm is a product term that contains all of
the function’s variables exactly once, either
complemented or not complemented.
6
For example, the minterms for a function having
the inputs x and y are:
Consider the Boolean function,
Its minterms are:
Description of Kmaps and
Terminology
7
Similarly, a function
having three inputs,
has the minterms
that are shown in
this diagram.
Description of Kmaps and
Terminology
8
A Kmap has a cell for each
minterm.
This means that it has a cell
for each line for the truth table
of a function.
The truth table for the function
F(x,y) = xy is shown at the
right along with its
corresponding Kmap.
Description of Kmaps and
Terminology
9
As another example, we
give the truth table and
KMap for the function,
F(x,y) = x + y at the right.
This function is equivalent
to the OR of all of the
minterms that have a
value of 1. Thus:
Description of Kmaps and
Terminology
10
Kmap Simplification for Two
Variables
 Of course, the minterm function that we derived
from our Kmap was not in simplest terms.
That’s what we started with in this example.
 We can, however, reduce our complicated
expression to its simplest terms by finding adjacent
1s in the Kmap that can be collected into groups
that are powers of two.
• In our example, we have two
such groups.
– Can you find them?
11
 The best way of selecting two groups of 1s
form our simple Kmap is shown below.
We see that both groups are powers of two
and that the groups overlap.
The next slide gives guidance for selecting
Kmap groups.
Kmap Simplification for Two
Variables
12
The rules of Kmap simplification are:
• Groupings can contain only 1s; no 0s.
• Groups can be formed only at right angles;
diagonal groups are not allowed.
• The number of 1s in a group must be a power
of 2 – even if it contains a single 1.
• The groups must be made as large as possible.
• Groups can overlap and wrap around the sides
of the Kmap.
Kmap Simplification for Two
Variables
19
A Kmap for three variables is constructed as
shown in the diagram below.
We have placed each minterm in the cell that will
hold its value.
Notice that the values for the yz combination at
the top of the matrix form a pattern that is not a
normal binary sequence.
Kmap Simplification for
Three Variables
21
Thus, the first row of the Kmap contains all
minterms where x has a value of zero.
The first column contains all minterms where y
and z both have a value of zero.
Kmap Simplification for
Three Variables
22
Consider the function:
Its Kmap is given below.
What is the largest group of 1s that is a power
of 2?
Kmap Simplification for
Three Variables
23
This grouping tells us that changes in the
variables x and y have no influence upon the
value of the function: They are irrelevant.
This means that the function,
reduces to F(x) = z.
You could
verify this
reduction with
identities or a
truth table.
Kmap Simplification for
Three Variables
24
Now for a more complicated Kmap. Consider the
function:
Its Kmap is shown below. There are (only) two
groupings of 1s.
Can you find them?
Kmap Simplification for
Three Variables
25
 In this Kmap, we see an example of a group that wraps
around the sides of a Kmap.
 This group tells us that the values of x and y are not
relevant to the term of the function that is encompassed
by the group.
What does this tell us about this term of the function?
What about
the green
group in the
top row?
Kmap Simplification for
Three Variables
26
The green group in the top row tells us that only the
value of x is significant in that group.
We see that it is complemented in that row, so the
other term of the reduced function is .
Our reduced function is:
Recall that we had
six minterms in
our original
function!
Kmap Simplification for
Three Variables
27
Our model can be extended to accommodate the
16 minterms that are produced by a four-input
function.
This is the format for a 16-minterm Kmap.
Kmap Simplification for Four Variables
28
 We have populated the Kmap shown below with the
nonzero minterms from the function:
Can you identify (only) three groups in this Kmap?
Recall
that
groups
can
overlap.
Kmap Simplification for Four Variables
29
Our three groups consist of:
A purple group entirely within the Kmap at the right.
A pink group that wraps the top and bottom.
A green group that spans the corners.
Thus we have three terms in our final function:
Kmap Simplification for Four Variables
𝑓 𝑊, 𝑋, 𝑌, 𝑍 = 𝑋𝑌 + 𝑋𝑍 + 𝑊𝑌𝑍
30
It is possible to have a choice as to how to pick
groups within a Kmap, while keeping the groups
as large as possible.
The (different) functions that result from the
groupings below are logically equivalent.
Kmap Simplification for Four Variables
31
Don’t Care Conditions
Real circuits don’t always need to have an output
defined for every possible input.
For example, some calculator displays consist of 7-
segment LEDs. These LEDs can display 2 7 -1
patterns, but only ten of them are useful.
If a circuit is designed so that a particular set of
inputs can never happen, we call this set of inputs
a don’t care condition.
They are very helpful to us in Kmap circuit
simplification.
32
In a Kmap, a don’t care condition is identified by
an X in the cell of the minterm(s) for the don’t care
inputs, as shown below.
In performing the simplification, we are free to
include or ignore the X’s when creating our
groups.
Don’t Care Conditions
33
In one grouping in the Kmap below, we have the
function:
Don’t Care Conditions
34
A different grouping gives us the function:
Don’t Care Conditions
35
The truth table of:
differs from the truth table of:
However, the values for which they differ, are the
inputs for which we have don’t care conditions.
Don’t Care Conditions
Exercise
Exercise
Sigma 𝜮 Pi 𝞟 notation
 𝜮 and 𝞟 notations are respectively used to represent sum-of-products and product-
of-sums Boolean expressions.
 We will represent this function using 𝜮 notation.
 Different terms are then arranged in ascending order of the binary numbers
represented.
 The different terms represent 0001, 0101, 1000, 1001, 1111
 That is 𝑓 𝐴, 𝐵, 𝐶, 𝐷 = 𝜮 1, 5, 8, 9, 15
Sigma 𝜮 Pi 𝞟 notation
 Let’s consider a BF:
 The POS form is given by:
 The binary numbers represented are: 0011, 1011, 1100 and 0111
 Therefore,
 If a given BF f(A,B,C) is given by 𝑓 𝐴, 𝐵, 𝐶 =𝜮 0, 1, 4,7 then:
 𝑓(𝐴, 𝐵, 𝐶)= 𝞟 2,3,5,6
40
Kmaps provide an easy graphical method of
simplifying Boolean expressions.
A Kmap is a matrix consisting of the outputs of
the minterms of a Boolean function.
In this section, we have discussed 2- 3- and 4-
input Kmaps. This method can be extended to
any number of inputs through the use of multiple
tables.
Conclusion
41
Recapping the rules of Kmap simplification:
• Groupings can contain only 1s; no 0s.
• Groups can be formed only at right angles;
diagonal groups are not allowed.
• The number of 1s in a group must be a power of
2 – even if it contains a single 1.
• The groups must be made as large as possible.
• Groups can overlap and wrap around the sides
of the Kmap.
• Use don’t care conditions when you can.
Conclusion
Self-taught topic: Quine-McCluskey Method !!
cume106 Electrical n Electronic principles Kmaps.pptx

More Related Content

Similar to cume106 Electrical n Electronic principles Kmaps.pptx

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
 
2,Combinational Logic Circuits.pdf
2,Combinational Logic Circuits.pdf2,Combinational Logic Circuits.pdf
2,Combinational Logic Circuits.pdfDamotTesfaye
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsmarangburu42
 
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHI
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHIBCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHI
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHISowmya Jyothi
 
fyp....fyp.....fyp.....
fyp....fyp.....fyp.....fyp....fyp.....fyp.....
fyp....fyp.....fyp.....VisualBee.com
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab OverviiewNazim Naeem
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsmarangburu42
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxTista3
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxmydrynan
 

Similar to cume106 Electrical n Electronic principles Kmaps.pptx (20)

K map
K mapK map
K map
 
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...
 
2,Combinational Logic Circuits.pdf
2,Combinational Logic Circuits.pdf2,Combinational Logic Circuits.pdf
2,Combinational Logic Circuits.pdf
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuits
 
Maple
MapleMaple
Maple
 
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHI
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHIBCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHI
BCA DATA STRUCTURES ALGORITHMS AND PRELIMINARIES MRS SOWMYA JYOTHI
 
Lingo
LingoLingo
Lingo
 
fyp....fyp.....fyp.....
fyp....fyp.....fyp.....fyp....fyp.....fyp.....
fyp....fyp.....fyp.....
 
Minterms
MintermsMinterms
Minterms
 
K map
K map K map
K map
 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab Overviiew
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
De EE unit-2.pptx
De EE unit-2.pptxDe EE unit-2.pptx
De EE unit-2.pptx
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptx
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
 

Recently uploaded

Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 

Recently uploaded (20)

Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(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
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
(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
 

cume106 Electrical n Electronic principles Kmaps.pptx

  • 2. Self-taught topic: Encoders and Decoders !!
  • 3. 3 Introduction Simplification of Boolean functions leads to simpler (and usually faster) digital circuits. Simplifying Boolean functions using identities is time-consuming and error-prone. This special section presents an easy, systematic method for reducing Boolean expressions.
  • 4. 4 In 1953, Maurice Karnaugh was a telecommunications engineer at Bell Labs. While exploring the new field of digital logic and its application to the design of telephone circuits, he invented a graphical way of visualizing and then simplifying Boolean expressions. This graphical representation, now known as a Karnaugh map, or Kmap, is named in his honor. Introduction
  • 5. 5 Description of Kmaps and Terminology A Kmap is a matrix consisting of rows and columns that represent the output values of a Boolean function. The output values placed in each cell are derived from the minterms of a Boolean function. A minterm is a product term that contains all of the function’s variables exactly once, either complemented or not complemented.
  • 6. 6 For example, the minterms for a function having the inputs x and y are: Consider the Boolean function, Its minterms are: Description of Kmaps and Terminology
  • 7. 7 Similarly, a function having three inputs, has the minterms that are shown in this diagram. Description of Kmaps and Terminology
  • 8. 8 A Kmap has a cell for each minterm. This means that it has a cell for each line for the truth table of a function. The truth table for the function F(x,y) = xy is shown at the right along with its corresponding Kmap. Description of Kmaps and Terminology
  • 9. 9 As another example, we give the truth table and KMap for the function, F(x,y) = x + y at the right. This function is equivalent to the OR of all of the minterms that have a value of 1. Thus: Description of Kmaps and Terminology
  • 10. 10 Kmap Simplification for Two Variables  Of course, the minterm function that we derived from our Kmap was not in simplest terms. That’s what we started with in this example.  We can, however, reduce our complicated expression to its simplest terms by finding adjacent 1s in the Kmap that can be collected into groups that are powers of two. • In our example, we have two such groups. – Can you find them?
  • 11. 11  The best way of selecting two groups of 1s form our simple Kmap is shown below. We see that both groups are powers of two and that the groups overlap. The next slide gives guidance for selecting Kmap groups. Kmap Simplification for Two Variables
  • 12. 12 The rules of Kmap simplification are: • Groupings can contain only 1s; no 0s. • Groups can be formed only at right angles; diagonal groups are not allowed. • The number of 1s in a group must be a power of 2 – even if it contains a single 1. • The groups must be made as large as possible. • Groups can overlap and wrap around the sides of the Kmap. Kmap Simplification for Two Variables
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. 19 A Kmap for three variables is constructed as shown in the diagram below. We have placed each minterm in the cell that will hold its value. Notice that the values for the yz combination at the top of the matrix form a pattern that is not a normal binary sequence. Kmap Simplification for Three Variables
  • 20.
  • 21. 21 Thus, the first row of the Kmap contains all minterms where x has a value of zero. The first column contains all minterms where y and z both have a value of zero. Kmap Simplification for Three Variables
  • 22. 22 Consider the function: Its Kmap is given below. What is the largest group of 1s that is a power of 2? Kmap Simplification for Three Variables
  • 23. 23 This grouping tells us that changes in the variables x and y have no influence upon the value of the function: They are irrelevant. This means that the function, reduces to F(x) = z. You could verify this reduction with identities or a truth table. Kmap Simplification for Three Variables
  • 24. 24 Now for a more complicated Kmap. Consider the function: Its Kmap is shown below. There are (only) two groupings of 1s. Can you find them? Kmap Simplification for Three Variables
  • 25. 25  In this Kmap, we see an example of a group that wraps around the sides of a Kmap.  This group tells us that the values of x and y are not relevant to the term of the function that is encompassed by the group. What does this tell us about this term of the function? What about the green group in the top row? Kmap Simplification for Three Variables
  • 26. 26 The green group in the top row tells us that only the value of x is significant in that group. We see that it is complemented in that row, so the other term of the reduced function is . Our reduced function is: Recall that we had six minterms in our original function! Kmap Simplification for Three Variables
  • 27. 27 Our model can be extended to accommodate the 16 minterms that are produced by a four-input function. This is the format for a 16-minterm Kmap. Kmap Simplification for Four Variables
  • 28. 28  We have populated the Kmap shown below with the nonzero minterms from the function: Can you identify (only) three groups in this Kmap? Recall that groups can overlap. Kmap Simplification for Four Variables
  • 29. 29 Our three groups consist of: A purple group entirely within the Kmap at the right. A pink group that wraps the top and bottom. A green group that spans the corners. Thus we have three terms in our final function: Kmap Simplification for Four Variables 𝑓 𝑊, 𝑋, 𝑌, 𝑍 = 𝑋𝑌 + 𝑋𝑍 + 𝑊𝑌𝑍
  • 30. 30 It is possible to have a choice as to how to pick groups within a Kmap, while keeping the groups as large as possible. The (different) functions that result from the groupings below are logically equivalent. Kmap Simplification for Four Variables
  • 31. 31 Don’t Care Conditions Real circuits don’t always need to have an output defined for every possible input. For example, some calculator displays consist of 7- segment LEDs. These LEDs can display 2 7 -1 patterns, but only ten of them are useful. If a circuit is designed so that a particular set of inputs can never happen, we call this set of inputs a don’t care condition. They are very helpful to us in Kmap circuit simplification.
  • 32. 32 In a Kmap, a don’t care condition is identified by an X in the cell of the minterm(s) for the don’t care inputs, as shown below. In performing the simplification, we are free to include or ignore the X’s when creating our groups. Don’t Care Conditions
  • 33. 33 In one grouping in the Kmap below, we have the function: Don’t Care Conditions
  • 34. 34 A different grouping gives us the function: Don’t Care Conditions
  • 35. 35 The truth table of: differs from the truth table of: However, the values for which they differ, are the inputs for which we have don’t care conditions. Don’t Care Conditions
  • 38. Sigma 𝜮 Pi 𝞟 notation  𝜮 and 𝞟 notations are respectively used to represent sum-of-products and product- of-sums Boolean expressions.  We will represent this function using 𝜮 notation.  Different terms are then arranged in ascending order of the binary numbers represented.  The different terms represent 0001, 0101, 1000, 1001, 1111  That is 𝑓 𝐴, 𝐵, 𝐶, 𝐷 = 𝜮 1, 5, 8, 9, 15
  • 39. Sigma 𝜮 Pi 𝞟 notation  Let’s consider a BF:  The POS form is given by:  The binary numbers represented are: 0011, 1011, 1100 and 0111  Therefore,  If a given BF f(A,B,C) is given by 𝑓 𝐴, 𝐵, 𝐶 =𝜮 0, 1, 4,7 then:  𝑓(𝐴, 𝐵, 𝐶)= 𝞟 2,3,5,6
  • 40. 40 Kmaps provide an easy graphical method of simplifying Boolean expressions. A Kmap is a matrix consisting of the outputs of the minterms of a Boolean function. In this section, we have discussed 2- 3- and 4- input Kmaps. This method can be extended to any number of inputs through the use of multiple tables. Conclusion
  • 41. 41 Recapping the rules of Kmap simplification: • Groupings can contain only 1s; no 0s. • Groups can be formed only at right angles; diagonal groups are not allowed. • The number of 1s in a group must be a power of 2 – even if it contains a single 1. • The groups must be made as large as possible. • Groups can overlap and wrap around the sides of the Kmap. • Use don’t care conditions when you can. Conclusion