Professional Documents
Culture Documents
X + Y = X ⋅Y
• Sum of Product
– see entries with value 1. • Thus, the inversion doesn’t distribute directly: it
– Ensure output 1 for those inputs. So OR also changes the “or” to an “and”
– A’B+AB’ A B A XOR B • Example:
0 0 0
• Product of Sum 0 1 1
• You can do DeMorgan’s law directly on the • Some important rules for simplification (how do
circuit: you prove these?):
– AB + AB’ = A
– A + AB = A
• Note that you can use the rules in either direction,
to remove terms, or to add terms. Indeed,
sometimes you need to add some terms in order to
get to the simples solution.
1
Examples (cont’d) Long example
• Prove the consensus theorem, which says:
• Simplify:
A’B’C’D’ + A’BC’D’ + A’BD + A’BC’D + ABCD + ACD’ + B’CD’
XY + X’Z + YZ = XY + X’Z = A’C’D’(B’ + B) + A’BD(1 + C’) + ABCD + ACD’ + B’CD’
• Solution: = A’C’D’ + A’BD + ABCD + ACD’ + B’CD’
XY + X’Z + YZ = A’C’D’ + BD(A’ + AC) + ACD’ + B’CD’
= A’C’D’ + BD(A’ + C) + ACD’ + B’CD’ (Since X + X’Y = X + Y)
= XY + X’Z + (X + X’)YZ
= A’C’D’ + A’BD + (BCD + ACD’) + B’CD’
= XY + X’Z + XYZ + X’YZ = A’C’D’ + A’BD + (BCD + ACD’ + ABC) + B’CD’
= XY + XYZ + X’Z + X’ZY (Added ABC by consensus)
= XY(1 + Z) + X’Z(1 + Y) = A’C’D’ + (A’BD + ABC + BCD) + (ABC + B’CD’ + ACD’)
= XY + X’Z = AC’D’ + A’BD + ABC + B’CD’
Cube Representation.
Karnaugh Maps
• Let’s draw a cube. Each vertex is a
possible term, AND two adjacent
• What was the idea in doing simplication? Well, vertices only differ in one variable. A’BC ABC
A’BC’
ABC’
A’BC’ A’B’C’ AB’C’ ABC’
B A’B’C
C AB’C
A simpler drawing of this is given below. We call
A
this kind of table a Karnaugh map.
A’B’C’ AB’C’
AB 01 00 10 11
A’BC A’B’C AB’C ABC C
1 0 0 1 1
Note how, because we are
0 1 0 1 1
now in 2d, the lines kinda
wrap around.
A’BC’ A’B’C’ AB’C’ ABC’
2
Implicants Example of Implicants
AB 00 01 11 10
CD
• Implicant: A product term whose “oneness” • Implicants 00 0 1 1 0
3
Proof of Duality (cont’d)