lecture 8 - university of south carolina
TRANSCRIPT
![Page 1: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/1.jpg)
Lecture 8
![Page 2: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/2.jpg)
Karnaugh Map (K-map)The method we learned in Ch. 2 has a problem…As many of you may have seen in the homework, it doesn’t tell us if the result is a minimum
![Page 3: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/3.jpg)
K-mapKarnaugh maps are a graphical approach for finding suitable product terms for use in SOP expressions● Very useful for problems with 3 or 4
variables
![Page 4: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/4.jpg)
Intro to K-mapK-maps consist of one square for each possible minterm in a function
![Page 5: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/5.jpg)
Intro to K-mapK-maps consist of one square for each possible minterm in a function● 2 variable - 4 squares (22)● 3 variable - 8 squares (23)● 4 variable - 16 squares (24)● n variable - 2n squares
![Page 6: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/6.jpg)
Example: 2 variable K-map
![Page 7: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/7.jpg)
Example: 2 variable K-map
![Page 8: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/8.jpg)
Example: 3 variable K-map
![Page 9: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/9.jpg)
Example: 3 variable K-mapNotice that the last 2 columns are not in numerical orderIf we organize the map this way, instead of in numerical order, the minterms in adjacent squares can be combined using the adjacency property
![Page 10: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/10.jpg)
3 variable K-map
![Page 11: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/11.jpg)
4 variable!
![Page 12: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/12.jpg)
4 variable!
![Page 13: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/13.jpg)
Plotting a functionWe will use minterms of a function and plot each square corresponding to each minterm● Example: ab + ab’ = ?
![Page 14: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/14.jpg)
More examplesHow would we plot this?● F = AB’ + AC + A’BC’
![Page 15: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/15.jpg)
ImplicantAn implicant of a function is a product term that can be used in an SOP expression for that functionFrom the point of view of the map, an implicant is a rectangle of 1,2,4,8...2n 1’s. No 0’s may be included
![Page 16: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/16.jpg)
Implicant Example
![Page 17: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/17.jpg)
Implicant Example
![Page 18: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/18.jpg)
Prime ImplicantA prime implicant is an implicant that (from the point of view of the map) is not fully contained within any one other implicant
![Page 19: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/19.jpg)
Essential Prime ImplicantAn essential prime implicant is a prime implicant that includes at least one 1 that is not in any other prime implicant.
![Page 20: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/20.jpg)
Why do we need these?The map is supposed to help us find minimum SOP expressionsThe only product terms we need to care about are prime implicantsEssential prime implicants are the prime implicants that MUST be used in any min SOP expression
![Page 21: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/21.jpg)
Examplew’x’y’z’ + w’xy’z’ + wxy’z’ + wx’y’z’ + w’xy’z + w’xyz + wxyz + wx’yz
![Page 22: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/22.jpg)
Examplex’yz’ + x’yz + xy’z’ + xy’z + xyz
![Page 23: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/23.jpg)
![Page 24: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/24.jpg)
Examplew’xy’z’ + w’xy’z + wxy’z + wx’y’z + w’x’yz + w’xyz + wxyz + wxyz’
![Page 25: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/25.jpg)
![Page 26: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/26.jpg)
Don’t caresImplicants can have don’t cares in them too
An implicant is a rectangle of 1, 2, 4, 8, … 1’s or X’s
A prime implicant is a rectangle of 1, 2, 4, 8, … 1’s or X’s not included in any one larger rectangle. Thus, from the point of view of finding prime implicants, X’s (don’t cares) are treated as 1’s.
An essential prime implicant is a prime implicant that covers at least one 1 not covered by any other prime implicant (as always). Don’t cares (X’s) do not make a prime implicant essential.
![Page 27: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/27.jpg)
Examplef = SUM[m(1,7,10,11,13)] + SUM[d(5,8,15)]
![Page 28: Lecture 8 - University of South Carolina](https://reader034.vdocument.in/reader034/viewer/2022051323/627c08437b7d44221233f2a7/html5/thumbnails/28.jpg)