Professional Documents
Culture Documents
Digital Systems
Lecture # 6
Algebraic Manipulation
F XYZ XYZ XZ
When a Boolean equation is implemented
with logic gates, each term requires a gate,
and each variable within the term
designates an input to the gate.
We define a literal as a single variable
within a term that may or may not be
complemented.
The expression above has THREE terms
and EIGHT literals.
2
Reference: Lecture Notes of Eng. Yusra Maatog
Algebraic Manipulation
Consider function
F XYZ XYZ XZ
How many
gates do
we need to
implement
this
function?
3
Reference: Lecture Notes of Eng. Yusra Maatog
Simplify Function
F XYZ XYZ XZ
Apply
F XY (Z Z ) XZ
Apply
F XY 1 XZ
Apply
F XY XZ
End Result?
4
Reference: Lecture Notes of Eng. Yusra Maatog
Fewer Gates F XY XZ
1. Fewer Gates!
2. Fewer Inputs per gate!
5
Reference: Lecture Notes of Eng. Yusra Maatog
Circuit Cost
For a circuit, we will define a COST. We will ignore NOT gates at the
inputs of a circuit; all other gates count as 1 and every gate input will count
as 1.
6
Reference: Lecture Notes of Eng. Yusra Maatog
Truth Table to Verify DeMorgan’s
X+Y=X·Y X·Y=X+Y
X Y X·Y X+Y X Y X+Y X · Y X·Y X+Y
0 0 0 0 1 1 1 1 1 1
0 1 0 1 1 0 0 0 1 1
1 0 0 1 0 1 0 0 1 1
1 1 1 1 0 0 0 0 0 0
Generalized DeMorgan’s Theorem:
X1 + X2 + … + Xn = X1 · X2 · … · Xn
X 1 · X 2 · … · X n = X 1 + X 2 + … + Xn
Boolean Algebra and Logic Gates 7
Reference: Lecture Notes of Dr. Samir Elbuni
Complement of a Function
X Y Z F F
The complement representation for 0 0 0 0 1
a function F, F, is obtained from an
0 0 1 1 0
interchange of 1’s to 0’s and 0’s to
1’s for the values of F in the truth 0 1 0 1 0
table. 0 1 1 0 1
1 0 0 0 1
F XYZ XYZ 1
1
0
1
1
0
0
0
1
1
1 1 1 0 1
F XYZ XYZ
F ( XYZ ).(XYZ )
F ( X Y Z )( X Y Z )
8
Reference: Lecture Notes of Dr. Samir Elbuni
Complementing Functions
Use DeMorgan's Theorem to find the complement
1. Interchange AND and OR operators
2. Complement each constant and literal
Example: Complement G = (a + bc)d + e
G = (a (b + c) + d) e
F = m1 + m6 + m7 = ∑ (1, 6, 7) = x y z + x y z + x y z
Boolean Algebra and Logic
Reference: Lecture Notes of Dr. Samir Elbuni Gates 17
Sum-Of-Minterm Examples
F(a, b, c, d) = ∑(2, 3, 6, 10, 11)
F(a, b, c, d) = m2 + m3 + m6 + m10 + m11
a b c d+ a b c d+ a b c d+ a b c d+ a b c d
G(a, b, c, d) = ∑(0, 1, 12, 15)
G(a, b, c, d) = m0 + m1 + m12 + m15
a b c d+ a b c d+ a b c d+ a b c d
F = m1+m2+m3+m5+m7 = ∑(1, 2, 3, 5, 7)
=xyz+xyz+xyz+xyz+xyz
F = M0 · M4 · M6 = ∏(0, 4, 6) = (x+y+z)(x+y+z)(x+y+z)
Boolean Algebra and Logic Gates 24
Reference: Lecture Notes of Dr. Samir Elbuni