AV-211 Digital Systems - Logic Design & Devices: Lecture No 9
AV-211 Digital Systems - Logic Design & Devices: Lecture No 9
2
Canonical Forms
• Useful to specify Boolean functions in a standard form:
– allows comparison for equality
3
Minterms
• Minterm
– PRODUCT or AND term, in which every variable is present in
either true or complemented form
X Y, X Y, X Y, X Y
• four Minterms for two variables
• literal is complemented if corresponding bit of the binary
number is 0, and vice versa
• for n variables, 2n Minterms
4
Minterms
• Three binary variables X, Y, Z have 8 Minterms
• Each Minterm is a
PRODUCT term of
exactly 3 literals
• Each literal appears
only once in a term
• Symbol mj used for
Minterms
5
Minterms
• Truth table for all Minterms
• Minterm mj is 1 for input variable combination corresponding to
binary combination j, and 0 for all other combinations
6
Maxterms
• Maxterm
– SUM or OR term, in which every variable is present in either
true or complemented form
8
Maxterms
• Truth table for all Maxterms
• Maxterm Mj is 0 for input variable combination corresponding to
binary combination j, and 1 for all other combinations
9
Minterm & Maxterm
Relationship
• The Minterms and Maxterms with the same subscript are
complements of each other
mj M j and M j mj
• Example:
– for j=3 and using DeMorgan’s Theorem ( X Y Z X Y Z )
m3 XYZ X Y Z M 3
10
Standard Order
• Minterm/Maxterm variables are listed in standard order
– usually alphabetically
– in normal/complemented state
• For variables a, b, c:
11
Minterm & Maxterm Index
• A Minterm/Maxterm has an Index
– index associated with a binary number
– helps to determine if variable exists in true form or
complemented form
12
Index Example: Four Variables
14
Canonical Sum of Minterms
• Any Boolean function can be expressed as SOM
– For Function Table:
• Minterms used are the terms corresponding to 1's
– For Algebraic Expressions:
• expand all terms to explicitly list all Minterms
• “AND” the term missing a variable ‘x’ with a term like ( x x )
• Example: Implement the following function as SOM
f x xy
Expand terms f x( y y) x y
Distribute terms f xy x y x y
Express as SOM f m3 m2 m0
15
SOM: Example 1
• Example: Implement as Sum of Minterms (SOM):
F a bc
a (b b)(c c ) bc (a a ) expand terms
(ab ab)(c c ) abc abc
c (ab ab) c (ab ab) abc abc
abc abc abc abc abc abc
abc abc abc abc abc remove duplicates
m7 m5 m6 m4 m1 write as SOM
F m1 m4 m5 m6 m7
16
SOM: Example 2
• Implement F in Minterm form: F(X,Y,Z)= m1 + m4 + m7
• The function is:
F ( X ,Y , Z ) XY Z XY Z XYZ
17
SOM: Example 3
• Implement F in Minterm form:
F(A,B,C,D,E)= m2 + m9 + m17 + m23
• Sol:
– Find the binary numbers corresponding to 2, 9, 17 & 23
– Write the respective Minterms and OR them together
18
Short-hand SOM Form
• From the previous example, we started with:
F a bc
• We ended up with:
F m1 m4 m5 m6 m7
19
SUMMARY
20
QUESTIONS ?
21
NEXT TIME
22