Lecture 9-11 - Mapping
Lecture 9-11 - Mapping
(i) 𝐴𝐵 + 𝐴𝐵
(ii) 𝐴𝐵𝐶 + 𝐴𝐵 + 𝐴. 𝐵𝐶
• Figure shows the logic circuit which represents a product of sum form:
(ii)𝑌 = 𝐴𝐵𝐶 + 𝐴𝐵𝐶 + 𝐴. 𝐵𝐶, where minterms are 𝐴𝐵𝐶, 𝐴𝐵𝐶 and 𝐴. 𝐵𝐶
Then Y=𝐴 + 𝐴𝐵 = 𝐴. 1 + 𝐴𝐵 = 𝐴. (𝐵 + 𝐵) + 𝐴𝐵 = 𝐴. 𝐵 + 𝐴. 𝐵 + 𝐴𝐵 = 𝐴𝐵 + 𝐴. 𝐵
Designation of minterm:
• Let us consider a Boolean expression in SOP form
A B C D
1 1 1 1
Designation of maxterm:
• Let us consider a Boolean expression in SOP form
A B C D
0 0 0 0
Karnaugh-Map (K-map):
The K-map method of solving the logical expressions is referred to as the
graphical technique of simplifying Boolean expressions. K-maps are also referred
to as 2D truth tables as each K-map is nothing but a different format of
representing the values present in a one-dimensional truth table.
K-maps basically deal with the technique of inserting the values of the output
variable in cells within a rectangle or square grid according to a definite pattern.
The number of cells in the K-map is determined by the number of input variables
and is mathematically expressed as two raised to the power of the number of input
variables, i.e., 2n, where the number of input variables is n.
Thus, to simplify a logical expression with two inputs, we require a K-map with
4 (=22) cells. A four-input logical expression would lead to a 16 (=24) celled-K-
map, and so on.
Two Variable K Map-
Here, A, B, C and D are the four variables of the given Boolean function.
Karnaugh Map Simplification Rules-
To minimize the given Boolean function,
•We can either group 0’s with 0’s or 1’s with 1’s but we cannot group 0’s and
1’s together.
Rule-02:
•Groups may overlap each other. You are allowed to use the same 1 more than
once.
Rule-03:
•We can only create a group whose number of cells can be represented in the
power of 2.
•In other words, a group can only contain 2n i.e. 2, 4, 8, 16 and so on number
of cells.
•A pair is a group of two 1s that are horizontally or vertically adjacent, a quad
is a group of four 1s that are horizontally or vertically adjacent, and an octet is
a group of eight 1s that are horizontally or vertically adjacent. A pair
eliminates one variable and its complement, a quad eliminates two
variables and their complements, and an octet eliminates three variables
and their complements.
Rule-04:
•Groups can be only either horizontal or vertical.
•We cannot create groups of diagonals or any other shape
Rule-05:
•Each group should be as large as possible.
•After drawing the K-map, one should try to identify the largest group (octet)
first, and then the quads in second and then pair in the last.
Rule-06:
•Opposite grouping and corner grouping are allowed i.e., rolling the map is
allowed.
Rule-07:
•In some digital systems, certain input conditions never occur during normal
operation; therefore, the corresponding output never appears. Since the output
never appears, it is represented by X in the truth table. X representing don’t care
can be grouped with 0’s as well as 1’s.
•If all 1s of a group are used by some other groups then that group is known as
redundant group. Redundant groups must be avoided.
𝐹 (𝐴, 𝐵, 𝐶, 𝐷 ) = 𝐵𝐷 + 𝐶𝐷 + 𝐵𝐷
Problem-02:
Minimize the following Boolean function-
𝐹 (𝐴, 𝐵, 𝐶, 𝐷 ) = 𝐵𝐶 + 𝐷
Problem-03:
𝐹 (𝐴, 𝐵, 𝐶, 𝐷 ) = 𝐴𝐷 + 𝐵𝐷 + 𝐵𝐶 + 𝐴𝐷
Problem-04:
Thus, minimized
Boolean expression is-
𝐹 (𝐴, 𝐵, 𝐶 ) = 𝐴 + 𝐵 + 𝐶
Problem-06:
𝐹 (𝐴, 𝐵, 𝐶 ) = 𝐴 + 𝐵
Problem-07:
𝐹 (𝐴, 𝐵, 𝐶, 𝐷 ) = 𝐴𝐶𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒𝐷 + 𝐵𝐷
Problem-08:
𝐹 (𝑊, 𝑋, 𝑌, 𝑍) = 𝑋𝑍 + 𝑋𝑍 = 𝑋 ⊕ 𝑍
Clearly, the given Boolean function depends on only two variables X and Z.
Solution: 𝑌 = 𝐵𝐷
Problem-12:
Solution: 𝑌 = 𝐵𝐶 + 𝐵𝐶
Problem-13:
𝑌 = 𝑚(0,1,2,4,5,6,8,9,12,13,14)
Solution: 𝑌 = 𝐶 + 𝐴𝐷 + 𝐵𝐷
Solution:
The Boolean equation for the output has four product terms. Map four 1’s
corresponding to the p-terms. Forming groups of cells, we have three groups of
two. There will be three p-terms in the simplified result, one for each group. The
gate diagram of the result is reproduced below.
1.K-map simplification does not demand for the knowledge of Boolean algebraic
theorems.
2.Usually it requires less number of steps when compared to algebraic
minimization technique.