Unit2 STLD
Unit2 STLD
Boolean Algebra
Boolean Algebra
P.2) Commutativity
The + and . Operators are commutative
a + b = b+ a
ab = ba
P.3) Distributivity :-
a + bc = (a+b)(a+c)
a( b+c) = ab+ ac
P.4)Identity Elements
There exists an identity element (denoted by 0) for the
+ operation and another (denoted by 1) for the .
Operation within B such that
a+ 0 = a
a .1=a
P.5) Complement
Each member of B has a complement within B such
that if a’ is the complement of a , then
a + a’ = 1
aa‘ = 0
Fundamental Theorms on Boolean Algebra
1) Closure of Identity Elements
For all a€B, a+1 = 1 and a.0=0
2) Equality Theorem
For all a,b,c € B ,
if a+b = a+c and ab= ac, then b = c
Complementary Theorem
Solution: First, convert the function into OR terms by using the distributive law:
F = xy + x’z = (xy + x’)(xy + z)
= (x + x’)(y + x’)(x + z)(y + z)
= (x’+ y)(x + z)(y + z)
The function has three variables: x, y, and z. Each OR term is missing one
variable; therefore,
x’+ y = x’ + y + zz’
= (x’ + y + z)(x’ + y + z’)
x + z = x + z + yy’
= (x + y + z)(x + y’ + z)
y + z = y + z + xx’
= (x + y + z)(x’ + y + z)
Combining all the terms and removing those which appear more than once, we
finally obtain F = (x + y + z)(x + y’ + z)(x’ + y + z)(x’ + y + z)
F= M0M2M4M5 A convenient way to express this function is as follows:
F(x, y, z) = πM(0, 2, 4, 5) The product symbol, π, denotes the ANDing of
maxterms; the numbers are the indices of the maxterms of the function.
Express the following function in a canonical form
F = ab’+bc’+ac
F= a’+bc
AOI logic
NAND logic.
4 Variable K Map example:
Don’t care terms
NotImplementable on Computer
Subjective Interpretation, Different Coverings
Q-M (Tabular Minimization) Solves These Problems
Procedure
F (w,x,y,z)= (0,1,2,3,5,7,8,10,14,15)
Write the binary equivalent of all the minterms.
Group all the minterms by the no of 1s they contain.
Step 1
0 0000
1 0001
2 0010
8 1000
3 0011
5 0101
10 1010
7 0111
14 1110
15 1111
Combine the members of new groups to create more
new groups.
Combined group must differ by one bit and must
have – in the same position.
Combine as much as possible.
Select prime implicants to cover all the ones.
Finding Prime Implicants
Step 1 Step 2 Step 3
0 0000 (0,1) 000- (0,1,2,3) 00--
1 0001 (0,2) 00-0 (0,2,1,3) 00--
2 0010 (0,8) -000
(1,3) 00-1 (0,2,8,10) -0-0
8 1000
3 0011 (1,5) 0-01 (0,8,2,10) -0-0
(2,3) 001- (1,3,5,7) 0--1
5 0101
10 1010 (2,10) -010
(8,10) 10-0 (1,5,3,7) 0--1
7 0111
14 1110 (3,7) 0-11 6 Prime Implicants
15 1111 (5,7) 01-1
1-10 00--
(10,14) 1-10
-111 -0-0
(7,15) -111
111- 0--1
(14,15) 111-
Finding Prime Implicants
Step 1 Step 2 Step 3
0 0000 (0,1) 000- (0,1,2,3) 00--
1 0001 (0,2) 00-0 (0,2,1,3) 00--
2 0010 (0,8) -000
(1,3) 00-1 (0,2,8,10) -0-0
8 1000
3 0011 (1,5) 0-01 (0,8,2,10) -0-0
(2,3) 001- (1,3,5,7) 0--1
5 0101
10 1010 (2,10) -010
(8,10) 10-0 (1,5,3,7) 0--1
7 0111
14 1110 (3,7) 0-11 6 Prime Implicants
15 1111 (5,7) 01-1
1-10 00--
(10,14) 1-10
-111 -0-0
(7,15) -111
111- 0--1
(14,15) 111-
Find Essential Prime Implicants –
Prime Cube table
Prime Covered Minterms
Implicant minterms 0 1 2 3 5 7 8 10 14 15
1-10 10,14 X X
-111 7,15 X X
111- 14,15 X X
00-- 0,1,2,3 X X X X
-0-0 0,2,8,10 X X X X
0--1 1,3,5,7 X X X X