Experiment 4
Experiment 4
EXPERIMENT NO. – 04
1.0 Aim: -
To compare and verify Standard SOP/POS expression with minimized Boolean form using
K-map.
2.0 Objectives: -
2.1 Usage of K-map to simplify Boolean function
2.2 To design combinational circuits that do a predefined task
5.0 Theory: -
In previous chapters, we have simplified the Boolean functions using Boolean postulates and
theorems. It is a time consuming process and we have to re-write the simplified expressions after
each step.
5.1 Karnaugh map method or K-map method
To overcome this difficulty, Karnaugh introduced a method for simplification of Boolean
functions in an easy way. This method is known as Karnaugh map method or K-map method. It
is a graphical method, which consists of 2n cells for ‘n’ variables. The adjacent cells are differed
only in single bit position.
2 Variable K-Map
The number of cells in 2 variable K-map is four, since the number of variables is two. The
following figure shows 2 variable K-Map.
3 Variable K-Map
The number of cells in 3 variable K-map is eight, since the number of variables is three. The
following figure shows 3 variable K-Map.
4 Variable K-Map
The number of cells in 4 variable K-map is sixteen, since the number of variables is four. The
following figure shows 4 variable K-Map.
5 Variable K-Map
The number of cells in 5 variable K-map is thirty-two, since the number of variables is 5. The
following figure shows 5 variable K-Map.
Follow these rules for simplifying K-maps in order to get standard sum of products form.
Select the respective K-map based on the number of variables present in the Boolean function.
If the Boolean function is given as sum of min terms form, then place the ones at respective min
term cells in the K-map. If the Boolean function is given as sum of products form, then place the
ones in all possible cells of K-map for which the given product terms are valid.
Check for the possibilities of grouping maximum number of adjacent ones. It should be powers
of two. Start from highest power of two and upto least power of two. Highest power is equal to
the number of variables considered in K-map and least power is zero.
Each grouping will give either a literal or one product term. It is known as prime implicant. The
prime implicant is said to be essential prime implicant, if atleast single ‘1’ is not covered with any
other groupings but only that grouping covers.
Note down all the prime implicants and essential prime implicants. The simplified Boolean
function contains all essential prime implicants and only the required prime implicants.
Note 1 − If outputs are not defined for some combination of inputs, then those output values will
be represented with don’t care symbol ‘x’. That means, we can consider them as either ‘0’ or ‘1’.
Note 2 − If don’t care terms also present, then place don’t cares ‘x’ in the respective cells of K-
map. Consider only the don’t cares ‘x’ that are helpful for grouping maximum number of
adjacent ones. In those cases, treat the don’t care value as ‘1’.
Examples:
Ex1: Design a combinational circuit with 3 inputs and 1 output. The output is 1 when the binary
value is less than 3.
References: -
M. Morris Mano; "Digital Logic & Computer Design"; PHI.