Chapter-4 Boolean Algebra and Logic Simplification: BY: Wondemagegn Tilahun (MSC) Wolaita Sodo University
Chapter-4 Boolean Algebra and Logic Simplification: BY: Wondemagegn Tilahun (MSC) Wolaita Sodo University
Chapter-4 Boolean Algebra and Logic Simplification: BY: Wondemagegn Tilahun (MSC) Wolaita Sodo University
Associative Laws
• The associative law of addition is written as follows for three variables: A+
(B+C)=(A+B)+C
• Using logic circuit,
• In a POS expression, a single overbar cannot extend over more than one variable;
• For example, a POS expression can have the term
The Standard POS Form
• A standard POS expression is one in which all the variables in the domain appear in
each sum term in the expression.
• For example, a) standard POS form
b) not standard POS form
• Any nonstandard pos expression (referred to simply as POS) can be converted to the
WOLAITA SODO UNIVERSITY.
Digital logic design
Cont….
• Note that each maxterm is the complement of its corresponding
minterm, and vice versa.
Cont….
Cont…
• From these demonstrate that,
Any Boolean function can be expressed as a sum of minterms (by ‘sum” is
meant the ORing of terms). And
Any Boolean function can be expressed as a product of Maxterms (by
‘product” is meant the ANDing of terms)
• Boolean functions expressed as a sum of minterms or product of maxterms are
said to be in CANONICAL form(standard forms).
Canonical Sum of Minterms
• We have seen that any Boolean function can be expressed as a sum of minterms.
• Sum of minterms can be expressed in a compact form by listing the corresponding
decimal-equivalent codes of the minterms containing a function value of 1.
• For example, from the above truth table, f1 is 1 for m1, m4 and m7 and, f2 is 1 for
m3, m5, m6 and m7.
• So that using decimal representation. f1(x, y, z) = ∑(1, 4, 7) and f2(x, y, z) = ∑(3, 5,
6, 7)
• where ∑ represents the summation of minterms corresponding to decimal codes.
WOLAITA SODO UNIVERSITY.
Digital logic design
Cont…
• Example 1: - Express the Boolean function F(A,B, C) = A + B ‘C
a) In a sum of minterms (in decimal notation) and
b) In a product of maxterms (in decimal notation)
• Solution:-
a) first the function should be converted to standard miniterms forms
• When it is rearranged, the function become
F(A, B, C) = A’B’C + AB’C’ + AB’C + ABC’ + ABC
F(A, B, C) = 001 + 100 + 101 + 110 + 111
F(A, B, C) = m1 + m4 + m5 + m6 + m7
F(A, B, C) = ∑ (1, 4, 5, 6, 7)
b) the function should be standard maxterms, when it is converted,
F(A, B, C) = (A + B + C) (A + B’ + C) (A + B’ + C’)
F(A, B, C) = (000)(010)(011)
F(A, B, C) = M0.M2.M3
F(A, B, C) = ∏(0, 2, 3)
Example
• Example 2: - Express the Boolean function variable expansion:
✔
AB+AC+B`B+B`C
AB+AC+B`C
ABC+ABC`+ABC+AB`C+AB`C+AB`C`
Digital logic design
Cell Adjacency
• The cells in a Karnaugh map are arranged so that there is only a single-variable
change between adjacent cells.
• Adjacency is defined by a single-variable change.
• In the 3-variable map the 010 cell is adjacent to the 000 cell, the 011 cell, and the
110 cell.
• The 010 cell is not adjacent to the 001 cell, the 111 cell, the 100 cell, or the 101
cell.
• Cells that differ by only one variable are adjacent.
• Cells with values that differ by more than one variable are not adjacent.
• Physically, each cell is adjacent to the cells that are immediately next to it on any of
its four sides.
• A cell is not adjacent to the cells that diagonally touch any of its corners.
• Also, the cells in the top row are adjacent to the corresponding cells in the bottom
row and the cells in the outer left column are adjacent to the corresponding cells in
the outer right column.
• Although the same rules for adjacency apply to Karnaugh maps with any number of
cells.
WOLAITA SODO UNIVERSITY.
Digital logic design
Cell Adjacency
Cont…
Cont…
• Example1:- Map the following standard SOP expression on a Karnaugh map: F(A,
B, C) = A’B’C + A’BC’ + ABC’ + ABC
SOLUTION:- convert to binary representation
F(A, B, C) = A’B’C + A’BC’ + ABC’ + ABC
F(A, B, C) = 001 + 010 + 110 + 111
Cont…
• Example 3:- Map the following standard SOP expression on a Karnaugh map: F(A,
B, C, D) = A’B’C’D + A’B’CD + A’BC’D’ + AB’CD’ + ABC’D’ +ABC’D + ABCD
• SOLUTION:- Convert to binary forms
F(A, B, C, D) = 0001 + 0011 + 0100 + 1010 +
1100 + 1101 + 1111
F(A, B, C, D) =∑ (1, 3, 4, 10, 12,13,15)
Cont…
Cont….
• Example 4.1. Simplify the Boolean function by using SOP K-MAP minimization
a) F (A, B, C) = A’BC + AB’C’ + AB’C’ + AB’C
b) F (A, B, C) = A’B’C + A’BC + A’BC’ + AB’C + ABC.
c) F (A, B, C) = ∑(0, 2, 4, 5, 6).
d) F(A, B, C, D) = ABCD + AB’C’D’ + AB’C + AB
e) F(W, X,Y, Z) = ∑(0, 1, 2, 4, 5, 6, 8, 9, 12, 13, 14)
f) F (W, X,Y, Z) = ∑(3, 4, 5, 7, 9, 13, 14, 15)
g) F (W, X, Y, Z) =∏(0, 1, 4, 5, 6, 8, 9, 12, 13, 14)
• The process for minimizing a POS expression is basically the same as for an SOP
expression except that you group 0s to produce minimum sum terms instead of
grouping 1s to produce minimum product terms.
• The rules for grouping the 0s are the same as those for grouping the 1s.
• EXAMPLE:- Use a K-map to minimize the following standard POS expression:
a) F(A, B, C) =
b) F (X, Y, Z) =
c) F(A, B, C, D) = ∏(2, 8, 11, 15)
d) F (W, X, Y, Z) = ∏(0, 2, 6, 11, 13, 15)
e) F (A, B, C, D) = ∑(0, 8, 10, 11, 14)
f) F (A, B, C, D) = ∏(2, 8, 11, 15) + d (3, 12, 14)
g) F (W, X, Y, Z) = ∑(0, 2, 6, 11, 13, 15) + d (1, 9, 10, 14)
• Example2:- Using the Karnaugh map method, simplify the following functions,
obtain their sum of the products form, and product of the sums form. Realize
them with basic gates.
(a) F(W,X,Y,Z)= ∑(1,3,4,5,6,7,9, 12, 13)
WOLAITA SODO UNIVERSITY.
Digital logic design
Cell Adjacencies
• You already know how to determine adjacent cells within the 4-variable map.
• The best way to visualize cell adjacencies between the two 16-cel1 maps is to imagine that the A = 0 map is
placed on top of the A = I map.
• Each cell in the A = 0 map is adjacent to the cell directly below it in the A = I map.
Cont…
• Example:- for the below k-map, Combining these terms into the simplified SOP
expression yields:
• X = DE’ + B’CE + A’BD’ + BC’ D’E
Example