SlideShare a Scribd company logo
1 of 14
Computer System Architecture
COMP201TH
Lecture-4
Karnaugh Maps (K-Map)
 K Map:
o Karnaugh map is a method of simplifying Boolean algebra
expressions.
o It is actually a truth table in another form.
o It offers a graphical method of reducing a digital circuit to its
minimum number of gates.
o Karnaugh maps can be used on small circuits having 2 to 3 inputs
as an alternative to Boolean algebra and on more complex circuits
having up to 6 inputs; it can provide quicker and simpler
minimisation than Boolean algebra.
Fig. : Representation of K-map for 2,3 and 4 variables respectively
 Constructing K-maps:
o The shape and size of the map is dependent on the number of
binary inputs in the circuit to be analysed.
o 2 input circuits with inputs A and B require maps with 22 = 4cells.
o n input circuit will require map with 2n cells.
o In K maps, the cells are ordered in Gray Code and each cell position
represents on combination of input conditions while each cell value
represents the corresponding output value.
 Gray code is an ordering of the binary number system such
that two successive values differ in only one bit. E.g. the
representation of the (1)10 in binary would normally be 01 and
(2)10 would be 10.
 In Gray code, these values are represented as 01 and 11,
respectively.
Fig.: Corresponding Gray codes of Binary numbers
 Example of K-Map:
o Simplify A + A` B by use of Karnaugh Map.
f = A+A`B  minterm expression  A`=0 and A=1.
In the expression, first see first term is A, here we will take value of B as both 0
and 1.
Remember, while using K-map if one variable is not specified then we
should consider its value both 0 and 1.
e.g. if f = AB +AB`C+A`BC`
here in the first term AB value of C is not specified, so when computing
for K map, we will consider value of C as both 0 and 1.
K map for two variable is:
Now, K-map for f = A + A`B will be:
1
1 1
In K-map, we will put 1 in the cell where in value of A and B are specified in the
Boolean expression i.e. f = A + A`B -> its in minterm expression,
So f = 1 + 01.
Now, as said earlier: In the expression, first see first term is A, here we will take
value of B as both 0 and 1.
So, for the given Boolean expression we will take first term as 10 and 11 as
value of B is not given so we are considering it both 0 and 1.
Now see, we have put 1 in the cell where cell positions are 10, 11 and 01.
Next step is: we will group adjacent 1’s and choose common between them from
their cell positions.
1
1
0
B
A
0
1
1
0
B
A
0
1
1
B
A
0
1
0 1
1
1
1
Now , first group (vertically): 01
11
Common is 1 which is B
Now, second group (horizontally): 10
11
Common is 1 which is A.
So, the solution is A+B.
 Rules for simplifying Boolean expressions using K Maps [1, 2]:
 A square containing 1 should not be left alone to be included in the
final expression if there is a possibility of its inclusion in a group of
two squares containing 1s. Similarly, a group of two 1-squares (i.e.
square containing 1) should not be made if these 1-square can be
included in a group of four 1-squares and so on.
 Groups may wrap around the table. The leftmost cell in a row may be
grouped with the rightmost cell and the top cell in a column may be
grouped with the bottom cell.
References :
[1] Composed by David Belton
http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karnaugh.html
Eric Coates (Revision 14.01 18th July 2020)
https://learnabout-electronics.org/Digital/dig24.php
[2]

More Related Content

Similar to K Maps.pptx (20)

All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
 
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Linear Algebra.pptx
Linear Algebra.pptxLinear Algebra.pptx
Linear Algebra.pptx
 
KARNAUGH MAPS
KARNAUGH MAPSKARNAUGH MAPS
KARNAUGH MAPS
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Karnaugh
KarnaughKarnaugh
Karnaugh
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 
K map
K mapK map
K map
 
K map.
K map.K map.
K map.
 
Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
 
Boolean algebra1
Boolean algebra1Boolean algebra1
Boolean algebra1
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Linear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptxLinear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptx
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
 
K map
K mapK map
K map
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

K Maps.pptx

  • 1. Computer System Architecture COMP201TH Lecture-4 Karnaugh Maps (K-Map)  K Map: o Karnaugh map is a method of simplifying Boolean algebra expressions. o It is actually a truth table in another form. o It offers a graphical method of reducing a digital circuit to its minimum number of gates. o Karnaugh maps can be used on small circuits having 2 to 3 inputs as an alternative to Boolean algebra and on more complex circuits having up to 6 inputs; it can provide quicker and simpler minimisation than Boolean algebra. Fig. : Representation of K-map for 2,3 and 4 variables respectively  Constructing K-maps: o The shape and size of the map is dependent on the number of binary inputs in the circuit to be analysed. o 2 input circuits with inputs A and B require maps with 22 = 4cells. o n input circuit will require map with 2n cells.
  • 2. o In K maps, the cells are ordered in Gray Code and each cell position represents on combination of input conditions while each cell value represents the corresponding output value.  Gray code is an ordering of the binary number system such that two successive values differ in only one bit. E.g. the representation of the (1)10 in binary would normally be 01 and (2)10 would be 10.  In Gray code, these values are represented as 01 and 11, respectively. Fig.: Corresponding Gray codes of Binary numbers  Example of K-Map: o Simplify A + A` B by use of Karnaugh Map. f = A+A`B  minterm expression  A`=0 and A=1. In the expression, first see first term is A, here we will take value of B as both 0 and 1. Remember, while using K-map if one variable is not specified then we should consider its value both 0 and 1. e.g. if f = AB +AB`C+A`BC` here in the first term AB value of C is not specified, so when computing for K map, we will consider value of C as both 0 and 1.
  • 3. K map for two variable is: Now, K-map for f = A + A`B will be: 1 1 1 In K-map, we will put 1 in the cell where in value of A and B are specified in the Boolean expression i.e. f = A + A`B -> its in minterm expression, So f = 1 + 01. Now, as said earlier: In the expression, first see first term is A, here we will take value of B as both 0 and 1. So, for the given Boolean expression we will take first term as 10 and 11 as value of B is not given so we are considering it both 0 and 1. Now see, we have put 1 in the cell where cell positions are 10, 11 and 01. Next step is: we will group adjacent 1’s and choose common between them from their cell positions. 1 1 0 B A 0 1 1 0 B A 0 1 1 B A 0 1 0 1 1 1 1
  • 4. Now , first group (vertically): 01 11 Common is 1 which is B Now, second group (horizontally): 10 11 Common is 1 which is A. So, the solution is A+B.  Rules for simplifying Boolean expressions using K Maps [1, 2]:
  • 5.
  • 6.  A square containing 1 should not be left alone to be included in the final expression if there is a possibility of its inclusion in a group of two squares containing 1s. Similarly, a group of two 1-squares (i.e. square containing 1) should not be made if these 1-square can be included in a group of four 1-squares and so on.  Groups may wrap around the table. The leftmost cell in a row may be grouped with the rightmost cell and the top cell in a column may be grouped with the bottom cell.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. References : [1] Composed by David Belton http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karnaugh.html Eric Coates (Revision 14.01 18th July 2020) https://learnabout-electronics.org/Digital/dig24.php [2]