Professional Documents
Culture Documents
Boolean Algebra and Logic Minimizaion - Unit 1 Part2
Boolean Algebra and Logic Minimizaion - Unit 1 Part2
Boolean algebra
Boolean function and minimization
Representation of Truth table
SOP and POS form
Simplification of Logic functions
Minimization of SOP and POS forms
Reduction Techniques: K-Map, Quine-Mc-Clusky
Boolean Algebra
Postulate 1:
(a) A = 0, if and only if, A is not equal to 1
(b) A = 1, if and only if, A is not equal to 0
Postulate 2:
(c) x 0 = x
(d) x 1 = x
Postulate 6:
Department of Computer Engineering,PCCOE,Pune
Slide 5/78
(a) x x
The Principle of Duality
For example, in the table below, the second row is obtained from
the first row and vice versa simply by interchanging ‘+’ with ‘.’
and ‘0’ with ‘1’
2 x+1=1 x 0 = 0
3 x + x y = x x x + y = x Absorption Law
4 x =x Involution Law
5 x x +y=xy x +x y = x + y
6 x y = xy xy = x y+
De Morgan’s
Law
Theorem:
x+x·y=x
Proof:
L.H.S.
= x x y
= x 1 x y by postulate 2(b)
= x (1 y) by postulate
= x (y 1) 5(a) by
= x1 postulate 3(a)
= x by theorem 2(a)
= R.H.S. by postulate 2(b)
x+x·y=x
=
x y x y x x y
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
x+x=x
Proof:
L.H.S.
=xx
= (x x) 1 by postulate 2(b)
= (x x) (x + X) by postulate 6(a)
= x x X by postulate 5(b)
=x0 by postulate 6(b)
=x by postulate
= R.H.S. 2(a)
(
C
Department of Computer Engineering,PCCOE,Pune o
n
t
i
n
Proving a Theorem by the
Principle of Duality (Example)
(Continued from previous slide..)
Dual Theorem:
x x = x
Proof:
L.H.S.
=xx
= x x 0 by postulate 2(a) Notice that each step of
the proof of the dual
= x x x X by postulate
theorem is derived from
6(b) by the proof of its
= x (x + X)
postulate 5(a) corresponding pair in
= x1 by postulate 6(a) the original theorem
= x by postulate
= R.H.S. 2(b)
Binary variables
An algebraic expression, or
A truth table
W = X + Y ·Z
Variable W is a function of X, Y, and Z, can also
be written as W = f (X, Y, Z)
The RHS of the equation is called an expression
X Y Z W
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
F1 = x y z + x y z + x y
F2 = x y + x z
x y z F1 F2
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 1 1
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 0 0
Department of Computer
Engineering,PCCOE,Pune
Minterms and Maxterms for three Variables
0 0 0
x y z m 0
xy z M 0
0 0 1
x y z m 1
xy z M 1
0 1 0 m
x y z 2
xy z M 2
0 1 1 m
x y z 3 xy z M 3
1 0 0 m
x y z 4 xy z M 4
1 0 1
x y z m 5
xy z M 5
1 1 0
x y z m 6 xyz M 6
1 1 1
x y z m 7 xy z M 7
Note that each minterm is the complement of its corresponding maxterm and vice-versa
x x+ y
x+ yz xy+z
xy+ xy+
xy xyz
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
x y z, x y z, and x y z
Taking the OR of these minterms, we get
F1 =xy z+ x y z+ x y z=m1+m4
m 7
F1 xy z=1,
4,7
x
x+ yx+ yx+y
x+y
x + yx+ y+z
x+ y
z
x+ yx+y
Department of Computer Engineering,PCCOE,Pune
Steps to Express a Boolean Function
in its Product-of-Sums Form
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
80 Department of Computer
Engineering,PCCOE,Pune
Expressing a Function in its
Product-of-Sums Form
(Continued from previous slide..)
F1 x,y,z = Π0,2,3,5,6
Conversion Between Canonical Forms (Sum-of-
Products and Product-of-Sums)
Example:
F x,y,z = Π 0,2,4,5 =
=
Σ
Σ 1,3,6,7 F x,y,z 1,4,7
= Σ 0,2,3,5,6
Department of Computer Engineering,PCCOE,Pune
Logic Gates
Department of Computer
Engineering,PCCOE,Pune
AND Gate
Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
AND Gate (Block Diagram Symbol
and Truth Table)
A
C= AB
B
Inputs Output
A B C=AB
0 0 0
0 1 0
1 0 0
1 1 1
Department of Computer
Engineering,PCCOE,Pune
OR Gate
Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A
C=A+B
B
Inputs Output
A B C=A +
B
0 0 0
0 1 1
1 0 1
1 1 1
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NOT Gate
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NOT Gate (Block Diagram Symbol
and Truth Table)
A A
Input Output
A A
0 1
1 0
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NAND Gate
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NAND Gate (Block Diagram Symbol
and Truth Table)
A
B C= A B= AB= A
+B
Inputs Output
A B C = A +B
0 0 1
0 1 1
1 0 1
1 1 0
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NOR Gate
Complemented OR gate
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
NOR Gate (Block Diagram Symbol
and Truth Table)
A
B C= A B= A B= A
B
Inputs Output
A B C=AB
0 0 1
0 1 0
1 0 0
1 1 0
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Logic Circuits
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A
A
NOT
D= AB +
B B+C AND
C
C OR
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Finding Boolean Expression
of a Logic Circuit (Example 2)
OR
A AB
B
C= A +BAB
A B AB AND
AND NOT
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Boolean Expression = A B +C
AND
A A B
A B
B
C +C
OR
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Boolean Expression = A B + C D + E
F
AND NOT
A A B A B
B AND AND
C C D
D A B + C D + E
F
AND
E E F E F
NOT
F
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
AA=A+A =A
A
(a) NOT gate implementation.
A A B A B A B
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
AA=A
A
A B A + B A
B B = B B
B
(c) OR gate implementation.
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Boolean Expression =
A B + C A + B D
A AB
A B + C A + B D
B
B BD
A
D +BD
A C A +BD
C
(a) Step 1: AND/OR implementation
(Continued on next slide)
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
AND
OR
A AB
1
5
B
AND OR
B BD
2
A+BD
3
D
A B +
A
C A+BD
AND
4
C
C A+BD
(b) Step 2: Substituting equivalent NAND functions
(Continued on next slide)
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A
1
B
5 A B + C A
B
2
+BD
D 3
A
4
C
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A A=AA=A
A
A A B A BAB
B
(b) OR gate implementation.
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A AA=A
A + B A B A
B
B
BB=B
(c) AND gate implementation.
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Boolean
= Expression A B + C A +BD
A AB
B
A B + C A
B BD
A +BD
D +BD
A C A +BD
C (a) Step 1: AND/OR implementation.
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
AN
A D
A
1
B
B OR
5 6 A B + C A
AN
B D
BD +BD
2
D OR
AN
3 D
A
4
C C A +BD
A +BD
(b) Step 2: Substituting equivalent NOR functions.
(Continued on next slide)
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A 1
B 5 6 A B + C A
B 2
+BD
D 3
A 4
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Exclusive-OR Function
AB=AB+A
B
A C = A B = A B+ A
B
B
A
C = A B = A B+ A
B
B
Also, A B C = A B C = A B
C (Continued on next slide)
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Inputs Output
A B C = A B
0 0 0
0 1 1
1 0 1
1 1 0
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A B = A B+ A B
A C=A B= A B+ A
B B
Also, (A B) =A (B C) = A B C
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Inputs Output
A B C=A B
0 0 1
0 1 0
1 0 0
1 1 1
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Designing a Combinational Circuit
Example 1 – Half-Adder Design
Inputs Outputs
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
S = AB+
Boolean functions for the two outputs.
AB C = AB
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A A B
A
S = AB+
AB
B
B A B
A
C = AB
B
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Designing a Combinational Circuit
Example 2 – Full-Adder Design
Inputs Outputs
A B D C S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Truth table for a full adder
(Continued on next slide)
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A A B D
B
D
A A B D
B
D
S
A
B A B D
D
A A B D
DB
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
A AB
A AD C
B BD
(b)
D Logic circuit diagram for carry
80 Department of Computer
Engineering,PCCOE,Pune
Computer Fundamentals: Pradeep K. Sinha & Priti Sinha
Key Words/Phrases
Absorption law Equivalence function NOT gate
AND gate Exclusive-OR function Operator precedence
Associative law Exhaustive enumeration OR gate
Boolean algebra method Parallel Binary Adder
Boolean expression Half-adder Perfect induction
Boolean functions Idempotent law method
Boolean identities Involution law Postulates of Boolean
Canonical forms for Literal algebra
Boolean functions Logic circuits Principle of duality
Combination logic Logic gates Product-of-Sums
circuits Logical addition expression
Cumulative law Logical multiplication Standard forms
Complement of a Maxterms Sum-of Products
function Minimization of Boolean expression
Complementatio functions Truth table
n Minterms Universal NAND
De Morgan’s law NAND gate gate
Distributive law Universal NOR
Dual identities gate
80 Department of Computer
Engineering,PCCOE,Pune