SlideShare a Scribd company logo
CHAPTER 4
THE KARNAUGH-VEITCHMAP
Contents







THE THREE VARIABLE KARNAUGH MAP
THE FOUR VARIABLE KARNAUGH MAP
Karnaugh Map Simplification of SOP Expressions
KARNAUGH MAP PRODUCT OF SUM (POS)
SIMPLIFICATION
5-VARIABLE K-MAPS
DON'T CARE CONDITIONS

2
THE THREE VARIABLE
KARNAUGH MAP

Karnaugh Maps
THE FOUR VARIABLE
KARNAUGH MAP

Karnaugh Maps
Karnaugh Map Simplification of SOP
Expressions
 Grouping

the 1s

1. A group must contain either 1, 2, 4, 8,
or 16 cells.
 2. Each cell in a group must be adjacent to
one or more cells in that same group.
 3. Always include the largest possible
number of 1s in a group.
4. Each 1 on the map must be included in at
least one group.




Karnaugh Maps
Determining the Minimum SOP
Expression from the Map




1. Group the cells that have 1s.
2. Determine the minimum product terms for each group.
For a 3-variable map:









?

For a 5-variable map




A 1-cell group yields a 3-variable product term
A 2-cell group yields a 2-variable product term
A 4-cell group yields a 1-variable term
An 8-cell group yields a value of 1 for the expression

For a 4-variable map




(1)
(2)
(3)
(4)

?

3. When all the minimum product terms are derived from
the Karnaugh map, they are summed to form the minimum
SOP expression.
Karnaugh Maps
EXAMPLE


Simplify the Boolean expression:


F(x,y,z) = Σ (0,1,6,7)

7
EXAMPLE:


Simplify the Boolean expression:
F(x,y,z) = Σ (0,2,5,7)

8
EXAMPLE:


Group the 1's in each of the following
Karnaugh maps:

9
EXAMPLE:

10
KARNAUGH MAP PRODUCT OF
SUM (POS) SIMPLIFICATION
If we mark the empty squares by 0's and
combine them into valid adjacent squares,
we obtain a simplified expression of the
complement of the function, i.e., of F'.
 The complement of F' gives us back the
function F.
 Because of Demorgan's theorem, the
function so obtained is automatically in the
product of sums form.


11
EXAMPLE




Simplify the following Boolean function in (a) sum
of products and (b) product of sums.
F(w,x,y,z) = Σ (0,1,2,3,10,11,14)

12
EXAMPLE








