5 Lecture Five
5 Lecture Five
By
❑Solution:
A(B + CD)
Constructing a Truth Table for a Logic Circuit
❑ Once the Boolean expression for a given logic circuit has been determined, a truth table
that shows the output for all possible values of the input variables can be developed.
Step1: Evaluating the Expression
For example, to evaluate the expression A(B + CD), find the values of the variables that
make the expression equal to 1 using the rules for Boolean addition and multiplication.
❑ Thus, the expression A(B + CD) equals 1 only if A = 1 and B + CD = 1.
❑ Now determine when the B + CD term equals 1. The term B + CD = 1 if either B = 1
or CD = 1 or if both B and CD equal 1.
❑ The term CD = 1 only if C = 1 and D = 1.
❑ Therefore, the expression A(B + CD) = 1 when A = 1 and B = 1 regardless of the values
of C and D or when A = 1 and C = 1 and D = 1 regardless of the value of B. And the
expression A(B + CD) = 0 for all other value combinations of the variable
Constructing a Truth Table for a Logic Circuit
Step2: Putting the Results in Truth Table Format
❑ First, list the sixteen input variable combinations of 1s and 0s in a binary
sequence. Next, place a 1 in the output column for each combination of input
variables that was determined in the evaluation. Finally, place a 0 in the output
column for all other combinations of input variables. These results are shown in
the truth table below
Logic Simplification Using Boolean Algebra
❑ Example: Using Boolean algebra techniques, simplify this expression:
AB + A(B + C) + B(B + C)
❑ Solution: Note: The following is not necessarily the only approach.
AB + A(B + C) + B(B + C)= AB + AB + AC + BB + BC
= AB + AB + AC + B + BC
=AB + AC + B + BC
= AB + AC + B
= B + AC
Simplification Reduces Gates for the Same Function
❑ The figure below shows that five gates are required to implement the
expression AB + A(B + C) + B(B + C) in its original form; however, only two
gates are needed for the simplified expression (B + AC ).
Simplification Reduces Gates for the Same Function
❑ When two or more product terms are summed by Boolean addition, the
resulting expression is a sum-of-products (SOP).
Some examples are:
➢ AB + ABC
➢ ABC + CDE + BCD
➢ AB + ABC +AC
❑ The first level of NAND gates feed into a NAND gate that acts as a negative-
OR gate. The NAND and negative-OR inversions cancel, and the result is
effectively an AND/OR circuit
Conversion of a General Expression to SOP Form
❑ Any logic expression can be changed into SOP form by applying Boolean
algebra techniques.
❑ For example, the expression A(B + CD) can be converted to SOP form by
applying the distributive law: A(B +CD) = AB + ACD
❑ Example: Convert each of the following Boolean expressions to SOP form
❑ A standard SOP expression is one in which all the variables in the domain
appear in each product term in the expression.
❑ For example, the expression ABC + ABD + ABCD is not in the standard
SOP ABCD + ABCD + ABCD while is in a standard SOP expression.
❑ Note: ABC + ABD + ABCD has a domain made up of the variables A, B,
C, and D.
❑ However, the complete set of variables in the domain is not represented in
the first two terms of the expression; that is, D or D is missing from the
first term and C or C is missing from the second term.
Converting Product Terms to Standard SOP
❑ Each product term in an SOP expression that does not contain all the
variables in the domain can be expanded to standard form to include all
variables in the domain and their complements.
❑ As stated in the following steps, a nonstandard SOP expression is
converted into standard form using Boolean algebra rule 6 (A + A = 1).
❑ Step 1: Multiply each nonstandard product term by a term made up of the
sum of a missing variable and its complement (you can multiply anything
by 1 without changing its value).
❑ Step 2: Repeat Step 1 until all resulting product terms contain all variables
in the domain in either complemented or uncomplemented form.
❑ In converting a product term to standard form, the number of product
terms is doubled for each missing variable
Converting Product Terms to Standard SOP
❑ When two or more sum terms are multiplied, the resulting expression is a
product-of-sums (POS). Some examples are
❑ (A + B)(A + B + C)
❑ (A + B + C)(C +D + E)(B + C + D)
❑ (A + B)(A + B + C)(A + C)
❑ Step 1: Evaluate each product term in the SOP expression. That is, determine the
binary numbers that represent the product terms.
❑ Step 2: Determine all of the binary numbers not included in the evaluation in
Step1.
❑ Step 3: Write the equivalent sum term for each binary number from Step 2 and
express in POS form.
❑ Solution:
Boolean Expressions and Truth Tables
Converting POS Expressions to Truth Table Format
❑ Step1: list all the possible combinations of binary values of the variables
just as was done for the SOP expression.
❑ Step3: place a 0 in the output column (X) for each binary value that makes
the expression a 0 and place a 1 for all the remaining binary values.
❑ Note: a POS expression is equal to 0 only if at least one of the sum terms is
equal to 0.
Converting POS Expressions to Truth Table Format
Example: Determine the truth table for the following standard POS expression
(A + B + C) (A + B + C) (A + B + C) ( A + B + C) (A + B + C)
Solution:
Determining Standard Expressions from a Truth Table
A + B + C +D = 1 + 0 + 0 + 1
= 0 +0 + 0 + 0
=0
Determining Standard Expressions from a Truth Table
❑ Example: From the truth table below, determine the standard SOP
expression and the equivalent standard POS expression.
❑ Solution: