5 Variable K Map
5 Variable K Map
Dr. M Rambabu
Course Code: 24CSEN1001
Course Name: Digital Logic Circuits
Date: February 18, 2025
1 Introduction
Karnaugh Maps (K-maps) simplify Boolean functions by grouping adjacent squares containing ones
(1s) or don’t-care conditions (X). However, as the number of variables increases, the number of
squares increases exponentially (2n ), making simplification more complex. A five-variable K-map
consists of 32 squares, while a six-variable K-map requires 64 squares. For more than five variables,
computer-based Boolean simplification tools are preferable.
Each four-variable map retains standard adjacency rules, but additional adjacency exists between
corresponding squares across the two maps. For example:
A useful way to visualize the five-variable K-map is to think of the two four-variable maps stacked
on top of each other as shown in Figure 1 (a).
1
Figure 1: (a) Five-variable K-map layout.
Table 1: Relationship between the number of adjacent squares and the number of literals in a five-
variable K-map.
Conclusion
A five-variable K-map extends the four-variable K-map into a three-dimensional structure. The two
layers allow additional grouping opportunities, reducing the complexity of Boolean expressions. The
simplification process involves grouping adjacent cells across both layers to minimize literals in the
final expression.
Questins:
1. Draw the Karnaugh Map (K-map) layout for a five-variable Boolean function.
2. A 5-variable canonical SOP function has 4 minterms. How many literals are in its original and
minimized forms if they form a quad in the K-map?
2
4. Minimize the given 5-variable function using a K-map and draw the logic circuit:
X
F = (4, 5, 6, 12, 13, 20, 21, 28, 29) + d(0, 1, 9, 30, 31).