Use a Karnaugh map to
minimize the following
POS expression.
(x+y+z)(w+x+y'+z)
(w'+x+y+z')
(w+x'+y+z)
(w'+x'+y+z)
(w+x+y+z)(w'+x+y+z)
(w+x+y'+z)
(w'+x+y+z')
(w+x'+y+z)
(w'+x'+y+z)
=Π(0,8,2,9,4,12)

13
5-VARIABLE K-MAPS (1/2)


K-maps of more than 4 variables are more
difficult to use because the geometry (hypercube
configurations) for combining adjacent squares
becomes more involved.



For 5 variables, e.g. v, w, x, y, z, we need 25 =
32 squares.



Each square has 5 neighbours.

ELC224C

Karnaugh Maps
5-VARIABLE K-MAPS (2/2)


Organized as two 4-variable K-maps. One for v'
and the other for v.
v'

wx

v

y

yz

00

01

11

m0

m1

m3

0 m4
1

m5

m7

00

m12
w

wx

10

00

01

11

10

m2

00 m16

m17

m19

m18

m6

0 m20
1

m21

m23

m22

m28

m29

m31

m30

m24

m25

m27

m26

x

m13

m15

m14
w

11
m8

m9

m11

y

yz

11

m10

10

x

10
z

z

Corresponding squares of each map are adjacent.
Can visualise this as one 4-variable K-map being on
TOP of the other 4-variable K-map.
ELC224C

Karnaugh Maps
DON'T CARE CONDITIONS










Sometimes a situation arises in which some input
variable combinations are not allowed.
Since these unallowed states will never occur in
an application involving the BCD code, they can
be treated as "don't care" terms
for each "don't care" term, an X is placed in the
cell.
When grouping the 1's, Xs can be treated as 1's
to make a larger grouping or as 0s if they cannot
be used to advantage.
Be careful do not make a group entirely of
x's.
16
Example
x
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

Inputs
y
y
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1

w
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

Output
Y
0
0
0
0
0
0
0
1
1
1
X
X
X
X
X
X
17
Example






Simplify the following
Boolean function F,
where d represents the
set of do not care
conditions
F(w,x,y,z) = Σ
(0,1,2,8,10,11)
d(w,x,y,z) = Σ
(4,6,12,13)

18

More Related Content

What's hot

Addition and Subtraction of Functions
Addition and Subtraction of FunctionsAddition and Subtraction of Functions
Addition and Subtraction of Functions
jordhuffman
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
Sushil Ranjan
 
Convolution and autocorrelation
Convolution and autocorrelationConvolution and autocorrelation
Convolution and autocorrelation
Medab Abd El Malek
 
Lesson 10: What does f' say about f?
Lesson 10: What does f' say about f?Lesson 10: What does f' say about f?
Lesson 10: What does f' say about f?
Matthew Leingang
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
GargiKhanna1
 
Lesson 7: What does f' say about f?
Lesson 7: What does f' say about f?Lesson 7: What does f' say about f?
Lesson 7: What does f' say about f?
Matthew Leingang
 

What's hot (6)

Addition and Subtraction of Functions
Addition and Subtraction of FunctionsAddition and Subtraction of Functions
Addition and Subtraction of Functions
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Convolution and autocorrelation
Convolution and autocorrelationConvolution and autocorrelation
Convolution and autocorrelation
 
Lesson 10: What does f' say about f?
Lesson 10: What does f' say about f?Lesson 10: What does f' say about f?
Lesson 10: What does f' say about f?
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
 
Lesson 7: What does f' say about f?
Lesson 7: What does f' say about f?Lesson 7: What does f' say about f?
Lesson 7: What does f' say about f?
 

Viewers also liked

Proyecto plan de lectura final
Proyecto plan de lectura  finalProyecto plan de lectura  final
Proyecto plan de lectura final
Raul Bonilla Sanchez
 
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
COLUFRAS
 
Tce em Santa Cruz do Capibaribe
Tce em Santa Cruz do CapibaribeTce em Santa Cruz do Capibaribe
Tce em Santa Cruz do Capibaribe
Portal NE10
 
Origins of photography
Origins of photographyOrigins of photography
Origins of photography
Aaron Lawler, PhD
 
Karol e Arthur Adoro vcs.
Karol e Arthur Adoro vcs.Karol e Arthur Adoro vcs.
Karol e Arthur Adoro vcs.MaiaraBozzetti
 
Logic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraLogic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean Algebra
Gouda Mando
 
Getting sh*t done: How design is changing the way Coolblue works - Jeffrey
Getting sh*t done: How design is changing the way Coolblue works - JeffreyGetting sh*t done: How design is changing the way Coolblue works - Jeffrey
Getting sh*t done: How design is changing the way Coolblue works - Jeffrey
Coolblue
 
ブレストパーティ その1
ブレストパーティ その1ブレストパーティ その1
ブレストパーティ その1Yuki Kuru
 
Exclusive Interview: Zach Awny, ConocoPhilips
Exclusive Interview: Zach Awny, ConocoPhilipsExclusive Interview: Zach Awny, ConocoPhilips
Exclusive Interview: Zach Awny, ConocoPhilips
marketinglbcg
 
How to attract clients for your own business
How to attract clients for your own businessHow to attract clients for your own business
How to attract clients for your own business
Sameer Nawab
 
Logic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesLogic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic Gates
Gouda Mando
 

Viewers also liked (13)

Comunicato 8gen
Comunicato 8genComunicato 8gen
Comunicato 8gen
 
Proyecto plan de lectura final
Proyecto plan de lectura  finalProyecto plan de lectura  final
Proyecto plan de lectura final
 
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
Programme EXPOGEP // Programa EXPOGEP (Brasília, 02/02/2014)
 
Tce em Santa Cruz do Capibaribe
Tce em Santa Cruz do CapibaribeTce em Santa Cruz do Capibaribe
Tce em Santa Cruz do Capibaribe
 
Origins of photography
Origins of photographyOrigins of photography
Origins of photography
 
Karol e Arthur Adoro vcs.
Karol e Arthur Adoro vcs.Karol e Arthur Adoro vcs.
Karol e Arthur Adoro vcs.
 
Logic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraLogic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean Algebra
 
Getting sh*t done: How design is changing the way Coolblue works - Jeffrey
Getting sh*t done: How design is changing the way Coolblue works - JeffreyGetting sh*t done: How design is changing the way Coolblue works - Jeffrey
Getting sh*t done: How design is changing the way Coolblue works - Jeffrey
 
ブレストパーティ その1
ブレストパーティ その1ブレストパーティ その1
ブレストパーティ その1
 
Exclusive Interview: Zach Awny, ConocoPhilips
Exclusive Interview: Zach Awny, ConocoPhilipsExclusive Interview: Zach Awny, ConocoPhilips
Exclusive Interview: Zach Awny, ConocoPhilips
 
How to attract clients for your own business
How to attract clients for your own businessHow to attract clients for your own business
How to attract clients for your own business
 
Logic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesLogic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic Gates
 
Maksulaekumised 12-2013
Maksulaekumised 12-2013Maksulaekumised 12-2013
Maksulaekumised 12-2013
 

Similar to Logic Design - Chapter 4: Karnaugh Maps

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
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
SwathiSundari
 
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
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 
Kmaps By Ms Nita Arora
Kmaps By Ms Nita AroraKmaps By Ms Nita Arora
Kmaps By Ms Nita Arora
kulachihansraj
 
Boolean Algebra part 5.pdf
Boolean Algebra part 5.pdfBoolean Algebra part 5.pdf
Boolean Algebra part 5.pdf
Retheesh Raj
 
STLD- Switching functions
STLD- Switching functions STLD- Switching functions
STLD- Switching functions
Abhinay Potlabathini
 
Grade 8-slope-of-a-line
Grade 8-slope-of-a-lineGrade 8-slope-of-a-line
Grade 8-slope-of-a-line
AnnalizaTenioso
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
mihir jain
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
kumarankit06875
 
Unit 1(stld)
Unit 1(stld) Unit 1(stld)
Unit 1(stld)
Abhinay Potlabathini
 
Program Derivation of Operations in Finite Fields of Prime Order
Program Derivation of Operations in Finite Fields of Prime OrderProgram Derivation of Operations in Finite Fields of Prime Order
Program Derivation of Operations in Finite Fields of Prime Order
Charles Southerland
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
GovindSingh278
 
K - Map
  K - Map    K - Map
K - Map
Abhishek Choksi
 
Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5
Samia Sultana
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
Mohammad Faizan
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
Daniel Bragais
 
167c h a p t e r4Optimized Implementation of Logic.docx
167c h a p t e r4Optimized Implementation of Logic.docx167c h a p t e r4Optimized Implementation of Logic.docx
167c h a p t e r4Optimized Implementation of Logic.docx
hyacinthshackley2629
 

Similar to Logic Design - Chapter 4: Karnaugh Maps (19)

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...
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
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
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Kmaps By Ms Nita Arora
Kmaps By Ms Nita AroraKmaps By Ms Nita Arora
Kmaps By Ms Nita Arora
 
Boolean Algebra part 5.pdf
Boolean Algebra part 5.pdfBoolean Algebra part 5.pdf
Boolean Algebra part 5.pdf
 
STLD- Switching functions
STLD- Switching functions STLD- Switching functions
STLD- Switching functions
 
Grade 8-slope-of-a-line
Grade 8-slope-of-a-lineGrade 8-slope-of-a-line
Grade 8-slope-of-a-line
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 
Unit 1(stld)
Unit 1(stld) Unit 1(stld)
Unit 1(stld)
 
Program Derivation of Operations in Finite Fields of Prime Order
Program Derivation of Operations in Finite Fields of Prime OrderProgram Derivation of Operations in Finite Fields of Prime Order
Program Derivation of Operations in Finite Fields of Prime Order
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
 
K - Map
  K - Map    K - Map
K - Map
 
Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
 
167c h a p t e r4Optimized Implementation of Logic.docx
167c h a p t e r4Optimized Implementation of Logic.docx167c h a p t e r4Optimized Implementation of Logic.docx
167c h a p t e r4Optimized Implementation of Logic.docx
 

Recently uploaded

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 

Recently uploaded (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 

Logic Design - Chapter 4: Karnaugh Maps

  • 2. Contents       THE THREE VARIABLE KARNAUGH MAP THE FOUR VARIABLE KARNAUGH MAP Karnaugh Map Simplification of SOP Expressions KARNAUGH MAP PRODUCT OF SUM (POS) SIMPLIFICATION 5-VARIABLE K-MAPS DON'T CARE CONDITIONS 2
  • 3. THE THREE VARIABLE KARNAUGH MAP Karnaugh Maps
  • 4. THE FOUR VARIABLE KARNAUGH MAP Karnaugh Maps
  • 5. Karnaugh Map Simplification of SOP Expressions  Grouping the 1s 1. A group must contain either 1, 2, 4, 8, or 16 cells.  2. Each cell in a group must be adjacent to one or more cells in that same group.  3. Always include the largest possible number of 1s in a group. 4. Each 1 on the map must be included in at least one group.   Karnaugh Maps
  • 6. Determining the Minimum SOP Expression from the Map    1. Group the cells that have 1s. 2. Determine the minimum product terms for each group. For a 3-variable map:       ? For a 5-variable map   A 1-cell group yields a 3-variable product term A 2-cell group yields a 2-variable product term A 4-cell group yields a 1-variable term An 8-cell group yields a value of 1 for the expression For a 4-variable map   (1) (2) (3) (4) ? 3. When all the minimum product terms are derived from the Karnaugh map, they are summed to form the minimum SOP expression. Karnaugh Maps
  • 7. EXAMPLE  Simplify the Boolean expression:  F(x,y,z) = Σ (0,1,6,7) 7
  • 8. EXAMPLE:  Simplify the Boolean expression: F(x,y,z) = Σ (0,2,5,7) 8
  • 9. EXAMPLE:  Group the 1's in each of the following Karnaugh maps: 9
  • 11. KARNAUGH MAP PRODUCT OF SUM (POS) SIMPLIFICATION If we mark the empty squares by 0's and combine them into valid adjacent squares, we obtain a simplified expression of the complement of the function, i.e., of F'.  The complement of F' gives us back the function F.  Because of Demorgan's theorem, the function so obtained is automatically in the product of sums form.  11
  • 12. EXAMPLE   Simplify the following Boolean function in (a) sum of products and (b) product of sums. F(w,x,y,z) = Σ (0,1,2,3,10,11,14) 12
  • 13. EXAMPLE     Use a Karnaugh map to minimize the following POS expression. (x+y+z)(w+x+y'+z) (w'+x+y+z') (w+x'+y+z) (w'+x'+y+z) (w+x+y+z)(w'+x+y+z) (w+x+y'+z) (w'+x+y+z') (w+x'+y+z) (w'+x'+y+z) =Π(0,8,2,9,4,12) 13
  • 14. 5-VARIABLE K-MAPS (1/2)  K-maps of more than 4 variables are more difficult to use because the geometry (hypercube configurations) for combining adjacent squares becomes more involved.  For 5 variables, e.g. v, w, x, y, z, we need 25 = 32 squares.  Each square has 5 neighbours. ELC224C Karnaugh Maps
  • 15. 5-VARIABLE K-MAPS (2/2)  Organized as two 4-variable K-maps. One for v' and the other for v. v' wx v y yz 00 01 11 m0 m1 m3 0 m4 1 m5 m7 00 m12 w wx 10 00 01 11 10 m2 00 m16 m17 m19 m18 m6 0 m20 1 m21 m23 m22 m28 m29 m31 m30 m24 m25 m27 m26 x m13 m15 m14 w 11 m8 m9 m11 y yz 11 m10 10 x 10 z z Corresponding squares of each map are adjacent. Can visualise this as one 4-variable K-map being on TOP of the other 4-variable K-map. ELC224C Karnaugh Maps
  • 16. DON'T CARE CONDITIONS      Sometimes a situation arises in which some input variable combinations are not allowed. Since these unallowed states will never occur in an application involving the BCD code, they can be treated as "don't care" terms for each "don't care" term, an X is placed in the cell. When grouping the 1's, Xs can be treated as 1's to make a larger grouping or as 0s if they cannot be used to advantage. Be careful do not make a group entirely of x's. 16
  • 18. Example    Simplify the following Boolean function F, where d represents the set of do not care conditions F(w,x,y,z) = Σ (0,1,2,8,10,11) d(w,x,y,z) = Σ (4,6,12,13) 18