



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




03 Handout 1 _Property of STI_*
Karnaugh Map Definition
What is a Karnaugh Map? A Karnaugh Map , also known as the Veitch diagram or the K-map, was first proposed by Edward Veitch and modified by Maurice Karnaugh (a telecommunications engineer at Bell Labs) while designing digital logic-based telephone switching circuits in 1953. It is an arrangement of boxes or squares called cells, where each cell corresponds to one line of a truth table (shown below). Also, it represents a different combination of the variables (either in minterm or maxterm) of a Boolean function.
Inputs Output A B F 0 0 0 1 1 0 1 1
Inputs Output A B F 0 0 0 1 1 0 1 1
Inputs Output A B F 0 0 0 1 1 0 1 1
Inputs Output A B F 0 0 0 1 1 0 1 1
The binary value (either in 0s or 1s) for each box is the binary value of the output terms in the corresponding table row, while the input variables are the cells’ coordinates.
Below is an example of a truth table of the X-OR gate (taken from Logic Gates discussion) and its corresponding Karnaugh map.
Row Number A B 𝑭𝑭 = 𝑨𝑨 ⊕ 𝑩𝑩 0 0 0 0 1 0 1 1 2 1 0 1 3 1 1 0
X - coordinate B 𝐵𝐵�^ B A 0 1
Y - coordinate
Row # 0 0
Row # 1 1
A 1
Row # 2 1
Row # 3 0
The values inside the squares are copied from the output column of the truth table. Therefore, there is one (1) square in the map for every row in the truth table. Around the edge of the Karnaugh map are the values of the two (2) input variables. B is along the top, and A is placed in the left side of the K-map.
In contrast to a truth table, in which the input values typically follow a standard binary sequence (00, 01, 10, 11), the Karnaugh map's input values are ordered as 00, 01, 11, and 10 such that one bit changes from one cell to the next. This ordering is known as a Gray code.
Note: Gray code will be discussed further on the Code Conversion topic.
The two (2) adjacent cells in the map are arranged in a way that one variable changes every time it crosses the horizontal or vertical cell boundaries so that any adjacent cells that are grouped together can eliminate any terms that form the Postulate 6a, which is 𝐴𝐴 • 𝐴𝐴̅ = 0.
Binary Values
Function Values
Literal
03 Handout 1 _Property of STI_*
With regards to the grouping together of adjacent cells containing both ones (for SOP) or zeros (for POS), the Karnaugh map uses the following rules for the simplification of expressions:
B 𝐵𝐵�^ B A 0 1 𝐴𝐴̅^0^1 A 1 1 1
Group of 2
Group of 3
BC (^) 𝐵𝐵�^ C A 0 1 𝐴𝐴̅ 0^1 A 1 1 1
Group of 4
Group of 5
Groups not overlapping
Groups overlapping
03 Handout 1 _Property of STI_*
Three-Variable Map. In the case of 3 variables, we form a map consisting of 2^3 = 8 cells (2-by-4 or 4-by-2 matrix), as shown below. 2-by-4 matrix (Minterm (m))
2 - by-4 matrix (Minterm (m)) BC 𝐵𝐵�𝐶𝐶̅ 𝐵𝐵�𝐶𝐶 BC^ 𝐵𝐵𝐶𝐶̅ A 00 01 11 10
𝐴𝐴̅^0
Row # 0 000
Row # 1 001
Row # 3 011
Row # 2 010
A 1
Row # 4 100
Row # 5 101
Row # 7 111
Row # 6 110
Row # 0 𝐴𝐴̅𝐵𝐵�𝐶𝐶̅
Row # 1 𝐴𝐴̅𝐵𝐵�𝐶𝐶
Row # 3 𝐴𝐴̅𝐵𝐵𝐶𝐶
Row # 2 𝐴𝐴̅𝐵𝐵𝐶𝐶̅ A 1 Row # 4 𝐴𝐴𝐵𝐵�𝐶𝐶̅
Row # 5 𝐴𝐴𝐵𝐵�𝐶𝐶
Row # 7 𝐴𝐴𝐵𝐵𝐶𝐶
Row # 6 𝐴𝐴𝐵𝐵𝐶𝐶̅
Note: The same table is applied for maxterm (M), except that the literals are in product of sum (POS) form – all literals in “1’s” are complemented while all literals in “0’s” are not complemented.
Simplification rules for three-variable K-map
Rules Example
One (1) square – 3 literals
Sample Problem 1: Identify the function which generates the K- map shown: BC 𝐵𝐵�𝐶𝐶̅ 𝐵𝐵�𝐶𝐶 BC 𝐵𝐵𝐶𝐶̅ A 00 01 11 10 𝐴𝐴̅ 0 1 A 1 𝑭𝑭 = 𝑨𝑨�𝑩𝑩𝑩𝑩
Two (2) adjacent squares – 2 literals
Sample Problem 2: Simplify the Boolean function 𝐹𝐹 = 𝐴𝐴𝐵𝐵’𝐶𝐶 + 𝐴𝐴𝐵𝐵𝐶𝐶 + 𝐴𝐴𝐵𝐵𝐶𝐶’ Solution: For 𝑭𝑭 = 𝑨𝑨𝑩𝑩�𝑩𝑩 + 𝑨𝑨𝑩𝑩𝑩𝑩 + 𝑨𝑨𝑩𝑩𝑩𝑩� BC (^) 𝐵𝐵�𝐶𝐶̅ 𝐵𝐵�𝐶𝐶 BC (^) 𝐵𝐵𝐶𝐶̅ A 00 01 11 10 𝐴𝐴̅^0 A 1 1 1 1
Note: 2 literals per array Simplifying further: Postulate 5a (Distributive): (𝐴𝐴 • 𝐵𝐵) + (𝐴𝐴 • 𝐶𝐶) = 𝐴𝐴 • (𝐵𝐵 + 𝐶𝐶) = 𝑭𝑭 = 𝑨𝑨(𝑩𝑩 + 𝑩𝑩)
Four (4) adjacent squares – 1 literal
Sample Problem 3: Simplify the Boolean function 𝐹𝐹 = (𝐴𝐴 + 𝐵𝐵 + 𝐶𝐶̅ )(𝐴𝐴̅ + 𝐵𝐵 + 𝐶𝐶)(𝐴𝐴̅ + 𝐵𝐵 + 𝐶𝐶̅)
03 Handout 1 _Property of STI_*
Solution: For 𝑭𝑭 = (𝑨𝑨 + 𝑩𝑩 + 𝑩𝑩�)(𝑨𝑨�^ + 𝑩𝑩 + 𝑩𝑩�)(𝑨𝑨 + 𝑩𝑩�^ + 𝑩𝑩’)(𝑨𝑨�^ + 𝑩𝑩�^ + 𝑩𝑩’) BC (^) 𝐵𝐵 + 𝐶𝐶 𝐵𝐵 + 𝐶𝐶̅ 𝐵𝐵�^ + 𝐶𝐶̅ 𝐵𝐵�^ + 𝐶𝐶 A 00 01 11 10 A 0 0 0 𝐴𝐴̅ 1 0 0 𝑭𝑭 = 𝑩𝑩�
Eight (8) adjacent squares – logic 1 (SOP); logic 0 (POS)
Sample Problem 4: Identify the function which generates the K- map shown: BC (^) 𝐵𝐵�𝐶𝐶̅ 𝐵𝐵�𝐶𝐶 BC (^) 𝐵𝐵𝐶𝐶̅ A 00 01 11 10 𝐴𝐴̅^0^1 1 1 A 1 1 1 1 1 𝑭𝑭 = 𝟏𝟏
Four-Variable Map
In the case of 4 variables, we form a map consisting of 24 = 16 cells (4-by-4 matrix), as shown below.
For Minterm (m): CD (^) 𝐶𝐶̅𝐷𝐷�^ 𝐶𝐶̅𝐷𝐷 CD (^) 𝐶𝐶𝐷𝐷� AB 00 01 11 10
Row # 0 0000
Row # 1 0001
Row # 3 0011
Row # 2 0010
Row # 4 0100
Row # 5 0101
Row # 7 0111
Row # 6 0110
Row # 12 1100
Row # 13 1101
Row # 15 1111
Row # 14 1110
Row # 8 1000
Row # 9 1001
Row # 11 1011
Row # 10 1010
For Minterm (m): CD (^) 𝐶𝐶̅𝐷𝐷�^ 𝐶𝐶̅𝐷𝐷 CD (^) 𝐶𝐶𝐷𝐷� AB 00 01 11 10
Row # 0 𝐴𝐴̅𝐵𝐵�𝐶𝐶̅𝐷𝐷�
Row # 1 𝐴𝐴̅𝐵𝐵�𝐶𝐶̅𝐷𝐷
Row # 3 𝐴𝐴̅ 𝐵𝐵�𝐶𝐶𝐷𝐷
Row # 2 𝐴𝐴̅𝐵𝐵�𝐶𝐶𝐷𝐷�
Row # 4 𝐴𝐴̅𝐵𝐵𝐶𝐶̅𝐷𝐷�
Row # 5 𝐴𝐴̅𝐵𝐵𝐶𝐶̅𝐷𝐷
Row # 7 𝐴𝐴̅𝐵𝐵𝐶𝐶𝐷𝐷
Row # 6 𝐴𝐴̅ 𝐵𝐵𝐶𝐶𝐷𝐷�
Row # 12 𝐴𝐴𝐵𝐵𝐶𝐶̅ 𝐷𝐷�
Row # 13 𝐴𝐴𝐵𝐵𝐶𝐶̅ 𝐷𝐷
Row # 15 𝐴𝐴𝐵𝐵𝐶𝐶𝐷𝐷
Row # 14 𝐴𝐴𝐵𝐵𝐶𝐶𝐷𝐷�
Row # 8 𝐴𝐴𝐵𝐵�𝐶𝐶̅𝐷𝐷�
Row # 9 𝐴𝐴𝐵𝐵�𝐶𝐶̅𝐷𝐷
Row # 11 𝐴𝐴𝐵𝐵�𝐶𝐶𝐷𝐷
Row # 10 𝐴𝐴𝐵𝐵�𝐶𝐶𝐷𝐷�
Note: The same table is applied for maxterm (M), except that the literals are in product of sum (POS) form – all literals in “1’s” are complemented while all literals in “0’s” are not complemented.
Simplification rules for four- variable K-map
Rules Example
One (1) square – 4 literals
Sample Problem 1: Identify the function which generates the K- map shown: CD 𝐶𝐶̅𝐷𝐷�^ 𝐶𝐶̅𝐷𝐷 CD 𝐶𝐶𝐷𝐷� AB 00 01 11 10 𝐴𝐴̅ 𝐵𝐵�^ 00 𝐴𝐴̅ 𝐵𝐵 01 1 AB 11 𝐴𝐴𝐵𝐵�^^10 𝑭𝑭 = 𝑨𝑨�𝑩𝑩𝑩𝑩𝑫𝑫� Two (2) adjacent squares – 3 literals Sample Problem 2 : Simplify the Boolean functions
03 Handout 1 _Property of STI_*
Sample Problem: Simplify the Boolean function 𝐹𝐹 (𝐴𝐴, 𝐵𝐵, 𝐶𝐶, 𝐷𝐷) = 𝛱𝛱𝑀𝑀(6,7,10,11,12,14,15) with the don’t care conditions described by the function: 𝑑𝑑(𝐴𝐴, 𝐵𝐵, 𝐶𝐶, 𝐷𝐷) = 𝛱𝛱𝑀𝑀 (0,3,13).
Solution:
CD 𝐶𝐶 + 𝐷𝐷 𝐶𝐶 + 𝐷𝐷�^ 𝐶𝐶̅ + 𝐷𝐷�^ 𝐶𝐶̅ + 𝐷𝐷
AB 0 + 0 0 + 1 1 + 1 1 + 0
𝐴𝐴 + 𝐵𝐵 0 + 0
References: Karim, M., & Chen, X. (2017). Digital design: Basic concepts and principles. Boca Raton, FL: CRC Press/Taylor & Francis. LaMeres, B. (2019). Introduction to logic circuits & logic design with VHDL (1st^ ed.). Springer International. Ndjountche, T. (2016). Digital electronics 2: Sequential and arithmetic logic circuits. John Wiley & Sons.