Lecture #5
Lecture #5
1
First row ➔
Second row ➔
Fourth row ➔
Thus, f may be realized as
2
The logic network corresponding to
Canonical sum-of-products
Minimal-cost realization
3
Sum-of-Products and Product-of-Sums Forms
If a function f is specified in the form of a truth table, then an expression that
realizes f can be obtained in two ways.
a) Considering the rows in the table for which f = 1
b) Considering the rows for which f = 0
4
Three-variable minterms:
Sum-of-Products Form
Any function f can be represented by a sum of minterms that correspond to
the rows in the truth table for which f = 1.
• A logic expression consisting of product (AND) terms that are
summed (ORed) is said to be of the sum-of products form. If each
product term is a minterm, then the expression is called a canonical
sum-of-products for the function f .
5
Example: Synthesize the function f
We take minterms m1, m4, m5, and m6 and the function becomes
6
A minimal sum-of-products realization
b) Considering rows with f = 0
Maxterms
Maxterms are complements of minterms.
We synthesize f by considering the rows for which f = 0.
7
Product-of-Sums Form
A logic expression consisting of sum (OR) terms that are the factors of a logical
product (AND) is said to be of the product-of-sums form.
If each sum term is a maxterm, then the expression is called a canonical product-of-
sums for the given function.
8
Considering the previous example,
, alternatively:
10
According to DeMorgan’s theorem,
11
Hence,
A NAND of variables x1 and x2 is equivalent to first complementing each of the variables
and then ORing them.
The NOR function is equivalent to first inverting the input variables and then
ANDing them.
We have explained how any logic function can be implemented either in sum of-
products or product-of-sums form.
Leads to logic networks that have either an AND-OR or an OR-AND
structure, respectively.
12
Consider a AND-OR network.
13
Thus, we can redraw the network using only NAND gates:
14
Similarly a product-of-sums network can be transformed into a circuit with only
NOR gates
15
Exercise:
1.
2.
16