SlideShare a Scribd company logo
1 of 30
Chapter 3 Special Section
Focus on Karnaugh Maps
2
3A.1 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.
3
• 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.
3A.1 Introduction
4
3A.2 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.
5
• For example, the minterms for a function having
the inputs x and y are:
• Consider the Boolean function,
• Its minterms are:
3A.2 Description of Kmaps
and Terminology
6
• Similarly, a function
having three inputs,
has the minterms
that are shown in
this diagram.
3A.2 Description of Kmaps
and Terminology
7
• 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.
3A.2 Description of Kmaps
and Terminology
8
• 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:
3A.2 Description of Kmaps
and Terminology
9
3A.3 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?
10
• 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.
3A.3 Kmap Simplification
for Two Variables
11
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.
3A.3 Kmap Simplification
for Two Variables
12
• 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.
3A.3 Kmap Simplification
for Three Variables
13
• 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.
3A.3 Kmap Simplification
for Three Variables
14
• Consider the function:
• Its Kmap is given below.
– What is the largest group of 1s that is a power of 2?
3A.3 Kmap Simplification
for Three Variables
15
• 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.
3A.3 Kmap Simplification
for Three Variables
16
• 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?
3A.3 Kmap Simplification
for Three Variables
17
• 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?
3A.3 Kmap Simplification
for Three Variables
18
• 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!
3A.3 Kmap Simplification
for Three Variables
19
• 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.
3A.3 Kmap Simplification for Four
Variables
20
• 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.
3A.3 Kmap Simplification for Four
Variables
21
• 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:
3A.3 Kmap Simplification for Four
Variables
22
• 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.
3A.3 Kmap Simplification for Four
Variables
23
3A.6 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.
24
• 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.
3A.6 Don’t Care Conditions
25
• In one grouping in the Kmap below, we have the
function:
3A.6 Don’t Care Conditions
26
• A different grouping gives us the function:
3A.6 Don’t Care Conditions
27
• 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.
3A.6 Don’t Care Conditions
28
• 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.
3A Conclusion
29
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.
3A Conclusion
30
End of Chapter 3A

More Related Content

Similar to 03_Karnaugh_Maps.ppt (20)

Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Matlab
MatlabMatlab
Matlab
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - IMatlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - I
 
MatlabIntro (1).ppt
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).ppt
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
chapter7_Sec1.ppt
chapter7_Sec1.pptchapter7_Sec1.ppt
chapter7_Sec1.ppt
 
3A.ppt
3A.ppt3A.ppt
3A.ppt
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Approximation Algorithms TSP
Approximation Algorithms   TSPApproximation Algorithms   TSP
Approximation Algorithms TSP
 
Unit 3-Laplace Transforms.pdf
Unit 3-Laplace Transforms.pdfUnit 3-Laplace Transforms.pdf
Unit 3-Laplace Transforms.pdf
 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
 
Matlab practical and lab session
Matlab practical and lab sessionMatlab practical and lab session
Matlab practical and lab session
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab ch1 (4)
Matlab ch1 (4)Matlab ch1 (4)
Matlab ch1 (4)
 
Cerebellar Model Articulation Controller
Cerebellar Model Articulation ControllerCerebellar Model Articulation Controller
Cerebellar Model Articulation Controller
 
2. Chap 1.pptx
2. Chap 1.pptx2. Chap 1.pptx
2. Chap 1.pptx
 
Minterms
MintermsMinterms
Minterms
 

More from ansariparveen06

discrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxdiscrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxansariparveen06
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptansariparveen06
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 
Combinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxCombinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxansariparveen06
 
presentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxpresentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxansariparveen06
 
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxBCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxansariparveen06
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxansariparveen06
 
1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptxansariparveen06
 

More from ansariparveen06 (20)

discrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptxdiscrete mathematics binary%20trees.pptx
discrete mathematics binary%20trees.pptx
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).ppt
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
kmap.pptx
kmap.pptxkmap.pptx
kmap.pptx
 
Combinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptxCombinational_Logic_Circuit.pptx
Combinational_Logic_Circuit.pptx
 
presentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptxpresentation_python_7_1569170870_375360.pptx
presentation_python_7_1569170870_375360.pptx
 
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptxBCom-Sem2-Marketing-Digital-payment-Presentation.pptx
BCom-Sem2-Marketing-Digital-payment-Presentation.pptx
 
dsa.ppt
dsa.pptdsa.ppt
dsa.ppt
 
11-IOManagement.ppt
11-IOManagement.ppt11-IOManagement.ppt
11-IOManagement.ppt
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptx
 
1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx1-introduction-to-dart-programming.pptx
1-introduction-to-dart-programming.pptx
 
CHAP4.pptx
CHAP4.pptxCHAP4.pptx
CHAP4.pptx
 
green IT cooling.pptx
green IT cooling.pptxgreen IT cooling.pptx
green IT cooling.pptx
 
06-Deadlocks.ppt
06-Deadlocks.ppt06-Deadlocks.ppt
06-Deadlocks.ppt
 
chp9 green IT.pptx
chp9 green IT.pptxchp9 green IT.pptx
chp9 green IT.pptx
 
regex.ppt
regex.pptregex.ppt
regex.ppt
 
BOM.ppt
BOM.pptBOM.ppt
BOM.ppt
 
Cooling.pptx
Cooling.pptxCooling.pptx
Cooling.pptx
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

03_Karnaugh_Maps.ppt

  • 1. Chapter 3 Special Section Focus on Karnaugh Maps
  • 2. 2 3A.1 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.
  • 3. 3 • 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. 3A.1 Introduction
  • 4. 4 3A.2 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.
  • 5. 5 • For example, the minterms for a function having the inputs x and y are: • Consider the Boolean function, • Its minterms are: 3A.2 Description of Kmaps and Terminology
  • 6. 6 • Similarly, a function having three inputs, has the minterms that are shown in this diagram. 3A.2 Description of Kmaps and Terminology
  • 7. 7 • 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. 3A.2 Description of Kmaps and Terminology
  • 8. 8 • 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: 3A.2 Description of Kmaps and Terminology
  • 9. 9 3A.3 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?
  • 10. 10 • 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. 3A.3 Kmap Simplification for Two Variables
  • 11. 11 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. 3A.3 Kmap Simplification for Two Variables
  • 12. 12 • 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. 3A.3 Kmap Simplification for Three Variables
  • 13. 13 • 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. 3A.3 Kmap Simplification for Three Variables
  • 14. 14 • Consider the function: • Its Kmap is given below. – What is the largest group of 1s that is a power of 2? 3A.3 Kmap Simplification for Three Variables
  • 15. 15 • 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. 3A.3 Kmap Simplification for Three Variables
  • 16. 16 • 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? 3A.3 Kmap Simplification for Three Variables
  • 17. 17 • 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? 3A.3 Kmap Simplification for Three Variables
  • 18. 18 • 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! 3A.3 Kmap Simplification for Three Variables
  • 19. 19 • 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. 3A.3 Kmap Simplification for Four Variables
  • 20. 20 • 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. 3A.3 Kmap Simplification for Four Variables
  • 21. 21 • 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: 3A.3 Kmap Simplification for Four Variables
  • 22. 22 • 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. 3A.3 Kmap Simplification for Four Variables
  • 23. 23 3A.6 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.
  • 24. 24 • 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. 3A.6 Don’t Care Conditions
  • 25. 25 • In one grouping in the Kmap below, we have the function: 3A.6 Don’t Care Conditions
  • 26. 26 • A different grouping gives us the function: 3A.6 Don’t Care Conditions
  • 27. 27 • 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. 3A.6 Don’t Care Conditions
  • 28. 28 • 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. 3A Conclusion
  • 29. 29 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. 3A Conclusion