DLD Lecture 05
DLD Lecture 05
Wondershare
Watermark PDFelement
Presented by,
Prof. Dr. Boshir Ahmed
Md. Zahirul Islam
Remove
Wondershare
Watermark PDFelement
Definitions
• Literal: A variable or its complement
• Product term: literals connected by •
• Sum term: literals connected by +
• Minterm: a product term in which all the
variables appear exactly once, either
complemented or uncomplemented
• Maxterm: a sum term in which all the variables
appear exactly once, either complemented or
uncomplemented
Remove
Wondershare
Watermark PDFelement
Minterm
• Represents exactly one combination in the truth
table.
• Denoted by mj, where j is the decimal equivalent
of the minterm’s corresponding binary
combination (bj).
• A variable in mj is complemented if its value in bj
is 0, otherwise is uncomplemented.
• Example: Assume 3 variables (A,B,C), and j=3.
Then, bj = 011 and its corresponding minterm is
denoted by mj = A’BC
Remove
Wondershare
Watermark PDFelement
Maxterm
• Represents exactly one combination in the truth
table.
• Denoted by Mj, where j is the decimal equivalent
of the maxterm’s corresponding binary
combination (bj).
• A variable in Mj is complemented if its value in bj
is 1, otherwise is uncomplemented.
• Example: Assume 3 variables (A,B,C), and j=3.
Then, bj = 011 and its corresponding maxterm is
denoted by Mj = A+B’+C’
Remove
Wondershare
Watermark PDFelement
Example
• Truth table for f1(a,b,c) at right
a b c f1
• The canonical sum-of-products form
for f1 is 0 0 0 0
f1(a,b,c) = m1 + m2 + m4 + m6 0 0 1 1
= a’b’c + a’bc’ + ab’c’ + abc’
• The canonical product-of-sums form 0 1 0 1
for f1 is 0 1 1 0
f1(a,b,c) = M0 • M3 • M5 • M7
1 0 0 1
= (a+b+c)•(a+b’+c’)•
(a’+b+c’)•(a’+b’+c’). 1 0 1 0
• Observe that: mj = Mj’ 1 1 0 1
1 1 1 0
Remove
Wondershare
Watermark PDFelement
Shorthand: ∑ and ∏
• f1(a,b,c) = ∑ m(1,2,4,6), where ∑ indicates that
this is a sum-of-products form, and m(1,2,4,6)
indicates that the minterms to be included are
m1, m2, m4, and m6.
• f1(a,b,c) = ∏ M(0,3,5,7), where ∏ indicates that
this is a product-of-sums form, and M(0,3,5,7)
indicates that the maxterms to be included are
M0, M3, M5, and M7.
• Since mj = Mj’ for any j,
∑ m(1,2,4,6) = ∏ M(0,3,5,7) = f1(a,b,c)
Remove
Wondershare
Watermark PDFelement
A F
B
Remove
Wondershare
Watermark PDFelement
A F
C
B
A G
Remove
Wondershare
Watermark PDFelement
Algebraic Simplification
• Use the Boolean algebra theorems
introduced in Lecture 4 to help simplify the
expression for a logic circuit.
• Based on experience, often becomes a
trial-and-error process.
• No easy way to tell whether a simplified
expression is in its simplest form.
Remove
Wondershare
Watermark PDFelement
Examples 1- 4
Original Simplified
ABC+AB’(A’C’)’ A(B’+C)
ABC+ABC’+AB’C A(B+C)
A’C(A’BD)’+A’BC’D’+AB’C B’C+A’D’(B+C)
(A’+B)(A+B+D)D’ BD’
Remove
Wondershare
Watermark PDFelement
Examples 5 - 6
Algebraic Manipulation
Example 7
• Boolean algebra is a useful tool for
simplifying digital circuits.
• Why do it? Simpler can mean cheaper,
smaller, faster.
• Example: Simplify F = x’yz + x’yz’ + xz.
F = x’yz + x’yz’ + xz
= x’y(z+z’) + xz
= x’y•1 + xz
= x’y + xz
Remove
Wondershare
Watermark PDFelement
Complement of a Function
• The complement of a function is derived
by interchanging (• and +), and (1 and 0),
and complementing each variable.
• Otherwise, interchange 1s to 0s in the
truth table column showing F.
• The complement of a function IS NOT
THE SAME as the dual of a function.
Remove
Wondershare
Watermark PDFelement
Complementation
Example 9
• Find G(x,y,z), the complement of
F(x,y,z) = xy’z’ + x’yz
• G = F’ = (xy’z’ + x’yz)’
= (xy’z’)’ • (x’yz)’ DeMorgan
= (x’+y+z) • (x+y’+z’) DeMorgan again
• Note: The complement of a function can also be
derived by finding the function’s dual, and then
complementing all of the literals
Remove
Wondershare
PDFelement
Example 10
• The circuits shown provide the same output
– Circuit (b) is clearly less complex.
Algebraic Simplification
Watermark PDFelement
Example 11
Simplify the logic circuit shown.
The first step is to determine the expression for the output: z = ABC + AB • (A C)
Algebraic Simplification
Simplify the logic circuit shown.
Since B + B = 1, then…
Algebraic Simplification
Simplifed logic circuit.
z = A(C + B)
Remove
Wondershare
Watermark PDFelement
Karnaugh Maps
• Karnaugh maps (K-maps) are graphical
representations of Boolean functions.
• One map cell corresponds to a row in the
truth table.
• Also, one map cell corresponds to a minterm
or a maxterm in the Boolean expression
• Multiple-cell areas of the map correspond to
standard terms.
Remove
Wondershare
Watermark PDFelement
Two-Variable Map
x2 x1
x1 0 1 x2 0 1
0 1 0 2
0 m0 m1
OR 0 m0 m2
2 3 1 3
1 m2 m3 1 m1 m3
Three-Variable Map
yz
x 00 01 11 10
0 1 3 2
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
group of 4 terms
Remove
Wondershare
Watermark PDFelement
Simplification
• Enter minterms of the Boolean function into
the map, then group terms
• Example: f(a,b,c) = a’c + abc + bc’
• Result: f(a,b,c) = a’c+ b
bc
a
1 1 1
1 1
1 1 1
1 1
Remove
Wondershare
Watermark PDFelement
More Examples
yz
X 00 01 11 10
• f1(x, y, z) = ∑ m(2,3,5,7) 0 1 1
1 1 1
■ f1(x, y, z) = x’y + xz
• f2(x, y, z) = ∑ m (0,1,2,3,6)
1 1 1 1
■f2(x, y, z) = x’+yz’
1
Remove
Wondershare
Watermark PDFelement
Four-Variable Maps
YZ
00 01 11 10
WX
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
Example
• Simplify the following Boolean function
(A,B,C,D) = ∑m(0,1,2,4,5,7,8,9,10,12,13).
• First put the function g( ) into the map, and then
group as many 1s as possible.
ab cd
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1
1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
Remove
Wondershare
Watermark PDFelement
Don’t-Care Conditions
• Some logic circuits can be designed so
that there are certain input conditions for
which there are no specified output levels.
• A circuit designer is free to make the
output for any don’t care condition either a
0 or a 1 in order to produce the simplest
output expression.
Remove
Wondershare
Watermark PDFelement
cd
ab 00 01 11 10
Example 00 0 1 0 1
01 1 1 0 1
• Simplify the function f(a,b,c,d) 11 0 0 x x
10 1 1 x x
whose K-map is shown at the
right. 0 1 0 1
• f = a’c’d+ab’+cd’+a’bc’ 1 1 0 1
or 0 0 x x
1 1 x x
• f = a’c’d+ab’+cd’+a’bd’
0 1 0 1
1 1 0 1
0 0 x x
1 1 x x
Remove
Wondershare
Watermark PDFelement
cd
Another Example ab
x 1 0 0
1 x 0 x
• Simplify the function 1 x x 1
g(a,b,c,d) whose K-map 0 x x 0
is shown at right. x 1 0 0
• g = a’c’+ ab 1 x 0 x
1 x x 1
or
0 x x 0
• g = a’c’+b’d
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
Remove
Wondershare
Watermark PDFelement
Another Example
For each symbol of the Excess-3 code, we use 1’s to draw
the map for simplifying Boolean function.
52
Remove
Wondershare
Watermark PDFelement
Circuit implementation
z = D’; y = CD + C’D’ = CD + (C + D)’
x = B’C + B’D + BC’D’ = B’(C + D) + B(C + D)’
w = A + BC + BD = A + B(C + D)
53
Remove
Wondershare
Watermark PDFelement
Two-level implementations
a) Original SOP
b) Implementation with NANDs
Remove
Wondershare
Watermark PDFelement
Verify:
(a) G = WXY + YZ
(b) G = ( (WXY)’ • (YZ)’ )’
= (WXY)’’ + (YZ)’’ = WXY + YZ
Remove
Wondershare
Watermark PDFelement
Example (cont.)
Example
Use NAND gates
and NOT gates to
implement
Z=E’F(AB+C’+D’)+GH
AB
AB+C’+D’
E’F(AB+C’+D’)
E’F(AB+C’+D’)+GH
Example (cont.)
Circuit that
produces a 1
output only for
the A = 0, B = 1
condition.
Remove
Wondershare
Watermark PDFelement
Implementing the
circuit after factoring:
Analysis procedure
To obtain the output Boolean functions from a logic
diagram, proceed as follows:
1.Label all gate outputs that are a function of input variables with arbitrary
symbols. Determine the Boolean functions for each gate output.
2.Label the gates that are a function of input variables and previously labeled
gates with other arbitrary symbols. Find the Boolean functions for these
gates.
3.Repeat the process outlined in step 2 until the outputs of the circuit are
obtained.
4.By repeated substitution of previously defined functions, obtain the output
Boolean functions in terms of input variables.
Remove
Wondershare
Watermark PDFelement
Example – 1
F2 = AB + AC + BC; T1 = A + B + C; T2 = ABC; T3 = F2’T1;
F1 = T3 + T2
F1 = T3 + T2 = F2’T1 + ABC = A’BC’ + A’B’C + AB’C’ + ABC
75
Remove
Wondershare
Watermark PDFelement
76
Remove
Wondershare
Watermark PDFelement
Design procedure
1. Table4-2 is a Code-Conversion example, first, we can
list the relation of the BCD and Excess-3 codes in the
truth table.
77
Remove
Wondershare
Watermark PDFelement
Thank
You
Next topic