DLD Lecture 7 + 8
DLD Lecture 7 + 8
A+B=B+A
1. X+0= X 2. X .1 =X
3. X+1 =1 4. X .0 =0
5. X+X =X 6. X .X = X
7. X+X =1 8. X .X = 0
9. X=X
10. X + Y =Y + X 11. XY = YX
12. (X + Y)+ Z = X + (Y + Z) 13. (XY)Z = X(YZ)
14. X(Y +Z) = XY+XZ 15. X + YZ = (X + Y)(X + Z)
16. X + Y =X . Y 17. X . Y = X + Y
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Boolean Operator
Precedence
The order of evaluation is:
1. Parentheses
2. NOT
3. AND
4. OR
Consequence: Parentheses appear
around OR expressions
Example: F = A(B + C)(C + D)
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Rules of Boolean Algebra
Rule 10, which states that A + AB = A, can be proven by
applying earlier rules as follows:
A +AB = A.1 + AB
= A.(1 + B)
=A.1
=A
AA BB AA
AB
AB =
This
Thistime,
time,AAisisrepresented
representedby bythe
theblue
bluearea
areaand
andBB
again
againby
bythe
thered circle. The intersection represents
redcircle.
AB. Notice that A + AB = A + B
A
A BA
AB
A B A B
A+B
A+C = BC
C C
(A + B)(A + C) A + BC
Floyd, Digital Fundamentals, 10th ed
DeMorgan’s Theorem
DeMorgan’s 1st Theorem
The complement of a product of variables is
equal to the sum of the complemented variables.
AB = A + B
Applying DeMorgan’s first theorem to gates:
A A Inputs Output
AB A+B
B B
A B AB A + B
NAND Negative-OR 0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Example
Determine the output level in last example
for A=B=C=1 and D=0
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Example
Determine the output expression for the
below circuit and simplify it using
DeMorgan’s Theorem
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Boolean
Functions
Boolean Expression
x y z F
Example: F = x + y’ z
0 0 0 0
Truth Table
0 0 1 1
All possible combinations
of input variables 0 1 0 0
Logic Circuit 0 1 1 0
1 0 0 1
1 0 1 1
x F 1 1 0 1
y
z 1 1 1 1
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Logic Simplification Using Boolean Algebra
Simplify the following Boolean functions to a minimum
number of literals.
x(x’ + y)
= xx’ + xy = 0 + xy = xy.
xy + x’z + yz
= xy + x’z + yz(x + x’)
= xy + x’z + xyz + x’yz
= xy(1 + z) + x’z(1 + y)
= xy + x’z.
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Logic Simplification using Boolean Algebra
Minimization (dual)
(X+Y)(X+Y)
XX + XY+YX+YY
0 + XY +YX +Y
Y(X +X) +Y
Y.(1)+Y
Y
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Absorption
X+XY=X
X·1+X·Y
X ·(I+Y)
X·1
X
Absorption (dual)
X · (X + Y) = X
(X + X) · (X+ Y)
XX + XY + XX + XY
XX + XX + XY + XY
XX + XY
X +XY
X(I+Y)
X
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Simplification
X+XY=X+Y
(X+X ). (X+ Y)
1 · (X+ Y)
X+Y
Simplification (dual)
X · (X + Y) = X · Y
(X · X) + (X · Y)
0+ X·Y
X·Y
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Complement of a
Function
DeMorgan’s Theorm F A B C
F A B C
F A B C
Duality & Literal Complement
F A B C
F A B C
F A B C
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved