Week 4
Week 4
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
SOP Standard form
• In SOP standard form, every variable in the domain must appear in each term.
This form is useful for constructing truth tables or for implementing logic in PLDs.
• You can expand a nonstandard term to standard form by multiplying the term by a
term consisting of the sum of the missing variable and its complement.
• You can expand a nonstandard term to standard form by multiplying the term by a
term consisting of the sum of the missing variable and its complement.
X = A B (C + C) + A B C
=ABC+ABC+ABC
SOP Standard form
SOP Standard form
POS Standard form
• Standard POS is an POS expression which involves every variable or its
component.
• E.g F(A,B,C) = (A+B+C) .(A+B+C).( A+B+C).(A+B+C)
F(A,B) = A+B
• Every maxterm is represented by Mn and it is a product of all inputs.
• For writing a maxterm add a complement to inputs with values 1.
• In equation, we write all maxterms where output = 0.
A B C XOR Maxterm
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
POS Standard form
POS Standard form
In POS standard form, every variable in the domain must
appear in each sum term of the expression.
You can expand a nonstandard POS expression to standard form by
adding the product of the missing variable and its complement and
applying rule 12, which states that (A + B)(A + C) = A + BC.
The function is
1 for these rows
Minterms and Maxterms
(with three variables)
= M1 M3
= ( x1 + x2 + x3)( x1 + x2 + x3)
= ( x1 + x3 + x2)( x1 + x3 + x2)
= ( x1 + x3 )
Alternative Solution Using K-Maps
x1 x2 x3
x1 x2
0 0 0 m0 x3
00 01 11 10
0 0 1 m1
0 m0 m2 m6 m4
0 1 0 m2
0 1 1 m3 1 m1 m3 m7 m5
1 0 0 m4
1 0 1 m5 (b) Karnaugh map
1 1 0 m6
1 1 1 m7
For the case of 2 variables, we form a map consisting of 22=4 cells, as shown in Figure
B B B
0 1 0 1 0 1
A A A
A+ B A+ B 00 01
0 0 0 1 0 AB A B
1 A+B A+B 1 10 11 1 AB AB
2 3
Maxterm Minterm
Two-Variable Map
x2 x1
x1 0 1 x2 0 1
0 1 0 2
0 m0 m1
OR 0 m0 m2
2 3 1 3
1 m2 m3 1 m1 m3
1 1 0
Example
2-variable Karnaugh maps are trivial but can be used to introduce the
methods you need to learn. The map for a 2-input OR gate looks like this:
A A
0 1
Y B
B
0 1
A
1 1 1
A B Y
0 0 0
0 1 1 B
1 0 1
1 1 1
A+B
Three-Variable Map
• 3 variables Karnaugh map
Cells = 23 = 8
BC
A 00 01 11 10
0 1 3 2
0
A B C A B C A BC A BC
4 5 7 6
1 AB C AB C ABC ABC
Three-Variable Map
yz
x 00 01 11 10
0 1 3 2
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
yz
x 00 01 11 10
0 1 3 2
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
group of 2 terms
group of 4 terms
Simplification
• Enter minterms of the Boolean function into the map, then group terms
• Example: f(a,b,c) = a’c + abc + bc’
• Result: f(a,b,c) = a’c+ b
bc
a
1 1 1
1 1
1 1 1
1 1
More Examples
yz
X 00 01 11 10
• f1(x, y, z) = ∑ m(2,3,5,7) 0 1 1
1 1 1
◼ f1(x, y, z) = x’y + xz
• f2(x, y, z) = ∑ m (0,1,2,3,6)
1 1 1 1
◼f2(x, y, z) = x’+yz’
1
Alternative Solution Using K-Maps
x1 x2 x3 yz
Two different ways to specify the x
x 1 x002 01 11 10
same function f of three variables 0 0 0 m0 x3
0 00 1 01 3 11 210
0 0 1 m1 0 m0 m1 m3 m2
f(x1, x2, x3) = Σ (0, 2, 4, 5, 6, 7) 0 m0 m2 m6 m
0 1 0 m2 4 5 7 6 4
1 m4 m m m6
f(x1, x2, x3) = Π (1, 3) 0 1 1 m3 1 m1 m 53 m7 7 m5
1 0 0 m4
1 0 1 m5 (b) Karnaugh map
1 1 0 m6
1 1 1 m7
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
Exercise
• Design logic circuit from the follow timing diagram.
F
Example 3
Condition A
Condition B
Condition C
The output of the circuit can be expressed as
f = AB + AC + BC
The output of the circuit can be expressed as
f = AB + AC + BC
The output of the circuit can be expressed as
f = AB + AC + BC
Finally, we get