Complete Lecture Chapter 2
Complete Lecture Chapter 2
Complete Lecture Chapter 2
1
Boolean Algebra (continued)
Postulate
– A basic assumption that is accepted without proof
– Accepted as true in order to provide a basis for logical
reasoning
Theorem
– A statement which has been proved or can be proved to be
true using logical (deductive) reasoning
– A proposition deducible from basic postulates 3
Two Valued Boolean Algebra
4
Two Valued Boolean Algebra
5
Postulates & Theorems of Boolean Algebra
▪ Postulate 2 - Identity a) X + 0 = X b) X . 1 = X
▪ Postulate 3 – Commutative a) X + Y = Y + X b) X . Y = Y.X
▪ Postulate 4- Distributive
a) X . (Y + Z) = (X .Y) + (X . Z)
b) X + (Y . Z) = (X+Y) . (X+Z)
▪ Postulate 5 – Associative
a) (x + y) + z = x + (y + z) = x + y + z
b) (xy)z = x(yz) = xyz
▪ Postulate 6 – Complement a) X + X’ = 1 b) X . X’ = 0
For every x, y in B:
▪ Closure with respect to +
x + y is in B
(1,0)
(1,0) (1,0)
▪ Closure with respect to .
x . y is in B
(1,0)
(1,0) (1,0)
8
Laws of Boolean Algebra (continued)
2. Identity laws:
▪ A set B is said to have an identity element with
respect to a binary operation {.} on B if there exists an
element designated by 1 in B with the property: 1 . x = x
Example: AND operation
x x
F=x+y F = x.y
y y
y y F = y.x
F=y+x
x x
10
Laws of Boolean Algebra (continued)
11
Laws of Boolean Algebra (continued)
x
F = xyz
y
z
z
F = xyz
y
x
12
Laws of Boolean Algebra (continued)
6. Complement
For each x in B, there exists an element x’ in B (the
complement of x) such that:
• x + x’ = 1
• x . x’ = 0
13
Laws of Boolean Algebra (continued)
14
Implementation of Boolean Functions
a
b
F
15
Implementation of Boolean Functions
F1 = x + y ' z
Boolean Function expresses logical relationship between binary variables
F1 is 1 if X=1 or if Y=0 and Z=1
Boolean Function can be represented by Truth Table (2n rows)
x F1
y 16
z
Implementation of Boolean Functions
F2
z
17
Implementation of Boolean Functions
▪ Try another implementation using a simplified F2:
F2 = x' y ' z + x ' yz + xy'
= x' z ( y '+ y ) + xy' Distributive Pos
= x ' z + xy'
x
y
F2
x
y
F3
z 19
20
Complement of a Function
▪Theorem 5 (X+Y)’ = X’Y’ (XY)’=X’+Y’
(A+B+C+D+…+F)’= A’B’C’D’…. F’
(ABCD…F)’ = A’+B’+C’+D’+… + F’
21
More on complements (DeMorgan)
Theorem 5, DeMorgan (X+Y)’ = X’Y’ and (XY)’=X’+Y’
22
23
Minterms and Maxterms
* Note that each maxterm is the complement of its corresponding minterm and vice versa.
24
Minterms and Maxterms (continued)
Each Minterm is obtained from an AND term. Variable primed if corresponding bit 0, vice versa
Each Maxterm is obtained from an OR term. Variable primed if corresponding bit 1, vice versa
x y z Minterms Maxterms
0 0 0 x’y’z’ mo x+y+z Mo
0 0 1 x’y’z m1 x+y+z’ M1
0 1 0 x’yz’ m2 x+y’+z M2
0 1 1 x’yz m3 x+y’+z’ M3
1 0 0 xy’z’ m4 x’+y+z M4
1 0 1 xy’z m5 x’+y+z’ M5
1 1 0 xyz’ m6 x’+y’+z M6
1 1 1 xyz m7 x’+y’+z’ M7
25
Sum of Minterms
▪ Given the truth table, express F1 in sum of minterms
x y z F1 F2
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 0
F1 ( x, y, z ) = (1,4,7) = m1 + m4 + m7
= ( x' y ' z ) + ( xy ' z ' ) + ( xyz )
▪ Find F2 26
Product of Maxterms
▪ Given the truth table, express F1 in Product of Maxterms
x y z F1 F2
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 0 1
1 0 0 1 0
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
F1 ( x, y, z ) = (0,2,3) = M 0 M 2 M 3
= ( x + y + z )( x + y '+ z )( x + y '+ z ' )
27
▪ Find F2
Sum of Min Terms
Express the Boolean function F = x + y ' z in a sum of
minterms.
AIM: Convert it to 3 variable AND Terms and take their SUM
x = x( y + y ' ) = xy + xy'
xy = xy( z + z ' ) = xyz + xyz'
xy' = xy' ( z + z ' ) = xy' z + xy' z '
y ' z = y ' z ( x + x' ) = xy' z + x' y ' z
Adding all terms and excluding recurring terms:
F ( x, y, z ) = x' y ' z + xy' z '+ xy' z + xyz'+ xyz
F ( x, y, z ) = m1 + m4 + m5 + m6 + m7 = (1,4,5,6,7)
28
Sum of Min Terms
Express the Boolean function F = x + y ' z in a sum of
29
Product of Max Terms
Express the Boolean function F = xy + x ' z in a Product of
Maxterms.
AIM: Convert it to 3 variable OR Terms and take their Product
Tip: Postulate 4b (Distributed)
F = xy + x' z = ( xy + x' )( xy + z )
( xy + x' ) = ( x + x' )( y + x' )
( xy + z ) = ( x + z )( y + z )
F = 1.( y + x' )( x + z )( y + z ) All Term missing one variable X+X’=1
SUM OF PRODUCT
F= y’ + xy+ x’yz’
Sum denotes OR of these terms
Draw the circuit (2 Level)
x’
y
z’
y’ F
x
y
34
PRODUCT of SUM
PRODUCT OF SUM
F= x(y’+z)(x’+y+z’)
Product denotes AND of these terms
Draw the circuit (2 Level)
x’
y
z’
x F
y’
z
35
Non Standard Boolean Function
A
B
C F
D
E
– Convert to Standard Form by distributive law
– F=AB+C(D+E) = AB+CD+CE
– Draw 2 Level Standard Sum of Product Circuit 36
Truth Table and Boolean Expression for
16 functions of two variables
• F0=0 Constant 0 or Null
• F1= x.y➔ AND (x and y)
• F2 = xy’➔ x but not y
• F3 = x
• F4 = x’y➔ y but not x
• F5 = y
• F6 = xy’ + x’y ➔Exclusive OR ( x or y but not both
• F7= x+y ➔OR (x or y)
• F8 = (x+y)’ ➔ NOR (Not OR)
• F9 = xy + x’y’➔ Equivalence (x equals y)
• F10 = y’ ➔Not y
• F11 = x+y’➔ If y then x
• F12 = x’ (Not x)
• F13 = x’ + y If x then y
• F14 = (xy)’ ➔ NAND
• F15 = 1 Binary constant 1
37
NOR Logic gate
38
NAND Logic gate
39
Exclusive OR Logic gate
40
Exclusive NOR Logic gate
41
More Digital Logic Gates
• AND F=xy
• OR F=x+y
• Inverter F=x’
• Buffer F=x
• NAND F=(xy)’
• NOR F=(x+y)’
• Exclusive OR- XOR
• Exclusive NOR
42
Multiple Input GATES
x
y
z 44