Professional Documents
Culture Documents
Boolean
Boolean
x F1 F2 F3 F4
0 0 0 1 1
1 0 1 0 1
Boolean Functions and Expressions
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
When two Boolean functions are same ?
0 0 1 0 0
0 1 0 1 1
0 1 1 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 1 1
1 1 1 0 0
Boolean Functions and Expressions
x y F(x, y)
0 0 0
0 1 1
1 0 0
1 1 0
0 0 0 1 F(x, y, z) = (xz +
0 0 1 1 y)′
Possible solution II:
0 1 0 0
1 0 1 0 F(x, y, z)
1 1 0 0
1 1 1 0
= x ′ y ′ z ′+ x ′ y ′ z+ x y ′
z′
Boolean Functions and Expressions
There is a simple method for deriving a Boolean expression for
a function that is defined by a table. This method is based on
minterms & maxterms
Definition: A literal is a Boolean variable or its complement.
A minterm of the Boolean variables x1, x2, …, xn is a Boolean
product y1y2…yn, where yi = xi or yi = (xi) ′
Hence, a minterm is a product of n literals, with one literal for
each variable.
a maxterm is sum of of n distinct literals, with one literal for
each variable
Summary of Minterms and Maxterms
There are 2n minterms and 2n maxterms for Boolean
functions with n variables.Any Boolean function can
be expressed as a logical sum of minterms and as
a logical product of maxterms
Canonical Forms
0.(xy′z)+0.
(xyz′)+0.(xyz)
Comment : Disjunctive normal form is nothing more
than the sum of those three minterms which
correspond to the combination of values of xyz for
which f takes the value 1
F(x, y, z) =(x′)(y′)(z′) +(x′)(y′)z +x(y′)(z′)
x y z F(x, y, z)
0 0 0 1
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 0
Question2 : For F(x,y,z) find conjunctive normal form
0 1 0 0 x = y = z = 1 Therefore
0 1 1 0
Conjunctive normal form
1 0 0 1
is
1 0 1 0
1 1 0 0
1 1 1 0
x y z F(x, y, z) F(x,y,z)=(1+x+y+z)(1+x+y+z′)
0 0 0 1
0 0 1 1 (0+x + y′+z)(0+x+y′ +z′) (1+x′ +y +
0 1 0 0
z)
0 1 1 0
1 0 0 1
.(0+x′+y+z′)(0+x′+y′+z)
1 0 1 0
1 1 0 0 (0+x′+y′+z′)
1 1 1 0
Solution :
(i) x ⊕y = xy′ +x′y
Solution :
(ii) (x ⊕y)′ ⊕(x′ ⊕ z) = (xy′ +x′y)′ ⊕(x′z′+xz)
(xy′ +x′y)′ ⊕(x′z′+xz)
x y z (xy′ +x′y)′ x′z′+xz f(x,y,z)
0 0 0 1 1 0
0 0 1 1 0 1
0 1 0 0 1 1
0 1 1 0 0 0
1 0 0 0 0 0
1 0 1 0 1 1
1 1 0 1 0 1
1 1 1 1 1 0
= xy′z + xy′z′+xyz+xy′z+x′yz+x′y′z
= xy′z + xy′z′+xyz+x′yz+x′y′z
KARNAUGH MAP
Simplifying Expression
Find blocks (rectangles) of 1s in K-map
F= x’y’ + xy’ = y’
y
0 1
x
0
1 0
From truth table From K-map
1 1 0
karnaugh Maps
y
X Y F 0 1
x
0 0 0
0
0 0
0 1 0
1 0 1 1 1 1
1 1 1
Simplifying expression
Find blocks (rectangles) of 1s in k-map
0
0 0
From truth table From K-map
1 1 1
Following are the rules for forming basic
rectangles our aim is to include maximum
number of 1's in a basic rectangle and to find
minimum number of such rectangles.
A rectangle must contain 1, 2, 4, 8, 16, …. cells, i.e.
in the power of 2.
Cells which are in a rectangle , should be adjacent
cells, i.e. horizontal or vertical, not diagonal.
Rectangles should not include any cell containing zero
0
1 1 F= x′y’ + x′y +xy = x′+y
1 0 1
From truth table From K-map
3-Variable karnaughmap
karnaugh map with 3 variables
yz
00 01 11 10
x
= 1 if x’y′z’ is = 1 if x’y′z = 1 if x’yzis = 1 if x’yz′
0 a minterm is a minterm a minterm is a minterm
in f in f in f in f
yz
x 00 01 11 10
0 0 0 0 1
1 1 1 0 0
3-Variable K- map
Example : Draw Karnaugh map and simplify expression f = x’yz’ + xy’z’ +xy’z
yz
x 00 01 11 10
0 1
1 1 1
3-Variable k-map
yz
x 00 01 11 10
x y z f
0 1 1 1 0
0 0 0 1
1 1 1 1 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
3-Variable k-map
yz
x 00 01 11 10
x y z f
0 1 1 1 0
0 0 0 1
1 1 1 1 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
F = Y’ + Z how ?
1 0 1 1
1 1 0 0
1 1 1 1
Four-variable k- map
Simplifying 4-variable k-map
yz
00 01 11 10
wx
1 1 0 0
00
01
1 1 0 0
11 1 1 0 0
10 1 1 0 0
4-variable K-map
yz
00 01 11 10
wx
1 1 0 0
00
01
1 1 0 0
11 1 1 0 0
10 1 1 0 0
F(x,y,z)=y′
Simplifying 4-variable k-map
yz
00 01 11 10
wx
0 1 1 0
00
01
1 1 1 0
11 1 0 0 0
10 0 0 0 1
yz
x′y′w
=x′y′w+yz+xy′zw′
Example
yz
00 01 11 10
wx
0 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 0 0 1 1
yz
00 01 11 10
wx
0 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 0 0 1 1
Minimum number of maximal basic rectangles that cover all 1
yz
00 01 11 10
wx
0 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 0 0 1 1
F(x,y,z)= w′z+yw+y′z′x
4-variable k-map simplify
yz
00 01 11 10
wx
1 1 1 1
00
01
0 1 0 0
11 0 1 1 1
10 1 1 1 1
yz
00 01 11 10
wx
1 1 1 1
00
01
0 1 0 0
11 0 1 1 1
10 1 1 1 1
yz
00 01 11 10
wx
1 1 1 1
00
01
0 1 0 0
11 0 1 1 1
10 1 1 1 1
x ′+y′z′+yw how ?
yz
00 01 11 10
wx
1 1 1 1
00
01
0 1 0 0
11 0 1 1 1
10 1 1 1 1
First term is for x′ is for 1st maximal basic rectangle
y′z′ is for maximal basic rectangle in 2nd column yw is for 3rd maximal basic
rectangle
yz
00 01 11 10
wx
1 1 1 1
00
01
0 1 0 0
11 0 1 1 1
10 1 1 1 1
0 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 1 0 1 1
4-variable k-map simplify
yz
00 01 11 10
wx
1 0 0 1
00
01
0 1 0 0
11 1 1 1 1
10 1 1 1 1
4-variable k-map
yz
00 01 11 10
wx
1 0 0 1
00
01
0 1 0 0
11 1 1 1 1
10 1 1 1 1
0 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 1 0 1 1
4-variable k-map simplify
yz
00 01 11 10
wx
1 1 1 1
00
01
1 1 0 0
11 0 1 1 1
10 1 1 1 1
Simplify
yz
00 01 11 10
wx
1 1 1 0
00
01
1 1 1 0
11 1 1 1 1
10 0 0 1 1
Simplify
yz
00 01 11 10
wx
1 1 1 0
00
01
1 1 1 0
11 1 0 1 1
10 1 0 1 1
Simplify
yz
00 01 11 10
wx
1 1 1 0
00
01
1 1 1 1
11 1 0 1 1
10 1 0 1 1