Professional Documents
Culture Documents
b. c.
3
simultaneously for lamp to turn on? Will the lamp turn ON if switch A or switch B is closed? What will happen if both switches are open?
Binary Logic
Consists of binary (twovalue) variables and logical operations
Variables are A, B, C, x,
y, z etc.
AND Operator
represented by . sign
NOT Operator
represented by '
5
NOR
XNOR (Exclusive-NOR)
Exercise (1)
f = (a b c) ' g = (a + b + c) '
10
Exercise (2)
f = (a b) g = (a b)'
11
Boolean Algebra
Basic Theorems for Boolean Algebra Straight Simplification using these theorems Duality principle: One expression can be
reformulated if the binary operators and the identity elements are interchanged. Theorem # 1: (Idempotency Law)
(x + x) = x
(x . x) = x
14
x+1=1
(any variable + 1 = 1)
x.0=0
(any variable AND with 0 = 0 )
15
(x) = x
16
x + (y + z) = (x + y) + z x . (y . z) = (x . y) . z
17
(x + y) = x . y
(x . y) = x + y
Demorgans Laws are one of the most important set of Boolean Algebraic Laws.
18
20
x + xy = x (1 + y) + xy
As 1 + y = 1 and x.1 = x
= x + xy + xy = x + (x + x) y =x+y
21
22
1
2 3 4 5 6 7 8 9
10
11 12
24
Prove that (A + B) (A + C) = A + BC
(A + B) (A+C) = AA +AC + BA + BC = A + AC + BA + BC = A (1 + C) + BA + BC = A.1 +BA + BC = A + BA + BC = A (1 + B) + BC = A.1 + BC = A + BC Distributive law Rule #7 Distributive law Rule 2 Rule 4 Distributive law Rule 2
25
Operator Precedence
Operator Precedence for evaluating Boolean expressions is
Parentheses
NOT
AND OR
26
Boolean Functions
A Boolean function described by an algebraic expression
consists of binary variables, the constants 0 and 1, and the logic operation symbols. For a given value of the binary variables, the function can be equal to either 1 or 0. Example: F1 = x + y'z The function F1 is equal to 1 if x is equal to 1 or if both y' and z
27
are equal to 1. The complement operation dictates that when y' = 1, y = 0. Therefore, F1 = 1 if x = 1 or if y = 0 and z = 1. F1 is equal to 0 otherwise.
Another Example
Boolean function F2 = x' y' z + x' y z + x y' Simplifies to F2 = x' y' z + x' y z + x y' = x' z (y' + y) + x y' = x' z + x y'
29
Gate Implementation of F2
Gate implementation of function F2
31
32
Complement of a Function
Complement of a function F is F' Obtained from an interchange of 0s for 1s and 1s for 0s
in the value of F.
33
35
xyz
xyz xyz xyz
m1
m2 m3 m4
xyz
xyz xyz
36
m5
m6 m7
Example
x 0 0 y 0 0 z 0 1 f(x,y,z) 1 1 f(x,y,z) 0 0
0
0 1
1
1 0
0
1 0
1
1 0
0
0 1
1
1 1
38
0
1 1
1
0 1
0
1 0
1
0 1
Example
= xyz + xyz + xyz + xyz + xyz = m0 + m1 + m2 + m3 + m6 f(x,y,z) = (0,1,2,3,6) f
Product of Maxterms
A maxterm is a sum of literals, in which each input
variable appears exactly once.
x + y + z x + y + z
x + y + z x+ y + z x + y + z x + y + z
x + y + z
x + y + z x + y + z x + y + z
M1
M2 M3 M4
x + y + z
x + y + z x + y + z
42
M5
M6 M7
Product of Maxterms
Every function can be written as a unique product of
maxterms
43
Example
x 0 0 y 0 0 z 0 1 f(x,y,z) 1 1 f(x,y,z) 0 0
0
0 1
1
1 0
0
1 0
1
1 0
0
0 1
1
1 1
44
0
1 1
1
0 1
0
1 0
1
0 1
Example
f = (x + y + z)(x + y + z)(x + y + z) = M4 M5 M7 = (4,5,7) = (x + y + z)(x + y + z)(x + y + z) (x + y + z)(x + y + z) = M0 M1 M2 M3 M6 = (0,1,2,3,6)
xyz
46
m7
x + y + z
x + y + z
M3
M4
x + y + z
x + y + z x + y + z
M5
M6 M7
Conversion between Canonical Forms In general, just replace the minterms with maxterms,
using maxterm numbers that dont appear in the sum of minterms: f = m(0,1,2,3,6) = M(4,5,7)
50
51
52
53
54
55
56
Similarly
57
60
Positive logic
H1 L0
Negative logic
H0 L1
61
In negative logic: OR
62
Very Large Scale Integration (VLSI) Ultra Large Scale Integration (ULSI)
63
Standard Form
F = A + BC
Truth Table
Minterms or Maxterms Algebra
64