ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Digital Logic and Design
    PHYS4129
    Progress0 / 20 topics
    Topics
    1. Review of Number Systems: Binary, octal and hexadecimal number system their inter conversion2. Basic logic gates3. Different codes: BCD, ASCII, Gray etc.4. Parity in codes5. Boolean Algebra: Demorgan theorems6. Simplification of Boolean expression by Boolean postulates and theorem7. SOP and POS conversions8. K maps and their uses9. Don't care condition10. Combinational Logic Circuit: Logic circuits based on AND-OR, OR-AND, NAND, NOR Logic gates design11. Addition, subtraction, 2's compliments12. Half adder, full adder13. Half subtractor, full subtractor14. Encoder, decoder15. Multiplexer and demultiplexer16. Sequential Logic Circuit: Latches17. Flip-flops: S-R, J-K, T and D flip flops18. Master-slave flip-flops19. IC Logic Families: Basic characteristics (Propagation delay time, dissipation, noise margins etc.)20. Different logic based IC families: DTL, RTL, TTL, CMOS
    PHYS4129›K maps and their uses
    Digital Logic and DesignTopic 8 of 20

    K maps and their uses

    6 minread
    1,048words
    Intermediatelevel

    Karnaugh Maps (K-Maps) and Their Uses

    Karnaugh Maps (K-Maps) are a powerful tool used for simplifying Boolean expressions. They provide a visual method for reducing logical expressions by organizing the terms of the Boolean function in a grid format. K-Maps are particularly useful for simplifying expressions in Sum of Products (SOP) or Product of Sums (POS) form.

    What is a Karnaugh Map?

    A Karnaugh Map is essentially a two-dimensional representation of a truth table. It is a grid used to simplify Boolean expressions by grouping adjacent cells that have a value of 1 (for SOP) or 0 (for POS). The idea is to combine terms in such a way that the Boolean expression becomes simpler and more optimized.

    The grid represents all possible combinations of input variables, and the cells in the grid represent the output for each combination of inputs. The rows and columns in a K-map correspond to the different combinations of the input variables.

    K-Map Layouts

    The layout of a K-map varies depending on the number of variables in the Boolean expression:

    1. 2-variable K-map:

      • A 2x2 grid with 4 cells.
      • Each cell represents one combination of the two variables (A, B).
      AB \ 00 01 11 10
      0 1 2 3
    2. 3-variable K-map:

      • A 2x4 grid with 8 cells.
      • Each cell represents one combination of the three variables (A, B, C).
      AB \ C 0 1
      00 0 1
      01 2 3
      11 4 5
      10 6 7
    3. 4-variable K-map:

      • A 4x4 grid with 16 cells.
      • Each cell represents one combination of the four variables (A, B, C, D).

    K-map Simplification Process

    The goal of K-map simplification is to group adjacent cells containing 1s (for SOP) or 0s (for POS). These groups should be as large as possible and must contain a number of cells that is a power of 2 (i.e., 1, 2, 4, 8, etc.). Each group represents a simplified product term (in SOP) or sum term (in POS).

    Steps to Simplify Using K-Maps:

    1. Plot the Boolean Expression: Create a K-map and place 1s (or 0s) in the cells corresponding to the minterms (or maxterms) from the truth table or Boolean expression.

    2. Group the 1s (or 0s): Find adjacent 1s (or 0s) in the map. These 1s should be grouped into powers of 2 (1, 2, 4, 8, etc.). You can group 1s vertically, horizontally, or even wrap around the edges of the map.

    3. Write the Simplified Expression: For each group, write the simplified Boolean expression corresponding to that group. A group represents a product term in SOP form or a sum term in POS form.

    4. Final Expression: Combine the product terms (in SOP) or sum terms (in POS) from all groups to obtain the simplified Boolean expression.


    Example 1: Simplifying a Boolean Expression Using K-map (SOP)

    Let's consider a Boolean function F(A, B, C) with the following truth table:

    A B C F(A, B, C)
    0 0 0 0
    0 0 1 1
    0 1 0 1
    0 1 1 1
    1 0 0 0
    1 0 1 1
    1 1 0 0
    1 1 1 1

    Step 1: Create a K-map. The K-map for three variables (A, B, C) looks like this:

    AB \ C 0 1
    00 0 1
    01 1 1
    11 0 1
    10 0 1

    Step 2: Group the adjacent 1s. You can form groups of 2, 4, or more 1s.

    • There is a group of 4 1s in the second and third rows (covering columns 1 and 0).
    • The second and third rows share the term B.

    Step 3: Write the simplified expression. For the group of 4 1s:

    • It corresponds to B.

    Thus, the simplified SOP expression is:

    F(A,B,C)=BF(A, B, C) = BF(A,B,C)=B

    Example 2: Simplifying a Boolean Expression Using K-map (POS)

    Let’s take the following Boolean function F(A, B, C) with a truth table:

    A B C F(A, B, C)
    0 0 0 1
    0 0 1 0
    0 1 0 0
    0 1 1 1
    1 0 0 0
    1 0 1 0
    1 1 0 1
    1 1 1 0

    Step 1: Create the K-map for POS. The K-map for three variables (A, B, C) will look like this:

    AB \ C 0 1
    00 1 0
    01 0 1
    11 1 0
    10 0 0

    Step 2: Group the adjacent 0s. We want to group the 0s in the POS form.

    • There is a group of 2 zeros in the first and last rows, column 1.

    Step 3: Write the simplified POS expression. For the group of 2 0s:

    • The corresponding POS term is (A + C).

    Thus, the simplified POS expression is:

    F(A,B,C)=(A+C)(B+C)F(A, B, C) = (A + C)(B + C)F(A,B,C)=(A+C)(B+C)

    Advantages of Using K-Maps

    1. Visual Representation: K-maps provide a clear and easy-to-understand graphical method for simplifying Boolean expressions.

    2. Efficient Simplification: They allow for quick identification of possible groupings, reducing the complexity of the Boolean expression.

    3. Minimization of Gates: By simplifying the Boolean expression, K-maps help in reducing the number of logic gates required to implement a digital circuit.

    4. Error Reduction: K-maps minimize the chance of errors that might occur when simplifying manually.


    Limitations of K-Maps

    1. Scalability: K-maps become difficult to use for Boolean functions with more than 4 or 5 variables, as the number of cells increases exponentially.

    2. Manual Work: While K-maps simplify expressions, the process can still be tedious for large Boolean expressions with many variables.


    Conclusion

    Karnaugh Maps are a valuable tool for simplifying Boolean expressions, providing a visual and efficient way to minimize the complexity of digital circuits. By grouping adjacent cells that represent 1s (in SOP) or 0s (in POS), you can significantly reduce the number of terms in a Boolean expression, which results in simpler and more efficient logic circuits. However, their utility diminishes as the number of variables increases beyond a manageable level.

    Previous topic 7
    SOP and POS conversions
    Next topic 9
    Don't care condition

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time6 min
      Word count1,048
      Code examples0
      DifficultyIntermediate