Boolen Algebra and Logic Simplification Lecture Notes
Boolen Algebra and Logic Simplification Lecture Notes
OR gate
Its composed of 2/ more inputs and a single output.
performs logical addition and produces a HIGH output when any of the inputs is
HIGH.
Distinctive Shape
Symbol
Truth Table
Boolean algebra/ Boolean expressions provides a concise way to express the operation
of a logic circuit formed by a combination of logic gates so that the output can be
determined for various combinations of input values.
To derive a Boolean expression for a given logic circuit, begin at the left-most inputs
and work towards the final output, writing the expression for each gate.
Example:
Derive the Boolean expression of the circuit diagram in Figure 2.1 below
a a a + b = ab
a
a + b + ab
b
a+b
Figure 2.1
Simplification of Boolean expressions using Boolean Algebra
In many applications of Boolean Algebra, you have to reduce a particular expression
to its simplest form or change its form to a more convenient one to implement the
expression more efficiently.
This approach uses basic laws, rules and theorems of Boolean Algebra to manipulate
and simplify the expression.
Simplified Boolean expression uses the fewest gates possible to implement a given
expression.
Example:
Simplify the following Boolean Expression:
𝐀𝐁 + 𝐀𝐂 + 𝐀𝐁𝐂
= 𝐀𝐁 𝐀𝐂 + 𝐀𝐁𝐂 apply De Morgan law
= ( 𝐀 + 𝐁 )(𝐀 + 𝐂) + 𝐀𝐁𝐂 apply De Morgan law
= (𝐀 + 𝐁𝐂) + 𝐀𝐁𝐂 apply the rule 𝐀 + 𝐁 𝐀 + 𝐂 = 𝐀 + 𝐁𝐂
= 𝐀 𝟏 + 𝐁𝐂 + 𝐁𝐂 apply the rule 𝟏 + 𝐀 = 𝟏
= 𝐀 + 𝐁𝐂
Standard Forms/ Canonical Forms of Boolean Expressions
Standardization makes the evaluation, simplification and implementation of Boolean
expression much more systematic and easier.
Definitions
A literal is a variable/ complement of a variable. For example a, b, c, c, d, d.
The domain of Boolean expression is the set of variables contained in the
expression in complemented or un complemented form. For example, the domain
of the expression f = a + a. b. c + b. c. d is the set of variables a, b, c ,d.
A product term is a single literal or a logical product of two or more literals. For
example a, a. b, a. b. c, b. c. d.
A sum of products is formed when 2 or more product terms that are summed by
Boolean addition. For example, f = a + a. b + b. c. d. In a SOP expression, a single
overbar cannot extend over more than one variable. In other words, a SOP
expression can have a. b. c but not a. b. c.
A sum term is a single literal or a logical sum of two or more literals. For example,
a, a + b, a + b + c, b + c + d.
A product of sums is formed when 2 or more sum terms are multiplied. For
example, a + b a + b + c a + b + c . A POS expression can contain a single-
variable term. In a POS expression, a single overbar cannot extend over more than
one variable.
A normal term is a product or sum term in which no variable appears more than
once and contains all variables from the domain of the Boolean expression.
Examples of normal terms: a . b. c . d, a + b + c + d.
An 𝑛-variable minterm/ standard product term is a normal product term with 𝑛
literals. There are 2n such product terms. Examples of 4-variable minterms:
a . b. c . d, a . b. c . d, a . b. c . d .
An 𝑛-variable maxterm/ standard sum term is a normal sum term with 𝑛 literals.
There are 2n such sum terms. Examples of 4-variable maxterms: a + b + c + d,
a + b + c + d.
There is a close correspondence between the truth table and minterms and maxterms.
A minterm/ standard product term can be defined as a product term that is 1 in
exactly one row of the truth table(for only one combination of variable values).
Similarly, a maxterm/ standard sum term can be defined as a sum term that is 0 in
exactly one row of the truth table.
Table 2.2 below shows this correspondence for a 3-variable truth table.
Minterm 𝑖 denotes the minterm corresponding to row 𝑖 of the truth table. In minterm
𝑖, a particular variable appears complemented if the corresponding bit in the binary
representation of 𝑖 is 0; otherwise, it is uncomplemented. For example, row 5 has
binary representation 101 and the corresponding minterm is a. b. c .
In maxterm 𝑖, a variable appears complemented if the corresponding bit in the binary
representation of 𝑖 is 1. Thus, maxterm 5 (101) is a + b + c.
Row a b c f Maxterm Minterm
0 0 0 0 f(0, 0, 0) 0 a. b . c
1 0 0 1 f(0, 0, 1) 1 a. b. c
2 0 1 0 f(0, 1, 0) 0 a. b. c
3 0 1 1 f(0, 1, 1) 0 a. b. c
4 1 0 0 f(1, 0, 0) 1 a. b. c
5 1 0 1 f(1, 0, 1) 0 a. b. c
6 1 1 0 f(1, 1, 0) 0 a. b. c
7 1 1 1 f(1, 1, 1) 1 a. b. c
Table 2.2
Inputs Output
Row a b c f
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 0
4 1 0 0 1
5 1 0 1 0
6 1 1 0 0
7 1 1 1 1
Table 2.3
The canonical sum/standard sum of products of a logic function is a sum of the
minterms corresponding to truth-table rows (input combinations) for which the
function produces a 1 output. For example, the canonical sum for the logic function in
Table 2.3 is f = a. b. c + a. b. c + abc.
The canonical product/ standard product of sums of a logic function is a product of the
maxterms corresponding to input combinations for which the function produces a 0
output. For example, the canonical product for the logic function in Table 2.3 is
f = (a + b + c)(a + b + c) (a + b + c)(a + b + c) (a + b + c)
Example : Map the standard SOP expression on the K-map abc + abc + abc + abc
c
ab 0 1
abc
00 1
abc
01 1
11 1 1 abc
abc
10
For a nonstandard SOP expression , convert it to standard form before you use a K-
map.
Simplification of SOP expressions using K-maps is the process of getting the fewest
possible terms with the fewest possible variables(minimum expression)
The minimum expression is obtained by grouping 1s i.e. enclosing those adjacent cells
containing 1s.
Rules
Groups must contain either 1,2,4,8 or 16 cells(2n cells).
Each cell in the group must be adjacent to 1 or more cells in that same group.
Include the largest possible number of 1s in a group.
Each 1 on the map must be included in at least 1 group. The 1s already in a group
can be included in another group.
Groups may overlap.
Maximize the size the groups and minimize the number of groups.
Minimum expression bc + d
With POS expressions in standard form, 0s representing the standard terms are on the
K-map.
Example
Question: Map the standard POS expression on the K-map
(a + b + c + d)(a + b + c + d)(a + b + c + d)(a + b + c + d)
For a nonstandard POS expression , convert it to standard form before you use a K-
map.
Example
Question: Map the standard POS expression on the K-map
(b + c + d)(a + b + c + d)(a + b + c + d)(a + b + c + d)(a + b + c + d)
Conversion between POS and SOP using the K-map
With POS expressions, all cells that do not contain 0s contain 1s from which SOP
expression is derived.
Likewise for an SOP expression, all the cells that do not contain 1s contain 0s, from
which the POS expression is derived.
This provides a good way to compare both minimum forms of an expression to
determine if one of them can be implemented with fewer gates than the other.
Example
Convert the following standard POS expression into a minimum POS expression, a
standard SOP expression and a minimum SOP expression
(a + b + c + d)(a + b + c + d)(a + b + c + d)(a + b + c + d)(a + b + c + d)
(a + b + c + d)(a + b + +c + d)