Unit 3.3
Unit 3.3
Unit 3.3
Boolean functions from truth tables
- Boolean function → truth table
- How can I do it?. Evaluate the function for each
combination of the inputs
- Truth tables → Boolean function.
- A Boolean function can be done as:
- Sum-of-products (SOP). Example:
- Product-of-sums (POS). Example:
product terms
Product-of-sums (POS)
Rule: Look for 0’s in the truth table.
Note that F(A,B,C,D) = 0 for the following combinations:
0010(2),0100(4),0111(7),1010(10),1101(13)
F=(A+B+C+D)(A+B+C+D)(A+B+C+D)(A+B+C+D)(A+B+C+D)
F is obtained as a POS
sum terms
Minimization of logic functions
F 00 01 11 10
Variable MSB
0 1 3 2
0 1 1 1 0
A
4 5 7 6
1 0 1 1 0
Mirror
Karnaugh map method
• Numbering. 5 K-maps
BC BC BC BC
00 01 11 10
F = C + AB 0 1 3 2
A 0 1 1 1 0
4 5 7 6
A 1 0 1 1 0
Grouping 1s in K-maps
Example 2:
• 4K-map Given X, calculate its simplified expression
X = ABD + ABC + CD
Grouping 1s in K-maps
Example 3:
Given Z , calculate its simplified expression
00 01 11 10 F C
F
00 1 1 1 1 1 1 1 1
01 1 1 1 1 1 1
AB B
11 1 1 1 1 1 1
A
10 1 1 1 1
D
Step2: Group 1’s in the K-map
CD
F 00 01 11 10
00 1 1 1 1
AB
01 1 1 1
11 1 1 1
10 1 1
Z = C + AB + BD
Grouping 1s in K-maps
• 5K-map
1 cell → product of 5 literals
2 cells → product of 4 literals
4 cells → product of 3 literals
8 cells → product of 2 literals
16 cells → 1 literal
Grouping 1s in K-maps
Example 1:
Given a 5K-map, calculate the simplified expression of f
f = a + c·d·e + b·c·d
Grouping 1s in K-maps
Example 2:
Function f takes value 1 in positions
1,4,6,7,9,12,14,15,22,23,30,31,
find the simplified expression of f
F C
1 1 1 1 f = ACDE + ACE + CD
1 1 1 1 B?
B
1 1
A
1 1
D
E E
Grouping 1s in K-maps
Example 3:
Given f = ABC + ABC + CDE + BCDE + ABE
calculate the simplified expression of f
F C
1 1 1 1 1 1 1 1
1 1 B
1 1
A
1 1 1 1
D
E E
Grouping 1s in K-maps
Example 3:
Given f = ABC + ABC + CDE + BCDE + ABE
calculate the simplified expression of f
F C
1 1 1 1 1 1 1 1 f = AB + DE + BE
1 1
B
1 1
A
1 1 1 1
D
E E
Grouping 0s in K-maps
• Goal: Take groups of 2n adjacent cells which contain 0s, n being
as highest as possible
• Each group of 0s is a sum of literals (sum term)
• Systematic grouping algorithm. The same that in the 1s case
1. Get cells that cannot form groups of 2 cells
2. Get cells that can form groups of 2 cells, but not of 4 cells
3. Get cells that can form groups of 4cells, but not of 8 cells
4. Get cells that can form groups of 8 cells, but not of 16 cells
5. …
Grouping 0s in K-maps
yz
x 00 01 11 10
0 0 1 1 0
F = ( x + y )( x + z )
1 0 0 1 1
Grouping 0s in K-maps
Example 2:
Given Z , calculate its simplified expression as a POS
F C
1 1 1 1
1 1 1
B
1 1 1
A
1 1
D
Step2: Group 0’s in the K-map
F C
1 1 1 1
1 1 0 1
B
1 1 0 1
A
1 1 0 0
D
Z = ( B + C + D)( A + C + D)( A + B + C )
Grouping 0s in K-maps
Example 3:
Given the following K-map calculate the simplified expression of F as POS
F C
1 1 1 1 1 1 1 1
0 0 0 1 1 0 0 0 B
0 0 0 1 1 0 0 0
A
1 0 0 1 1 0 0 1
D
E E
f = ( B + E )( B + D)( A + E )