Docsity

Boolean Function Minimization using Karnaugh Maps, Lecture notes of Digital Logic Design and Programming

Partial preview of the text

Download Boolean Function Minimization using Karnaugh Maps and more Lecture notes Digital Logic Design and Programming in PDF only on Docsity!

Minimization of Boolean functions

Prof Rajeev Barua

ENEE 244 -- Slide set 6

Boolean simplication

So far, we have simplified boolean functions using algebraic simplification. This has yielded smaller functions, which yields smaller circuits.

For example, xy + xy' can be simplified to just x. ● Before simplification: 3 gates; ● After simplication: 0 gates. ⇒ smaller circuit with simplification.

Why is simplification important? ● less silicon area ⇒lower cost. ● usually less power consumption ⇒ batteries last longer. ● usually faster circuit.

However, using algebraic simplification, it is hard to know if a function is minimum in size. This is because one may miss seeing simplification opportunities, especially in large formulas.

So we will study a formal minimization procedure to yield provably minimal circuits.

Method for minimization

We use a method called the Karnaugh Map method to minimize boolean formula to their provably minimum size form. (Also called the K-map method.)

What a 2-variable K-map looks like, showing what each cell represents:

● Each cell represents a minterm. ● Each row and column represents one value of one variable (for 2-variable K-maps only)

// The K-map is just a different way of drawing the truth table!

Minimization procedure

  1. For a given function, fill in cells in the K-map where the function is true with 1.
  2. Group together all the 1’s in the K-map into a minimum number of maximum-size rectangles // could be a square as a special case). Additionally, the rectangles must NOT contain any zeros. ● Each rectangle is made of adjacent cells only, and must have a power-of-two number of squares. ● The reason we want maximum-size rectangles is because the larger the rectangle size, the smaller its resulting term.
  3. Write down resulting expression as sum of terms for each rectangle. The term for each rectangle is the product of variables that do not vary in it. This yields the minimized function.

3-variable K-maps

A 3-variable K-map has the following schema:

Example 1 of minimization with 3-variable K-map

F(x, y, z) = 𝚺 (2, 3, 4, 5)

Result = x’y + xy’****.

Example 3 of minimization with 3-variable K-map

F(x, y, z) = 𝚺 (0, 2, 4, 5, 6)

Rectangle for z’ wraps around.

Result = z’ + xy’****.

Example 4 of minimization with 3-variable K-map

F = A’C + A’B + AB’C + BC

Result = C + A’B****.

Example 1 of minimization with 4-variable K-map

F(w, x, y, z) = 𝚺 (0, 1, 2, 4, 5, 6, 8, 9, 12, 13, 14)

Result = y’ + w’z’ + xz ’.

Example 2 of minimization with 4-variable K-map

F = A’B’C’ + B’CD’ + A’BCD’ + AB’C

Result = B’D’ + B’C’ + A’CD’.