Logic Sec4
Logic Sec4
yz
x 00 01 11 10
0 1 3 2
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
0 1 Out = B
f(A,B)= ∑(1,3)
1 1
7
f(A, B, C) = ∑ m(0,3,6,7) f(A, B, C) = ∑ m(0,1,2,4,5,7)
BC 00 01 11 10 BC 00 01 11 10
A
A
0 1 1
0 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
AB + BC + A B C B + A C + AC
0 1 1
◼ f1(x, y, z) = ∑ m(2,3,5,7) 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
FOUR-VARIABLE MAPS
YZ
WX 00 01 11 10
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
◼ Top cells are adjacent to bottom cells. Left-edge cells are adjacent to right-edge cells.
CD CD
AB 00 01 11 10 AB 00 01 11 10
00 1 1 00 1 1
01 1 1 1 1 01 1 1 1
11 11 1 1 1
10 1 1 10 1 1 1
00 1 1 00 1 1
01 1 1 1 1 01 1 1 1
11 11 1 1 1
A B + A C + AB D
10 1 1 10 1 1 1
cd
ab
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1
1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
EXAMPLES
0 1 1
1 1 1 1
00 1 1 1
01 1 1 1
11 1 1 1
10 1 1
Solution :F = y' + w'z' + xz'
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
LAB 04:
Karnaugh Map Simplification
LAB Objectives
The goal of this lab is to simplify Boolean functions using the map method which
also known as the Karnaugh map or K-map. After completing this lab:
• Students should be able to understand a simple, straight forward
procedure for minimizing Boolean functions.
• They understand how the truth table for a logical expression is
transferred to a K-map grid.
LAB Content
1. Karnaugh map
▪ Karnaugh map is used for minimization or simplification Boolean
expressions to their minimum form.
▪ Karnaugh maps (K-maps) are graphical representations of
Boolean functions.
▪ One map cell corresponds to a row in the truth table.
▪ Also, one map cell corresponds to a minterm or a maxterm in the
Boolean expression
2. Two-Variable Map
1
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
3. Three-Variable Map
f(A,B)= ∑(1,3)
2
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
Out = B
f(A, B, C) = ∑ m(0,3,6,7)
out=
AB + BC + A B C
f(A, B, C) = ∑ m(0,1,2,4,5,7)
3
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
Out=
B + A C + AC
◼ f2(x, y, z) = ∑ m (0,1,2,3,6)
Out = x’+yz’
▪ 4-level Karnaugh map simplification
◼ Top cells are adjacent to bottom cells. Left-edge cells are adjacent
to right-edge cells.
Example:
f(A, B, C, D) = ∑ m(0,1,4,5, 6,7,9,11)
4
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
Out=
A B + A C + AB D
Example 2:
f(A, B, C, D) = ∑ m(0,2,4,5, 6,8,10,11,12,13,14)
5
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
Out=
D + AB C + BC
Out = c’+b’d’+a’bd
6
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
Homework 04:
Student Name
Student ID
Section
Dept.
Year
Date
……………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
7
Mansoura University
Faculty of Computers and Information
Information Technology Department
Course: Digital Logic Design
Code: [IT124P]
First Year
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………
………….………..………………………………………………………………………………………………………………………….
…………………………………………………………………………………………………………………………………………………
………….………..……………………………………………………………………………………………………………………………