Unit 3
Unit 3
Example
Apply DeMorgan's theorems to the expressions XYZ and X + Y + z.
XYZ = X + Y + Z
X+y+Z=XYZ
Example
Apply DeMorgan's theorems to the expressions WXYZ and W + X + y + z.
WXYZ = W + X + y + Z
W+X+y+Z=WXYZ
Step l. Identify the terms to which you can apply DeMorgan's theorems, and
think of each term as a single variable. Let A + BC = X and D(E + F) = Y.
Step 2. Since X + Y = X Y,
Step 5. Use rule 9 (A = A) to cancel the double bars over the E + F part of
the term.
(A + BC)(D + E + F) = (A + BC)(D + E + F)
Example
Apply DeMorgan's theorems to each of the following expressions:
The expression for the left-most AND gate with inputs C and D is CD.
The output of the left-most AND gate is one of the inputs to the OR
gate and B is the other input. Therefore, the expression for the OR
gate is B + CD.
The output of the OR gate is one of the inputs to the right-most AND
gate and A is the other input. Therefore, the expression for this AND
gate is A(B + CD), which is the final output expression for the entire
circuit.
Example
Using Boolean algebra techniques, simplify this expression:
AB + A(B + C) + B(B + C)
Solution
Step 1: Apply the distributive law to the second and third terms in the
expression, as follows:
AB + AB + AC + BB + BC
Step 2: Apply rule 7 (BB = B) to the fourth term.
AB + AB + AC + B + BC
Step 3: Apply rule 5 (AB + AB = AB) to the first two terms.
AB + AC + B + BC
Step 4: Apply rule 10 (B + BC = B) to the last two terms.
DSD UNIT 2 NOTES
AB + AC + B
Step 5: Apply rule 10 (AB + B = B) to the first and third terms.
B+AC
At this point the expression is simplified as much as possible.
Example
Simplify the Boolean expressions:
1- AB + A(B + C) + B(B + C).
2- [AB( C + BD) + A B]C
3- ABC + ABC + A B C + ABC + ABC
Example
Convert each of the following Boolean expressions to SOP form:
(a) AB + B(CD + EF)
(b) (A + B)(B + C + D)
(c) (A + B) + C
Example
Convert the following Boolean expression into standard SOP
form: ABC + AB + ABCD
Solution
The domain of this SOP expression A, B, C, D. Take one term at a time. The
first term, ABC, is missing variable D or D, so multiply the first term by (D
+ D) as follows:
ABC = ABC(D + D) = ABCD + ABCD
In this case, two standard product terms are the result.
The second term, AB, is missing variables C or C and D or D, so first
multiply the second term by C + C as follows:
AB = AB(C + C) = ABC + ABC
Fig.(4-20)
Example
Convert the following Boolean expression into standard POS
form: (A + B + C)(B + C + D)(A + B + C + D)
Solution
The domain of this POS expression is A, B, C, D. Take one term at a time.
The first term, A + B + C, is missing variable D or D, so add DD and apply
rule 12 as follows:
A + B + C = A + B + C + DD = (A + B + C + D)(A + B + C + D)
The second term, B + C + D, is missing variable A or A, so add AA and
apply rule 12 as follows:
B + C + D = B + C + D + AA = (A + B + C + D)(A + B + C + D)
The third term, A + B + C + D, is already in standard form. The standard
POS form of the original expression is as follows:
n
n variables can be combined to form 2 minterms.
F=xy z+xyz+xyz
F = m1 + m4 + m7
The complement of F = F = F
F = (x + y + z) (x + y + z) (x + y + z) (x + y + z) (x + y +
z) F = M0 M2 M3 M5 M6
Example
Express the Boolean function F = A + BC in a sum of minterms (SOP).
Solution
The term A is missing two variables because the domain of F is (A, B, C)
A = A(B + B) = AB + AB because B + B = 1
In short notation
F(A, B, C) = ∑(1, 4, 5, 6, 7)
F(A, B, C) = ∑(0, 2, 3)
A B C B BC F
0 0 0 0 1 0 0
1 0 0 1 1 1 1
2 0 1 0 0 0 0
3 0 1 1 0 0 0
4 1 0 0 1 0 1
5 1 0 1 1 1 1
6 1 1 0 0 0 1
7 1 1 1 0 0 1
Example
Determine the truth table for the following standard POS expression:
(a) (b)
Fig.(5-2) A 4-variable Karnaugh map.
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.
Fig.(5-3) Adjacent cells on a Karnaugh map are those that differ by only one
variable. Arrows point between adjacent cells.
Example
Map the following standard SOP expression on a Karnaugh map:
see Fig.(5-4).
Example
Map the following standard SOP expression on a Karnaugh map:
See Fig.(5-5).
Example
Map the following SOP expression on a Karnaugh map:
Solution
The SOP expression is obviously not in standard form because each product
term does not have four variables.
Example:
Group the 1s in each of the Karnaugh maps in Fig.(5-6).
Fig.(5-6)
Fig.(5-7)
Determine the minimum product term for each group.
a. For a 3-variable map:
(1) A l-cell group yields a 3-variable product term
(2) A 2-cell group yields a 2-variable product term
(3) A 4-cell group yields a 1-variable term
(4) An 8-cell group yields a value of 1 for the expression
Fig.(5-8)
Fig.(5-9)
Fig.(5-10)
Solution:
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 that you learned
before.
Example:
Use a Karnaugh map to minimize the following standard POS expression:
Also, derive the equivalent SOP expression.
Solution:
1- AND-OR Logic
Fig.(6-1)(a) shows an AND-OR circuit consisting of two 2-input AND gates
and one 2-input OR gate; Fig.(6-1)(b) is the ANSI standard rectangular outline
symbol. The Boolean expressions for the AND gate outputs and the resulting
SOP expression for the output X are shown in the diagram. In general, all AND-
OR circuit can have any number of AND gates each with any number of inputs.
The truth table for a 4-input AND-OR logic circuit is shown in Table 6-1. The
intermediate AND gate outputs ( AB and CD columns) are also shown in the
table.