Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SOP is associated with the minterms of a Truth Table. Each row of a truth table is designated
with a minterm, that is a product of the input variables in direct or complemented form as they
appear.
Minterms provide a way to represent any boolean function algebraically, once its truth table is
specified. The Output function is given by the sum (OR) of those minterms corresponding to
rows where the output is 1.
Consider the following 3-input (or 3 variable) Truth table where A, B, C are inputs and Y is the
output.
A B C Y Minterm Maxterm
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
Table 1
In the above table, the output Y is 1 for 1, 2, 4, 7 rows, where the minterms are
. . , . . and so on.
Each row of a truth table is also associated with a maxterm, which is a sum (OR) of all the
variables in the function, in direct or complemented form.
Each maxterm is a sum of input variables which are complemented forms of the given inputs.
In the above table, the output Y is 0 for 0, 3, 5, 6 rows, where the maxterms are
, and so on.
( )( )( )( ) (2)
The output function is same whether it is calculated by the sum of products or product of sums.
So, the expressions in (1) and (2) can be shown to be equal after simplification by Boolean
Algebra rules.
KARNAUGH MAP:
Karnaugh Map (K-Map) is used to find and to simplify the Boolean expressions. The expressions
can also be found by direct inspections of truth tables, logic gate circuits and by SOP or POS
methods. But to easily obtain and to simply the complicated expressions without the Boolean
Algebra rules, K-Map is used.
K-Map is a two dimensional table where the input variables are placed on horizontal and
vertical sides.
A B Y
0 0 0
0 1 1
1 0 0
1 1 1
Table 2
Table 3
The output function is [We have taken the entries where it is 1.]
Example #1
NOTE: For forming the K-Map table for 3 or more variables, we follow Gray code, where in the above
table, AB inputs come in order 00, 01, 11, 10. In Gray code, the digital values in successive entries can
change in more than one place. For example, we have 00 and then 01, after this it can not be 10 which
would mean changing A from 0 to 1 and B from 1 to 0. Instead we have 11.
Example #2
A B C Y
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
We have here two groups as marked, one vertical group of 2-cells and another horizontal group of 4-
cells. In the group of 4-cells, the value of C remains constant which is 1. Thus Y is independent of A and
B. So the output is . Similarly, for the group of 2-cells, the output is 1 and it is independent of the
values of C (0 or 1). So, .
Example #3
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
In this K-Map, there is a horizontal group of 2-cells, where and A changes from 0 to 1 but B
remains 1. So the output does not depend on A. Thus for this . There are two 1s at the two
corners, which after folding become one group of two cells. For this, we find , whereas A changes
from 0 to 1 but remains 0. So the output does not depend on A. Thus we have .
One can construct more than 3-variable maps with the above methods. For example, for a 4-variable K-
Map we place AB on one side and CD on another side and so on.