Methods to Solve Boolean Function
1. Karnaugh-map or K-map
karnaugh-map is used to minimize the number of logic gates that are required in a digital circuit. The cells are arranged in a way so that simplification of a given expression is simply a matter of properly grouping the cells.
SUM OF PRODUCT (SOP)
SOP as the name itself suggests sum of products. It is the sum of all the products where the output is 1. It is denoted by Σ which tells about the minterms ‘m’. When two or more terms are multiplied via AND gate and their respective resultants are added with the help of OR gate is defined as Sum Of Products.
In case of SOP, consider the following:
A = 1
A’ = 0
Let us understand it with an example.
A |
B |
C |
Y |
|
---|---|---|---|---|
m0 |
0 |
0 |
0 |
1 |
m1 |
0 |
0 |
1 |
0 |
m2 |
0 |
1 |
0 |
1 |
m3 |
0 |
1 |
1 |
1 |
m4 |
1 |
0 |
0 |
0 |
m5 |
1 |
0 |
1 |
0 |
m6 |
1 |
1 |
0 |
1 |
m7 |
1 |
1 |
1 |
1 |
In SOP, we consider only those expression where value of Y is 1 (high).
SOP = Σ (m0, m2, m3, m6, m7)
= A’B’C’ + A’BC’ + A’BC + ABC’ + ABC
= A’B’C’ + BC'(A + A’) + BC (A + A’)
= A’B’C’ + BC’ + BC
= A’B’C’ + B(C’ + C)
= A’B’C’ + B
PRODUCT OF SUM (POS)
POS stands for product of sum and it is used when the output is 0. It is denoted by Π which tells about the maxterms ‘M’.
It consists of two or more OR gates that are ANDed together.
In case of POS, consider the following:
A = 0
A’ = 1
Let us understand it with an example.
A |
B |
C |
Y |
|
---|---|---|---|---|
M0 |
0 |
0 |
0 |
0 |
M1 |
0 |
0 |
1 |
1 |
M2 |
0 |
1 |
0 |
1 |
M3 |
0 |
1 |
1 |
0 |
M4 |
1 |
0 |
0 |
0 |
M5 |
1 |
0 |
1 |
1 |
M6 |
1 |
1 |
0 |
1 |
M7 |
1 |
1 |
1 |
0 |
POS = Π (M0, M3, M4, M7)
= (A + B + C) . (A + B’ + C’) . (A + B’ + C’) . (A’ + B’ + C’)
Example of Karnaugh-map
F( A, B, C) = Σm ( 0, 1, 2, 4, 7)
A |
B |
C |
F |
|
---|---|---|---|---|
m0 |
0 |
0 |
0 |
1 |
m1 |
0 |
0 |
1 |
1 |
m2 |
0 |
1 |
0 |
1 |
m3 |
0 |
1 |
1 |
0 |
m4 |
1 |
0 |
0 |
1 |
m5 |
1 |
0 |
1 |
0 |
m6 |
1 |
1 |
0 |
0 |
m7 |
1 |
1 |
1 |
1 |
F( A, B, C) = ABC + A’B’ + B’C’ + A’C’
2. NAND GATES
NAND gate is Negation of the AND gate. It gives the values opposite to the AND gate. It gives the value 0 only when all the inputs are 1. Below is the Truth Table for AND and NAND gate.
A |
B |
A∧B |
~A∧B |
---|---|---|---|
0 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
Let us understand solving Boolean functions with the help of NAND gate
F (A, B, C) = ABC + A’B’ + B’C’ + A’C’
Boolean Functions
Boolean Algebra was given by George Boole. It is a set of rules used to simplify a given logical expression without changing its functionality. It is mainly used when several variables present are less. The algebraic expression used in Boolean Algebra is known as Boolean Expression and it is used to describe Boolean Function. The Boolean expression generally consists of value 0 or 1, binary variables, and logical operation.