Roth 3 Boolean Algebra (Part 2) (Revised)
Roth 3 Boolean Algebra (Part 2) (Revised)
2
3.1 Multiplying Out and Factoring Expressions (1)
X (Y + Z ) = XY + XZ
( X + Y )( X + Z ) = X + YZ
Because the equation is valid for both X=0 and X=1, it is always valid.
3
3.1 Multiplying Out and Factoring Expressions (2)
Theorem for multiplying out: (Q + AB' )(C ' D +Q' ) = QC' D +Q' AB'
Multiplying out
using distributive laws (Q + AB' )(C' D + Q' ) = QC ' D + QQ'+ AB' C' D + AB' Q'
Redundant terms
multiplying out: (1) distributive laws (2) theorem (3-3)
4
3.1 Multiplying Out and Factoring Expressions (3)
5
3.2 Exclusive-OR and Equivalence Operations (1)
Exclusive-OR
00 = 0 0 1 = 1
XOR 1 0 = 1 1 1 = 0
Symbol
6
3.2 Exclusive-OR and Equivalence Operations (2)
X 0 = X 00 0
01 1
X 1 = X ' 10 1
X X =0 11 0
X X '= 1
X Y = Y X (commutative law)
( X Y ) Z = X (Y Z ) = X Y Z (associative law)
X (Y Z ) = XY XZ (distributive law)
( X Y )' = X Y' = X' Y = XY + X'Y'
7
3.2 Exclusive-OR and Equivalence Operations (3)
Equivalence operation (0 0) = 1 (0 1) = 0
(Exclusive-NOR, XNOR)
(1 0) = 0 (1 1) = 1
Truth Table XY
XY
00 1
01 0
10 0
11 1
XNOR
8
Multi-input Gates
9
Complexity of logic expression
◆ 𝐹 = 𝐴𝐵𝐶𝐷 + 𝐴′ 𝐵′ 𝐶 + 𝐶𝐷
10
3.2 Exclusive-OR and Equivalence Operations (4)
consensus
Example: consensus
12
3.3 Consensus Theorem (2)
Example: eliminate BCD A' C' D + A' BD + BCD + ABC + ACD '
Example: eliminate A’BD, ABC A' C' D + A' BD + BCD + ABC + ACD '
Consensus
Term added
Final expression F = A' B'+ BCE '+ ACDE
13
3.4 Algebraic Simplification of Switching Expressions (1)
14
3.4 Algebraic Simplification of Switching Expressions (2)
16
3.5 Proving Validity of an Equation (2)
Prove : A' BD'+ BCD + ABC '+ AB' D = BC ' D'+ AD + A' BC
= A' BD'+ BCD + ABC '+ AB' D + BC ' D'+ A' BC + ABD
(add consensus of A’BD’ and ABC’)
(add consensus of A’BD’ and BCD)
(add consensus of BCD and ABC’)
= AD + A' BD'+ BCD + ABC '+ BC ' D'+ A' BC = BC ' D'+ AD + A' BC
(eliminate consensus of BC’D’ and AD)
(eliminate consensus of AD and A’BC)
(eliminate consensus of BC’D’ and A’BC)
17
3.5 Proving Validity of an Equation (3)
18