Module 2
Module 2
Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are
given in the following.
Single – Variable Theorems
1. x. 0 = 0 - Annulment -x+1=1
2. x. 1 = x - Identity -x+0=x
3. x . x = x - Idempotent -x+x=x
4. x . = 0 – Complement - x + =1
5. = x– Double Neagation
Canonical Form
In Boolean algebra,Boolean function can be expressed as Canonical Disjunctive
Normal Form known as minterm and some are expressed as Canonical Conjunctive Normal
Form known as maxterm .
In Minterm, we look for the functions where the output results in “1” while in Maxterm we
look for function where the output results in “0”.
We perform Sum of minterm also known as Sum of products (SOP) .
We perform Product of Maxterm also known as Product of sum (POS).
Boolean functions expressed as a sum of minterms or product of maxterms are said to be in
canonical form.
Sum of Products
The Sum of Product (SOP) expression comes from the fact that two or more products (AND)
are summed (OR) together. That is the outputs from two or more AND gates are connected
to the input of an OR gate so that they are effectively OR’ed together to create the final
AND-OR logical output. For example, the following Boolean function is a typical sum-of-
product expression:
Q=
and also
However, Boolean functions can also be expressed in nonstandard sum of products forms
like that shown below but they can be converted to a standard SOP form by expanding the
expression. So:
Q=
Becomes in sum-of-product terms:
Q=
Module 2 4
Boolean Algebra and Karnaugh Map
Actually this large SOP expression can be reduced further using the laws of Boolean algerbra
to give a reduced SOP expression of:
Q = A. + A.C
Converting an SOP Expression into a Truth Table
We can display any sum-of-product term in the form of a truth table as each input
combination that produces a logic “1” output is an AND or product term as shown below.
Consider the following sum of product expression:
Q=
We can now draw up the truth table for the above expression to show a list of all the
possible input combinations for A, B and C which will result in an output “1”.
Then we can clearly see from the truth table that each product row which produces
a “1” for its output corresponds to its Boolean multiplication expression with all of the other
rows having a “0” output as a “1” is always outputted from an OR gate.
Clearly the advantage here is that the truth table gives us a visual indication of the
Boolean expression allowing us to simplify the expression. For example, the above sum-of-
product term can be simplified to: Q = A.(B + .C) if required.
Module 2 5
Boolean Algebra and Karnaugh Map
Example 2.1
The following Boolean Algebra expression is given as:
Q=
1. Convert this logical equation into an equivalent SOP term.
Q=
2. Use a truth table to show all the possible combinations of input conditions that
will produces an output.
3
.
Product of Sum
These are Boolean expressions made up of sums consisting of one or more variables, either
in its normal true form or complemented form or combinations of both, which are
then AND’ed together. If a Boolean function of multiple variables is expressed in Product-of-
Sum terms, then each term is called the max term. That is the variable is taken as a logic “0”
as we will see later. But first let us understand more what represents a Sum Term.
Example 2.2
Q=
And also
However, Boolean functions can also be expressed in nonstandard product of sum forms
like that shown below but they can be converted to a standard POS form by using the
distributive law to expand the expression with respect to the sum. Therefore:
If it is required to be reduce
We can now draw up the truth table for the above expression to show a list of all the
possible input combinations for A, B and C which will result in an output “0”.
Module 2 7
Boolean Algebra and Karnaugh Map
Then we can clearly see from the truth table that each row which produces a “0” for its
output corresponds to its Boolean addition expression with all of the other rows having a
“1” output. The advantage here is that the truth table gives us a visual indication of the
Boolean expression allowing us to simplify the expression remembering that a sum term
produces a “0” output when all of its inputs are equal to “0”. So to make a sum term row
equal to “0”, the we must invert all the inputs which are equal to “1”.
Exercises 2.1
1. Use a truth table to show all the possible combinations of input conditions that will
produces a “0” output.
Module 2 8
Boolean Algebra and Karnaugh Map
Standard Form
A Boolean variable can be expressed in either true form or complemented form. In
standard form Boolean function will contain all the variables in either true form or
Module 2 9
Boolean Algebra and Karnaugh Map
complemented form while in canonical number of variables depends on the output of SOP
or POS.
Example 2.3
Convert the following Boolean expression in standard form
Solution:
Step 1: Identify the missing variables and AND it to the terms
C+ Original Expression
T+ Complement Law.
T Identity Law.
Simplify:
Original Expression
DeMorgan's Law
Complement, Identity.
Simplify: (A + C)(AD + A ) + AC + C:
(A + C)A(D + ) + AC + C Distributive.
AA + AC + C Distributive.
You can also use distribution of or over and starting from A(A+C)+C to
reach the same result by another route.
Module 2 11
Boolean Algebra and Karnaugh Map
Simplify: (A + B) + (B + AA)(A + ):
B + A(B + T + ) Distributive.
A+ B Commutative.
(A + )(A + B) Distributive.
0 1 1 1 7
1 0 0 0 8 abcd cd c
1 1 0 1 13
1 1 1 0 14
1 1 1 1 15
Groupings
The Karnaugh map uses the following rules for the simplification of expressions by grouping
together adjacent cells containing ones
Group 1:
Pair On y coordinate: On x coordinate:
abcd cd c
1
1 0 0 0
Leading to: Combine x and y:
1 0 1 0
ab 0 0 1 0
Group 2:
0 0 0 0
On y coordinate: On x coordinate:
Applying Sum-of-Product:
1
Leading to: Combine x and y:
Module 2 14
Boolean Algebra and Karnaugh Map
Quad Group 1:
On y coordinate: On x coordinate:
abcd cd c
1 1 1 0
1 1
1 1 1 0 Leading to: Leading to:
ab 0 0 1 0
0 0 1 0
Combine the groups:
Group 2:
On y coordinate: On x coordinate:
Leading to 1
Combined the groups:
Applying Sum-of-Product:
abcd cd c
This group is an octet.
1 0 0 1
The derived expression
1 0 0 1 would be:
ab 1 0 0 1
1 0 0 1
abcd cd c
Module 2 15
Boolean Algebra and Karnaugh Map
Overlapping
abcd cd c abcd cd c
1 1 0 1 1 1 1 1
1 1 0 1 1 1 1 1
ab 0 0 0 0 ab 0 0 1 0
0 0 0 0 0 1 0 0
Exercise 3.1
Realization of Boolean Expression:
ABCD CD
0 0 0 1
0 0 0 1
AB
0 0 0 1
1 1 1 1
A NAND gate is considered being a UNIVERSAL GATE. Every Basic gates can be
represented or redesign using NAND gate. Figure 2.4.1 shows the equivalent
representation of basic gate into NAND Gates. Test the NAND gate equivalent of basic
gates and demonstrate the result to the respective instructor.