Professional Documents
Culture Documents
Rachaen Huq
Dept. of EEE, BRACU
Rachaen Huq 1
What exactly is it?
• What is a function?
• A variable which can hold values depending on
the values of other variables that it depends on.
• y= 2x + 3
• for different values of x, we have a
corresponding y.
• All possible values of y can be visualized using a
straight line in a graph paper.
Rachaen Huq 2
So how a Boolean function is
similar/different?
EXPRESSION (Shortest 1 0 0 1
possible) of F to implement 1 0 1 1
it. 1 1 0 0
•We need something like 1 1 1 0
to shorten. 1 0 1 . 5 1
•We will learn a quicker 1 1 0 . 6 0
method later on. 1 1 1 abc 7 0
to shorten. 1 0 1 . 5 1
•We will learn a quicker 1 1 0 . 6 0
method later on. 1 1 1 a’ +b’ + c’ 7 0
Rachaen Huq 9
Canonical Form: Sum of Minterms
F1 = xyz' = (m6)
F2 = x'y'z+xy'z'+xy'z+xyz'+xyz = (m1,m4,m5,m6,m7)
F3 = x'y'z+x'yz+xy'z'
+xy'z x y z F1 F2 F3
= (m1,m3,m4,m5) 0 0 0 0 0 0
0 0 1 0 1 1
0 1 0 0 0 0
0 1 1 0 0 1
1 0 0 0 1 1
1 0 1 0 1 1
1 1 0 1 1 0
1 1 1 0 1 0
Canonical Form: Product of Maxterms
E.g.: F2 = (M0,M2,M3) = x y z F1 F2 F3
(x+y+z)(x+y'+z)(x+y'+z')
0 0 0 0 0 0
0 0 1 0 1 1
F3 = (M0,M2,M6,M7) 0 1 0 0 0 0
= 0 1 1 0 0 1
(x+y+z)(x+y'+z)(x'+y'+z)(x'+y'+z') 1 0 0 0 1 1
1 0 1 0 1 1
1 1 0 1 1 0
1 1 1 0 1 0
Now… can you guess the inter-relationship
between the two canonical forms?
• In terms of expression only?
Rachaen Huq 12
• Eg: F2(A,B,C) = M(0,3,5,6) = m(1,2,4,7)
• Eg: F1(A,B,C) = m(3,4,5,6,7) = M(0,1,2)
Rachaen Huq 13
At this moment you should be able to fill the
truth table if the canonical forms are given….
• Lets try one.
• Express it is SOP
• In POS
• Which looks shorter
• Calculate number of Gates required.
Rachaen Huq 14
Enough with the drama! Show us the direct
method.
• Its called the Karnaugh Map.
• Maurice Karnaugh (born October 4, 1924,
in New York City) is an American physicist
• Thanks to him
Rachaen Huq 15
Slightly off topic!
• Can you make an inverter using an XOR gate?
• Can you do the same for a follower?
• Can you make an inverter using a NAND gate ?
Rachaen Huq 16