Digital Electronics Notes
Digital Electronics Notes
Boolean Algebra.
Laws and Identities of Boolean algebra, DeMorgan‟s Theorem , use of
Boolean Algebra for simplification of logic expression, K-Map for 2,3,4
variables, simplification of SOP and POS logic expression using K-Map.
Boolean Laws
There are six types of Boolean Laws.
1.Commutative law
Any binary operation which satisfies the following expression is
referred to as commutative operation.
1
Commutative law states that changing the sequence of the variables
does not have any effect on the output of a logic circuit.
2.Associative law
This law states that the order in which the logic operations are
performed is irrelevant as their effect is the same.
3.Distributive law
Distributive law states the following condition.
4.AND law
These laws use the AND operation. Therefore they are called
as AND laws.
5.OR law
These laws use the OR operation. Therefore they are called as OR laws.
6.INVERSION law
This law uses the NOT operation. The inversion law states that double
inversion of a variable results in the original variable itself.
2
DeMorgan’s Theorem
DeMorgan’s Theorem is mainly used to solve the various Boolean
algebra expressions. The Demorgan‟s theorem defines the uniformity
between the gate with the same inverted input and output. It is used for
implementing the basic gate operation likes NAND gate and NOR gate.
Theorem 1
The left hand side (LHS) of this theorem represents a NAND gate
with inputs A and B, whereas the right hand side (RHS) of the
theorem represents an OR gate with inverted inputs.
This OR gate is called as Bubbled OR.
3
Table showing verification of the De Morgan's first theorem −
Theorem 2
The LHS of this theorem represents a NOR gate with inputs A and
B, whereas the RHS represents an AND gate with inverted inputs.
This AND gate is called as Bubbled AND.
4
Use of Boolean Algebra for simplification of logic expression
Boolean algebra, a logic algebra, allows the rules used in the algebra of
numbers to be applied to logic. It formalizes the rules of logic. Boolean
algebra is used to simplify Boolean expressions which
represent combinational logic circuits. It reduces the original expression
to an equivalent expression that has fewer terms which means that less
logic gates are needed to implement the combinational logic circuit.
5
oA * ~A = 0
o A + ~A = 1
7. Involution Law
o ~(~A) = A
8. DeMorgan's Law
o ~(A * B) = ~A + ~B
o ~(A + B) = ~A * ~B
~A + ~B * B 4 - Distributive law
~A + 0 6 - Complement law
~A 5 - Identity law
Each line gives the new expression and the rule or rules used to derive it
from the previous one. Usually there are several ways to reach the result.
6
1. From the design specification, obtain the truth table
2. From the truth table, derive the Sum of Products Boolean
Expression.
3. Use Boolean Algebra to simplify the boolean expression. The
simpler the boolean expression, the less logic gates will be used.
4. Use logic gates to implement the simplified Boolean Expression.
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
7
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.
9
1. Sum of Product (SOP) Form
The sum-of-products (SOP) form is a method (or form) of simplifying
the Boolean expressions of logic gates. In this SOP form of Boolean
function representation, the variables are operated by AND (product) to
form a product term and all these product terms are ORed (summed or
added) together to get the final function.
Examples
AB + ABC + CDE
( B) + B + D
Truth table:
10
Now write the input variables combination with high output. F = AB +
BC + AC.
All these sum terms are ANDed (multiplied) together to get the product-
of-sum form. This form is exactly opposite to the SOP form. So this can
also be said as “Dual of SOP form”.
Here the sum terms are defined by using the OR operation and the
product term is defined by using AND operation. When two or more
sum terms are multiplied by a Boolean OR operation, the resultant
output expression will be in the form of product-of-sums form or POS
form.
Examples
(A+B) * (A + B + C) * (C +D)
( +B) * ( + D + )
11
POS form can be obtained by
12