Mastering Karnaugh Maps: A Graphical Approach to Boolean Minimization
Discover the fundamentals of Karnaugh Maps (K-Maps), a classic graphical method for combinational synthesis and truth table representation. We explore ways to minimize Boolean expressions by drawing ovals to cover all ones, understanding key concepts like implicants and prime implicants. The "lite" version of K-Maps simplifies the Quine-McCluskey method, allowing for effective manual minimization of small specifications. For larger problems, modern automated tools take over, but the principles of K-Maps remain foundational in digital design.
Mastering Karnaugh Maps: A Graphical Approach to Boolean Minimization
E N D
Presentation Transcript
COMP541Bonus Topic:Karnaugh Maps Montek Singh April 15, 2010
Topic • Karnaugh maps • classic graphical method for combinational synthesis • represent truth table graphically… • … draw ovals/”cubes” to cover all the ones • has been highly optimized and automated • Quine-McCluskey method • we will cover the “lite” version
Karnaugh Maps (K-Maps) • Boolean expressions can be minimized by combining terms • K-maps minimize equations graphically • PA + PA = P
K-map • Circle 1’s in adjacent squares • Exclude variables whose true and complement forms are in circle from the implicant • Y = AB
3-input K-map Y = AB + BC
K-map Definitions • Complement: variable with a bar over it A, B, C • Sometimes complement with a prime A’, B’, C’ • Literal: variable or its complement A, A, B, B, C, C • Implicant: product of literals ABC, AC, BC • Prime implicant • implicant that cannot be grown further • has the least number of literals possible for the 1’s it covers
K-map Rules • Covering Requirement • Every 1 in a K-map must be circled at least once • Each term must be a “cube” • Each oval must span a power of 2 (i.e. 1, 2, 4) squares in each direction • Each oval must be as large as possible (prime implicant) • An oval may wrap around the edges of the K-map • A “don't care” (X) is circled only if it helps minimize the equation
Use of K-Maps • Manual use only for small specs • For bigger problems, use automated tools • e.g., your Verilog synthesis tools • Still, K-Maps form the basis of all modern algorithms • although actual representation is graph-based instead of table-based (“binary decision diagrams”)