









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
All Boolean expressions, regardless of their form, can be converted into either of two standard forms: the sum-of-products form or the product-of-sums form. ...
Typology: Lecture notes
1 / 15
This page cannot be seen from the preview
Don't miss anything!










All Boolean expressions, regardless of their form, can be converted into either of two standard forms: the sum-of-products form or the product-of-sums form. Standardization makes the evaluation, simplification, and implementation of Boolean expressions much more systematic and easier.
4.6.1 The Sum-of-Products (SOP) Form (Minterm)
This form is sometimes called "minterm". A product term that contains each of the n-variables factors in either complemented or uncomplemented form for output digits "1" only, is called SOP. For example for the truth table below:
Input Output A B C F (^0 0 0 1) 𝐴̅ 𝐵̅ 𝐶̅ (^0 0 1 0) 𝐴̅ 𝐵̅ 𝐶 0 1 0 1 𝐴̅ 𝐵𝐶̅ 0 1 1 1 𝐴̅ 𝐵𝐶 1 0 0 0 𝐴𝐵̅ 𝐶̅ (^1 0 1 0) 𝐴𝐵̅ 𝐶 (^1 1 0 1) 𝐴𝐵𝐶̅ 1 1 1 1 𝐴𝐵𝐶
The Logical SOP expression for the output digit "1" is written as"
𝐹 = 𝐴̅𝐵̅𝐶̅ + 𝐴̅𝐵𝐶̅ + 𝐴̅𝐵𝐶 + 𝐴𝐵𝐶̅ + 𝐴𝐵𝐶
This function com be put in another form such as:
𝐹 = ∑ 0, 2,3,6,
Since F= 1 in rows 0, 2,3,6,7 only.
The second form is called the Canonical Sum of Products (Canonical SOP).
4.6.2 The Product-of-Sum (POS) Form (Maxterm)
A Logical equation can also be expressed as a product of sum (POS) form (sometimes this method is called "Maxterm". This is done by considering the combination for F=0 (output = 0).
So for the above example from the truth table F=0 is in rows 1, 4, 5 hence:
𝐹̅(𝐴, 𝐵, 𝐶) = 𝐴̅𝐵̅𝐶 + 𝐴𝐵̅𝐶̅ + 𝐴𝐵̅𝐶
𝐹(𝐴, 𝐵, 𝐶) = 𝐹̅̅(𝐴, 𝐵, 𝐶) = 𝐴̅𝐵̅𝐶 + 𝐴𝐵̅𝐶̅ + 𝐴𝐵̅𝐶̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
= 𝐴̅𝐵̅𝐶̅̅̅̅̅̅ ∙ 𝐴𝐵̅𝐶̅̅̅̅̅̅̅ ∙ 𝐴𝐵̅𝐶̅̅̅̅̅̅
= (𝐴̿ + 𝐵̿ + 𝐶̅) ∙ (𝐴̅ + 𝐵̿ + 𝐶̿) ∙ (𝐴̅ + 𝐵̿ + 𝐶̅)
𝐹(𝐴, 𝐵, 𝐶) = (𝐴 + 𝐵 + 𝐶̅) ∙ (𝐴̅ + 𝐵̿ + 𝐶̿) ∙ (𝐴̅ + 𝐵̿ + 𝐶̅)
This is POS form. POS form can be expressed as:
𝐹 = ∏ 1, 4, 5
This form is called the Canonical Product of Sum (Canonical POS).
Example : Put F in SOP and POS form and simplifying it:
Sol.
𝑆𝑂𝑃: 𝐹(𝐴, 𝐵) = ∑ 0,1,
= 𝐴̅𝐵̅ + 𝐴̅𝐵 + 𝐴𝐵
= 𝐴̅ (𝐵̅ + 𝐵 ) + 𝐴𝐵
= 𝐴̅ + 𝐴𝐵
Example : Represent F 1 , F 2 in SOP & POS forms then simplified F 1 and F 2 using Boolean algebra.
Sol.
In SOP:
𝐹 1 (𝐴, 𝐵, 𝐶) = ∑ 1,2,3,5,6,
= 𝐴̅𝐵̅𝐶 + 𝐴̅𝐵𝐶̅ + 𝐴̅𝐵𝐶 + 𝐴𝐵̅𝐶 + 𝐴𝐵𝐶̅ + 𝐴𝐵𝐶
= 𝐴̅(𝐵̅𝐶 + 𝐵𝐶̅ + 𝐵𝐶) + 𝐴(𝐵̅𝐶 + 𝐵𝐶̅ + 𝐵𝐶)
= 𝐴̅[𝐵̅𝐶 + 𝐵(𝐶̅ + 𝐶)] + 𝐴[𝐵̅𝐶 + 𝐵(𝐶̅ + 𝐶)]
= 𝐴̅(𝐵̅𝐶 + 𝐵) + 𝐴(𝐵̅𝐶 + 𝐵)
= (𝐴̅ + 𝐴) ∙ (𝐵̅𝐶 + 𝐵)
= 𝐵̅𝐶 + 𝐵
𝐹 1 (𝐴, 𝐵, 𝐶) = 𝐵 + 𝐶 In POS:
𝐹(𝐴, 𝐵, 𝐶) = ∏ 0,
= (𝐴 + 𝐵 + 𝐶) ∙ (𝐴̅ + 𝐵 + 𝐶)
= 𝐴𝐴̅ + 𝐴𝐵 + 𝐴𝐶 + 𝐴̅𝐵 + 𝐵𝐵 + 𝐵𝐶 + 𝐶𝐴̅ + 𝐶𝐵 + 𝐶𝐶
= 𝐴𝐵 + 𝐴𝐶 + 𝐴̅𝐵 + 𝐵 + 𝐵𝐶 + 𝐴̅𝐶 + 𝐵𝐶 + 𝐶
= 𝐴𝐵 + 𝐴𝐶 + 𝐴̅𝐵 + 𝐵(1 + 𝐶) + 𝐴̅𝐶 + 𝐶(1 + 𝐵)
H.W.: Solution for F 2
4.6.3 Converting SOP to POS and Vice Versa
The binary values of the product terms in a given SOP expression aren't present in the equivalent POS expression. Therefore to convert from standard SOP to standard POS the following steps may be used:
Step 1: Evaluate each product term in the SOP expression that determines the binary numbers representing the product term.
Step 2: Determine all the binary numbers not included in the evaluation in step 1.
Step 3: Write the equivalent sum term for each binary number from step 2 and express it in POS form.
Note: A Standard SOP expression is one in which all the variables in the domain appear in each term of the expression. If any variable is missing from any term, we must add these missing variables to that term, by multiplying the term by the variables missing.
For example, if variable B is missing from the term AC , we must multiply this term AC , by 𝐵 + 𝐵̅ to make the expression standard SOP.
𝐴𝐶(𝐵 + 𝐵̅)
Note : using a similar procedure explained above (steps 1, 2, and 3) we can convert from standard POS to standard SOP. If there is missing any variable from any term, we must add the missing variable multiplied by its complement to that term.
For example if variable A is missing from the term (𝐵 + 𝐶̅) we must add 𝐴𝐴̅
H.W.: Convert the POS form to SOP form and find these canonical:
𝐹(𝐴, 𝐵, 𝐶) = (𝐴 + 𝐵)(𝐴̅ + 𝐶)(𝐴 + 𝐵 + 𝐶)
A K- map provides a systematic method for simplifying Boolean expressions and, if properly used, will produce the simplest SOP or POS expression. As you have seen, the effectiveness of algebraic simplification depends on your familiarity with all the laws, rules, and theorems of Boolean algebra and on your ability to apply them. The K-map is an array of cells in which each cell represents a binary value of the input variables. The cells are arranged in a way so that simplification of a given expression is simply a matter of properly grouping the cells. The K-maps can be used for expressions with two, three, four, and five variables, but we will discuss only 2, 3, and 4 variables. The number of cells in a K-map, as well as the number of rows in a truth table.
For 2 input variables, the number of cells is 2^2 = 4 cells
For 3 input variables, the number of cells is 2^3 = 8 cells
And for 4 input variables, the number of cells is 2^4 = 16 cells
4.7.1 The 2-variebles K - map
𝐹(𝐴, 𝐵) = 𝐵̅ 𝑆𝑂𝑃
𝐹(𝐴, 𝐵) = 𝐵 𝑃𝑂𝑆
4.7.3 The 4-variebles K – map
𝐹(𝐴, 𝐵) = 𝐵̅ 𝑆𝑂𝑃
𝐹(𝐴, 𝐵) = 𝐵 𝑃𝑂𝑆
Note:
_1. Number of 1's or 0's in one group must be 1, 2, 4, 8, and 16.
Example: Simplify the following SOP expression on a Karnaugh map:
𝐹 = 𝐴̅𝐵̅𝐶̅𝐷̅ + 𝐴𝐵̅𝐶𝐷̅ + 𝐴𝐵̅𝐶̅𝐷̅ + 𝐴̅𝐶𝐷 + 𝐴𝐵̅𝐶𝐷̅ Sol. 𝐹 = 𝐵̅𝐷̅ + 𝐴̅𝐶𝐷
Example: Determine the simply expression by the truth table below using Karnaugh map method.
(b) If the squares marked with 0's are combined we obtain the simplified POS form or the complement of F: 𝐹̅ = 𝐴𝐵 + 𝐶𝐷 + 𝐵𝐷̅ Applying DeMorgan's theorem by taking the complement of each side, we obtain the simplified function in POS form:
𝐹̅ = 𝐴𝐵 + 𝐶𝐷 + 𝐵𝐷̅
𝐹̅ = (𝐴𝐵) ∙ (𝐶𝐷) ∙ (𝐵𝐷̅)
𝐹̅ = (𝐴 + 𝐵) ∙ (𝐶 + 𝐷) ∙ (𝐵 + 𝐷̅)
𝐹̅ = (𝐴 + 𝐵) ∙ (𝐶 + 𝐷) ∙ (𝐵 + 𝐷)
Note: To use K-map for simplification a function expressed in POS form, follow these rules:
_1. Take the complement of the function.
4.7.4 Don't Care Conditions
Sometimes a situation arises in which some input variable combinations are not allowed. For example, recall that in the BCD code, there are six invalid combinations: 1010, 1011, 1100, 1101, 1110, and 1111. Since these unallowed states will never occur in an application involving the BCD code, they can be treated as “don’t care” terms with respect to their effect on the output. That is, for these “don’t care” terms either a 1 or a 0 may be assigned to the output; it really does not matter since they will never occur. The “don’t care” terms can be used to advantage on the Karnaugh map. The figure below shows that for each “doesn’t care” term, an X is placed in the cell. When grouping the 1s, the Xs can be treated as 1s to make a larger grouping or as 0s if they cannot be used to advantage. The larger a group, the simpler the resulting term will be.
The truth table describes a logic function that has a 1 output only when the BCD code for 7, 8, or 9 is present on the inputs. If the “don’t care” are used as 1s, the resulting expression for the function is A + BCD, as indicated in K- map. If the “don’t care” is not used as 1s, the resulting expression is ABC + ABCD; so you can see the advantage of using “don’t care” terms to get the simplest expression.
Example: In a 7-segment display, each of the seven segments is activated for various digits. For example, segment-a is activated for the digits 0, 2, 3, 5, 6, 7, 8, and 9, as illustrated in the figure below. Since each digit can be represented by a BCD code, derive an SOP expression for segment-a using the variables ABCD and then minimize the expression using a K - map.