5b (Digital System) Logic Gates & Boolean Expression
5b (Digital System) Logic Gates & Boolean Expression
x x 0 1
1 0
Buffer
x Buffer
x x
0 0
1 1
OR x y OR
0 0 0
x x+y 0 1 1
y 1 0 1
1 1 1
XNOR (Exclusive-NOR)
(Equivalence)
x y XNOR
0 0 1
x xÅ y xy+xy 0 1 0
y x y 1 0 0
1 1 1
Logic Gates
Gates can have multiple inputs and more than one
output.
A second output can be provided for the complement of
the operation.
Boolean Function Simplification
Commutative Law
x•y=y•x x+y=y+x
Identity Element
x•1=x x+0=x
Complement
x • x’ = 0 x + x’ = 1
Boolean Algebra Theorems
Duality
The dual of a Boolean algebraic expression is obtained by
interchanging the AND and the OR operators and
replacing the 1’s by 0’s and the 0’s by 1’s.
x•(y+z)=(x•y)+(x•z)
x+(y•z)=(x+y)•(x+z)
Theorem 1
x•x=x x+x=x
Theorem 2
x•0=0 x+1=1
Theorem 3: Involution
(x)=x
Theorem 5: DeMorgan
Theorem 6: Absorption
x•(x+y)=x x+(x•y)=x
DeMorgan’s Theorem on Gates
AND Gate
F=x•y F = (x • y) F=x+y
OR Gate
F=x+y F = (x + y) F=x•y
Example
Use Boolean Algebra to simplify Boolean functions to
produce simpler circuits
F BC AB AC
Product of Sums (POS)
AB(C C )
BC ( A A)
AC ( B B )
F AC ( B B) AB(C C ) BC ( A A)
F AC AB BC
F ( A C )( A B)( B C )
Sum of Products (SOP) B’
C
A
F BC AB AC B’ F
A
C