4893
TRANSCRIPT
![Page 1: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/1.jpg)
Topic 1.2.3 – Karnaugh maps
Learning Objectives:
At the end of this topic you will be able to;
Draw a Karnaugh map for a logic system with up to four inputs and use it to minimise the number of gates required;
1
![Page 2: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/2.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Karnaugh maps.
Congratulations on reaching this point in the course, which will mean that you have successfully battled your way through some pretty tough Boolean simplification techniques, which became very complex at times.
In this unit we are going to show you another method of simplification, which you will hopefully find much quicker and less prone to error, as in many cases the simplest Boolean expression is obtained immediately, without the need for any further manipulation using Boolean algebra. So here we go !
This method of simplification of requires the production of a diagram to represent the contents of a truth table, (or a map). Let us look at a very simple example for a two input logic gate. From our previous work you will realise that a two input gate can have four different possible settings. The truth table looks like.
Inputs Output
B A Q0 0 00 1 11 0 11 1 1
What type of logic gate is this ? ....................................................
An alternative way of presenting this data is as followsA
B 0 1
0 0 1
1 1 1
Can you see how the logic state of Q has been transferred to the diagram ?
2
![Page 3: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/3.jpg)
Topic 1.2.3 – Karnaugh maps
This diagram is in fact a Karnaugh map, each square or cell in the Karnaugh map corresponds to a cell in truth table, as shown below.
Now you should be able to complete a Karnaugh map for any two input logic function, so let’s put that to the test.
Exercise 1 – Complete the following Truth Tables and Karnaugh maps for the logic gates named.
1. AND gate:
3
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
![Page 4: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/4.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
2. NOR gate:
3. ExOR gate
4
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
![Page 5: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/5.jpg)
Topic 1.2.3 – Karnaugh maps
4. NAND gate
5. ExNOR gate
An alternative way of looking at the cells in the Karnaugh map is shown below:
This should give you a clue as to how we can read a Karnaugh map, since each cell has it’s own Boolean expression!
5
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
Inputs Output
B A Q0 00 11 01 1
AB 0 1
0
1
![Page 6: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/6.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
So we can now fill in a Karnaugh map, but how do we read them to obtain a Boolean expression? Complete the Karnaugh map for the following truth table.
In this case, the truth table and the Karnaugh map do not match one of our standard logic gates, but we can extract the Boolean equation straight from the cell in the Karnaugh map containing a logic 1, i.e.
So what, you might say, “there doesn’t seem to be a lot of point in what we are doing here”, because we could have obtained this directly from the truth table, without having to draw the Karnaugh map. Let us have a look at another example.
At first glance this might look like one of our standard logic gates, however it isn’t. Now if we write down the Boolean expression for each logic 1 in the map we get the following:
This is not exactly the simplest of Boolean equations and we could have obtained the same result from the truth table – there still doesn’t appear to be much of an advantage to the Karnaugh map. Let us look at that expression and simplify it using Boolean Algebra to obtain the simplest solution.
6
Inputs Output
B A Q0 0 00 1 11 0 01 1 0
AB 0 1
0
1
AB 0 1
0 1 1
1 0 1
Inputs Output
B A Q0 0 10 1 11 0 01 1 1
![Page 7: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/7.jpg)
Topic 1.2.3 – Karnaugh maps
Now look at the Karnaugh map again
If we think of the right hand side of the Karnaugh map and compare it to the map we introduced earlier showing the Boolean terms for each cell we obtain the following:
What this shows is that the Boolean terms we have grouped together are:
Using the Karnaugh map is a graphical method of finding the common factors in a Boolean expression. If we look at the Karnaugh map we can see that the group of 1’s we have identified corresponds to when input A is a logic 1, which corresponds to the simplest term obtained via the Boolean simplification.
7
AB 0 1
0 1 1
1 0 1
AB 0 1
0
1
AB 0 1
0 1 1
1 0 1
![Page 8: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/8.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Now consider the following alternative grouping that could have been created.
Again this shows that the Boolean terms we have grouped together are:
If we look at the Karnaugh map we can see that the group of 1’s we have identified corresponds to when input B is a logic 0, or , which corresponds to the simplest term obtained via the Boolean simplification.
If we put the two results together we obtain the simplest solution as
In practice we would perform these two simplifications in one step as shown below:
The advantage of a Karnaugh map is that we can quickly spot the common terms in a complicated expression. This advantage will be more obvious when we deal with 4 input expressions.The only thing we have to be sure of is that every logic 1 in the map is included in at least one group.
8
AB 0 1
0 1 1
1 0 1
AB 0 1
0
1
AB 0 1
0 1 1
1 0 1
![Page 9: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/9.jpg)
Topic 1.2.3 – Karnaugh maps
Example 2 : Try the following example:
i. Complete the Karnaugh map.ii. Group the logic 1’s togetheriii. Write down the Boolean term for each group linked by the OR
function ‘+’.iv. Check your answer by simplifying the expression obtained from
the truth table using the rules of Boolean Algebra.
Simplest Expression from map = .......................................................
Boolean simplification from Truth Table.
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
Hopefully you are beginning to see the advantages of using a Karnaugh map, but for two input logic functions there is not a great deal of advantage to be gained. The true power of Karnaugh maps becomes much clearer when we look at three and four input logic systems, which is where we will go next.
9
Inputs Output
B A Q0 0 10 1 01 0 11 1 1
AB 0 1
0
1
![Page 10: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/10.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Three Input Logic Systems.
A three input logic system will have eight possible input combinations as shown below.
Inputs Output
C B A Q0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1
We need a bigger Karnaugh map to accommodate the extra input details, and this is shown below:
BAC 00 01 11 10
0
1
Things to note:i. the inputs A and B have been linked together on the top row of
the Karnaugh map.ii. the sequence of combinations for , is not quite as you might
expect. They do not increase numerically as they move across the table. This is deliberate, as it ensure that from one cell to the next only one variable changes. This is essential if the Karnaugh map is to be read correctly.
The completion of the Karnaugh map is carried out in a similar way to that of the two input map. In the 2 diagrams below, letters have been used to help you identify how the various rows in the truth table correspond to the cells on a Karnaugh map:10
![Page 11: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/11.jpg)
Topic 1.2.3 – Karnaugh maps
Inputs Output
C B A Q0 0 0 a0 0 1 b0 1 0 c0 1 1 d1 0 0 e1 0 1 f1 1 0 g1 1 1 h
Example :
Inputs Output
C B A Q0 0 0 10 0 1 10 1 0 10 1 1 01 0 0 01 0 1 01 1 0 11 1 1 0
We use the same rules as before to group the Logic 1’s together as a group as shown below.
Now write down the Boolean expression for
each group. The rule is that we ignore any
variable that changes between groups.
Now compare this to the Boolean Simplification.
11
BAC 00 01 11 10
0 a b d c
1 e f h g
BAC 00 01 11 10
0 1 1 0 1
1 0 0 0 1
BAC 00 01 11 10
0 1 1 0 1
1 0 0 0 1{Note: C changes but not
}
{Note: A changes but not }
So the Boolean Expression is .
![Page 12: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/12.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Now consider the following example.
Inputs Output
C B A Q0 0 0 10 0 1 10 1 0 10 1 1 11 0 0 01 0 1 01 1 0 11 1 1 1
In this case there are a large number of logic 1’s in the Karnaugh map, we could group these into three groups of 2 as we have done previously.
Using our normal rules we obtain the following Boolean expression.
This does not look to be a very simple solution, and indeed we can use Boolean Algebra to simplify this further as follows:
If we reconsider the simpler solution we have just obtained with the original Karnaugh map we can identify why we did not get the simple answer straight away.
The simplest Boolean expression is . The Karnaugh map is:
12
BAC 00 01 11 10
0 1 1 1 1
1 0 0 1 1
BAC 00 01 11 10
0 1 1 1 1
1 0 0 1 1
BAC 00 01 11 10
0 1 1 1 1
1 0 0 1 1
{Note: A and C change but not }
{Note: A and B change but not }
![Page 13: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/13.jpg)
Topic 1.2.3 – Karnaugh maps
The Karnaugh map shows that the two terms in the simplest Boolean expression refer to groups of 4 logic 1’s in the map. This gives us another rule for working with Karnaugh maps – Group the logic 1’s into the largest group possible, i.e. groups of 2 or 4 adjacent cells.
Exercise 3 – Derive the simplest Boolean expression for the logic function defined by the truth table.
Inputs Output
C B A Q0 0 0 00 0 1 10 1 0 00 1 1 11 0 0 11 0 1 11 1 0 01 1 1 1
Simplest Boolean expression = ...............................................................................
13
BAC 00 01 11 10
0
1
![Page 14: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/14.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Before we look at 4 input Karnaugh maps, there is one more special case we need to consider for three inputs. Let us assume that a logic circuit has produced the following Karnaugh map.
At first glance it might appear that we would have to group these as two groups of 2, giving the Boolean expression as:
But this can be simplified to just , which would indicate from our previous work that there should be a group of 4 logic 1’s in this map, and indeed there is if we imagine the map rolled around so that the two ends meet.
You will need to watch out for this in any examples you do, as it can often be forgotten, leading to a more complex Boolean expression than needed.
You should begin to see now how the larger the group of 1’s we can produce the simpler our Boolean expression becomes.
This will become even more obvious as we consider the 4 input logic systems.
14
BAC 00 01 11 10
0 1 0 0 1
1 1 0 0 1
BAC 00 01 11 10
0 1 0 0 1
1 1 0 0 1
![Page 15: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/15.jpg)
Topic 1.2.3 – Karnaugh maps
Four input Logic Systems
The four input logic system produces 16 possible combinations of the 4 inputs, and this will require a much larger truth table, and a further extension to the Karnaugh map, as shown below:
Check the Karnaugh map carefully to ensure you are happy with the location of
each line of the truth table in the Karnaugh map. When you have done a few of these it will become a little easier, but in the early stages it is worth taking your time when transferring the information from the truth table to ensure you have not made an error.
Once the data has been transferred we simply apply all of the rules we have discovered so far, namely
Group all logic 1’s into as big a group as possible, i.e. groups of 2, 4 or 8 adjacent cells.
Ensure all logic 1’s are included in at least one group Write down the Boolean expression for each group, joined by ‘+’.
Example:
15
Inputs Output
D C B A Q0 0 0 0 a0 0 0 1 b0 0 1 0 c0 0 1 1 d0 1 0 0 e0 1 0 1 f0 1 1 0 g0 1 1 1 h1 0 0 0 i1 0 0 1 j1 0 1 0 k1 0 1 1 l1 1 0 0 m1 1 0 1 n1 1 1 0 o1 1 1 1 p
BADC 00 01 11 10
00 a b d c
01 e f h g
11 m n p o
10 i j l k
![Page 16: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/16.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
The Karnaugh map is as follows:
Considering the Karnaugh map carefully there are three groups that can be formed as shown. Notice that one group
of terms wraps around the map to give a small group of 2 Logic 1’s. The following Boolean expression results.
This expression was obtained in one step, consider the simplification via Boolean algebra.
Having seen both methods of solution, which one do you prefer, Boolean or Karnaugh maps ?
A silly question I would think, because it is only now that we can see the power of using the Karnaugh map. Before letting you loose with a few 16
Inputs Output
D C B A Q0 0 0 0 10 0 0 1 10 0 1 0 10 0 1 1 00 1 0 0 00 1 0 1 10 1 1 0 00 1 1 1 11 0 0 0 01 0 0 1 11 0 1 0 01 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 01 1 1 1 1
BADC 00 01 11 10
00 1 1 0 1
01 0 1 1 0
11 0 1 1 0
10 0 1 0 0
![Page 17: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/17.jpg)
Topic 1.2.3 – Karnaugh maps
examples it is worth spending a few minutes looking for some special links that exist in the Karnaugh map for four inputs. You will remember that there was one special case for the three input where a group of 4 could be created by folding the map around that the two ends came together. A similar situation occurs with the Karnaugh map for 4 inputs, only more frequently.
BADC 00 01 11 10
00 0 1 1 0
01 0 0 0 0
11 0 0 0 0
10 0 1 1 0
BADC 00 01 11 10
00 1 0 0 1
01 0 0 0 0
11 0 0 0 0
10 1 0 0 1
17
BADC 00 01 11 10
00 0 0 0 0
01 1 0 0 1
11 1 0 0 1
10 0 0 0 0
BADC 00 01 11 10
00 1 1 1 1
01 0 0 0 0
11 0 0 0 0
10 1 1 1 1
![Page 18: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/18.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Now it’s time for you to have a go at an example.
Example 2:
The following truth table contains the function of a logic circuit. Use the blank Karnaugh map provided to determine the simplest Boolean expression to show how the output Q can be derived from inputs A, B, C and D.
BADC 00 01 11 10
00
01
11
10
{Hint : you should be able to find three groups in the
Karnaugh map when it is completed.}
Simplest Boolean expression is : ...............................................................................
Before proceeding with some further examples, a word of caution. Karnaugh maps are a graphical way of grouping common terms together. The way in which the groups are formed will determine the 18
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 00 0 1 0 00 0 1 1 10 1 0 0 10 1 0 1 10 1 1 0 10 1 1 1 01 0 0 0 01 0 0 1 01 0 1 0 01 0 1 1 11 1 0 0 11 1 0 1 11 1 1 0 11 1 1 1 0
![Page 19: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/19.jpg)
Topic 1.2.3 – Karnaugh maps
resulting expression, and this may lead to different answers which are completely correct. To illustrate this consider the following example:
Assume that a particular design has produced the following Karnaugh map.
BADC 00 01 11 10
00 0 1 0 0
01 0 1 1 1
11 0 0 0 1
10 1 1 0 1
Now consider the same map showing two different ways of grouping the Logic 1’s, together and the resulting Boolean expressions.
OR
Looking at these two expressions you should realise that they are completely different, both have the same number of terms so neither is a better solution than the other, and they are both correct.
In an examination you will gain marks for doing the following things:
19
BADC 00 01 11 10
00 0 1 0 0
01 0 1 1 1
11 0 0 0 1
10 1 1 0 1
BADC 00 01 11 10
00 0 1 0 0
01 0 1 1 1
11 0 0 0 1
10 1 1 0 1
![Page 20: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/20.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
i. for correctly completing the Karnaugh map from a truth table or Boolean expression.
ii. identifying the largest groups of adjacent Logic 1’s.iii. including every logic 1 in the map in at least one group,
or individually if there are no adjacent 1’s.iv. then writing down a correct Boolean expression for
each of the groups you have shown in the Karnaugh map.
You should bear this in mind when checking your answers to the following problems. If you have chosen a different grouping of the Logic 1’s to that shown in the solutions, you may have a different but equally correct solution.
If you are not sure, ask your tutor to check this for you.
Now it’s time for you to have a go at some problems.
20
![Page 21: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/21.jpg)
Topic 1.2.3 – Karnaugh maps
Exercise 4 – Determine the simplest Boolean expression for the following:
1.
Inputs Output
C B A Q0 0 0 10 0 1 00 1 0 00 1 1 11 0 0 01 0 1 11 1 0 01 1 1 1
Simplest Boolean expression = ...............................................................................
2.
Simplest Boolean Expression
= .................................................................................21
BAC 00 01 11 10
0
1
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 00 0 1 0 10 0 1 1 00 1 0 0 00 1 0 1 10 1 1 0 10 1 1 1 11 0 0 0 01 0 0 1 01 0 1 0 11 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 11 1 1 1 1
BADC 00 01 11 10
00
01
11
10
![Page 22: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/22.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
3.
Inputs Output
C B A Q0 0 0 00 0 1 10 1 0 10 1 1 11 0 0 01 0 1 11 1 0 01 1 1 1
Simplest Boolean expression = ...............................................................................
4.
Simplest Boolean Expression
= .................................................................................
22
BAC 00 01 11 10
0
1
Inputs Output
D C B A Q0 0 0 0 10 0 0 1 10 0 1 0 10 0 1 1 10 1 0 0 00 1 0 1 00 1 1 0 00 1 1 1 01 0 0 0 11 0 0 1 01 0 1 0 11 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 01 1 1 1 0
BADC 00 01 11 10
00
01
11
10
![Page 23: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/23.jpg)
Topic 1.2.3 – Karnaugh maps
5.
Inputs Output
C B A Q0 0 0 00 0 1 10 1 0 00 1 1 11 0 0 11 0 1 01 1 0 11 1 1 0
Simplest Boolean expression = ...............................................................................
6.
Simplest Boolean Expression
= .................................................................................
23
BAC 00 01 11 10
0
1
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 10 0 1 0 00 0 1 1 10 1 0 0 10 1 0 1 00 1 1 0 10 1 1 1 01 0 0 0 01 0 0 1 01 0 1 0 01 0 1 1 01 1 0 0 11 1 0 1 11 1 1 0 11 1 1 1 1
BADC 00 01 11 10
00
01
11
10
![Page 24: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/24.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
You are now in a position to complete a Karnaugh map for 2, 3 and 4 input logic functions, although 2 input maps are rarely required, as it is often just as easy to get the Boolean expression from the truth table.
However, what if we are not given the truth table but just a Boolean expression to simplify ?
Well we could draw the truth table and fill it in from the Boolean expression and then complete the Karnaugh map. This would be a long process and it would be better if we could move directly from the Boolean expression to the Karnaugh map.
This is not as difficult as it might sound as long as we remember some simple rules.
For a 2 input function, i. any term that contains 2 variables = 1 one cell in the
Karnaugh map.ii. any term that contains 1 variable = 2 cells in the Karnaugh
map.
For a 3 input function, i. any term that contains 3 variables = 1 cell in the Karnaugh
map.ii. any term that contains 2 variables = 2 cells in the Karnaugh
map.iii. any term that contains 1 variable = 4 cells in the Karnaugh
map.
For a 4 input function, i. any term that contains 4 variables = 1 cell in the Karnaugh
map.ii. any term that contains 3 variables = 2 cells in the Karnaugh
map.iii. any term that contains 2 variables = 4 cells in the Karnaugh
map.iv. any term that contains 1 variable = 8 cells in the Karnaugh
map.
Let’s have a look at a couple of examples.
24
![Page 25: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/25.jpg)
Topic 1.2.3 – Karnaugh maps
Example 1 : Simplify the following Boolean Expression
To solve this you need to start with a blank Karnaugh map, take each term individually and put a ‘1’ in the cell of the Karnaugh map that corresponds to the logic expression.
Step 1 : (4 variables = 1 cell in map)
BADC 00 01 11 10
00 1
01
11
10
Step 2 : (3 variables = 2 cells in map)
BADC 00 01 11 10
00 1 1 1
01
11
10
25
![Page 26: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/26.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Step 3 : (3 variables = 2 cells in map)
BADC 00 01 11 10
00 1 1 1
01 1
11
10 1 1
Step 4 : (4 variables = 1 cell in map)
BADC 00 01 11 10
00 1 1 1
01 1
11
10 1 1
Step 5 : (3 variables = 2 cells in map)
BADC 00 01 11 10
00 1 1 1
01 1
11 1
10 1 1
Notice that this was already filled in.
26
![Page 27: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/27.jpg)
Topic 1.2.3 – Karnaugh maps
Step 6 : (3 variables = 2 cells in map)
BADC 00 01 11 10
00 1 1 1
01 1
11 1
10 1 1 1 1
Step 7 : Finally having completed all the Logic 1’s, the rest of the map can be filled in with ‘0’s, to leave the completed map.
BADC 00 01 11 10
00 1 0 1 1
01 0 1 0 0
11 0 1 0 0
10 1 1 1 1
Step 8 : Form the largest groups of 1’s to include every ‘1’ at least once.
BADC 00 01 11 10
00 1 0 1 1
01 0 1 0 0
11 0 1 0 0
10 1 1 1 1
Example 2 : Simplify the following Boolean Expression.
27
![Page 28: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/28.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
In this example we have one of the inverted functions, in this case a NOR function. These are difficult to put directly into a Karnaugh map because we have to think of the inverse function. It is easier to use DeMorgan’s theorem to change the expression slightly before completing the Karnaugh map.
Step 1 : Remove the inverted function from the original expression.
Now proceed to complete the Karnaugh map as before.
Step 2 :
BADC 00 01 11 10
00 1 1
01
11
10 1 1
28
![Page 29: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/29.jpg)
Topic 1.2.3 – Karnaugh maps
Step 3 :
BADC 00 01 11 10
00 1 1
01 1
11 1
10 1 1
Step 4 :
BADC 00 01 11 10
00 1 1
01 1
11 1
10 1 1 1 1Step 5 :
BADC 00 01 11 10
00 1 1
01 1 1
11 1 1
10 1 1 1 1
29
![Page 30: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/30.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Step 6 : Complete the Karnaugh map by adding ‘0’s to the map.
BADC 00 01 11 10
00 1 0 0 1
01 0 1 1 0
11 0 1 1 0
10 1 1 1 1
Step 7 : Group the 1’s into as large a group as possible and write down a Boolean expression for each group.
BADC 00 01 11 10
00 1 0 0 1
01 0 1 1 0
11 0 1 1 0
10 1 1 1 1
Simplest Boolean Expression =
As is usually the case with these questions, seeing examples that have been completed for you is o.k. but the real understanding comes from trying some yourself, so here are some for you to try.
Only 1 Karnaugh map has been provided for each example, because you can complete this step by step as you consider each term in the Boolean equation, there is no need to complete multiple Karnaugh maps as has been shown here for illustration purposes.
30
![Page 31: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/31.jpg)
Topic 1.2.3 – Karnaugh maps
Exercise 6 : Simplify the following Boolean Expressions.
1.
BAC 00 01 11 10
0
1
Simplest Boolean expression = ............................................................
2.
BAC 00 01 11 10
0
1
Simplest Boolean expression = ............................................................
3.
BAC 00 01 11 10
0
1
Simplest Boolean expression = ............................................................
31
![Page 32: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/32.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
4.
BADC 00 01 11 10
00
01
11
10
Simplest Boolean expression = ............................................................
5. {Remember to split the NAND function}
.............................................................................................................
BADC 00 01 11 10
00
01
11
10
Simplest Boolean expression = ............................................................
You have now completed this section of the course, and are armed with enough knowledge to answer any examination questions on this topic.
The next section gives the solutions to all of the exercises in this topic and this is followed by some examination style questions for you to practice.
32
![Page 33: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/33.jpg)
Topic 1.2.3 – Karnaugh maps
Solutions to Student Exercises
Exercise 1:
1. AND gate:
2. NOR gate:
3. ExOR gate
33
Inputs Output
B A Q0 0 00 1 01 0 01 1 1
AB 0 1
0 0 0
1 0 1
Inputs Output
B A Q0 0 10 1 01 0 01 1 0
AB 0 1
0 1 0
1 0 0
Inputs Output
B A Q0 0 00 1 11 0 11 1 0
AB 0 1
0 0 1
1 1 0
![Page 34: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/34.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
4. NAND gate
5. ExNOR gate
Exercise 2:
Simplest Boolean expression =
Check via Boolean gives
34
Inputs Output
B A Q0 0 10 1 11 0 11 1 0
AB 0 1
0 1 1
1 1 0
Inputs Output
B A Q0 0 10 1 01 0 01 1 1
AB 0 1
0 1 0
1 0 1
Inputs Output
B A Q0 0 10 1 01 0 11 1 1
AB 0 1
0 1 0
1 1 1
![Page 35: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/35.jpg)
Topic 1.2.3 – Karnaugh maps
Exercise 3.
Inputs Output
C B A Q0 0 0 00 0 1 10 1 0 00 1 1 11 0 0 11 0 1 11 1 0 01 1 1 1
Simplest Boolean expression =
Example 2 : (Page 18)
BADC 00 01 11 10
00 0 0 1 0
01 1 1 0 1
11 1 1 0 1
10 0 0 1 0
Boolean expression is :
35
BAC 00 01 11 10
0 0 1 1 0
1 1 1 1 0
![Page 36: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/36.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
Exercise 4:
1.
Inputs Output
C B A Q0 0 0 10 0 1 00 1 0 00 1 1 11 0 0 01 0 1 11 1 0 01 1 1 1
Simplest Boolean expression = or
2.
Simplest Boolean Expression = 3.
Inputs Output
C B A Q0 0 0 00 0 1 1
36
BAC 00 01 11 10
0 1 0 1 0
1 0 1 1 0
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 00 0 1 0 10 0 1 1 00 1 0 0 00 1 0 1 10 1 1 0 10 1 1 1 11 0 0 0 01 0 0 1 01 0 1 0 11 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 11 1 1 1 1
BADC 00 01 11 10
00 0 0 0 1
01 0 1 1 1
11 0 1 1 1
10 0 0 0 1
![Page 37: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/37.jpg)
Topic 1.2.3 – Karnaugh maps
0 1 0 10 1 1 11 0 0 01 0 1 11 1 0 01 1 1 1
Simplest Boolean expression =
4.
Simplest Boolean Expression =
or
37
BAC 00 01 11 10
0 0 1 1 1
1 0 1 1 0
Inputs Output
D C B A Q0 0 0 0 10 0 0 1 10 0 1 0 10 0 1 1 10 1 0 0 00 1 0 1 00 1 1 0 00 1 1 1 01 0 0 0 11 0 0 1 01 0 1 0 11 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 01 1 1 1 0
BADC 00 01 11 10
00 1 1 1 1
01 0 0 0 0
11 0 1 0 0
10 1 0 0 1
![Page 38: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/38.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
5.
Inputs Output
C B A Q0 0 0 00 0 1 10 1 0 00 1 1 11 0 0 11 0 1 01 1 0 11 1 1 0
Simplest Boolean expression = or
6.
Simplest Boolean Expression =
Exercise 6 :
1.
38
BAC 00 01 11 10
0 0 1 1 0
1 1 0 0 1
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 10 0 1 0 00 0 1 1 10 1 0 0 10 1 0 1 00 1 1 0 10 1 1 1 01 0 0 0 01 0 0 1 01 0 1 0 01 0 1 1 01 1 0 0 11 1 0 1 11 1 1 0 11 1 1 1 1
BADC 00 01 11 10
00 0 1 1 0
01 1 0 0 1
11 1 1 1 1
10 0 0 0 0
![Page 39: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/39.jpg)
Topic 1.2.3 – Karnaugh maps
BAC 00 01 11 10
0 0 01
1
1 1 0 1 1
Simplest Boolean expression =
2.
BAC 00 01 11 10
0 1 1 1 1
1 0 1 0 0
Simplest Boolean expression =
3.
BAC 00 01 11 10
0 0 1 0 0
1 1 1 0 0
Simplest Boolean expression = or
39
![Page 40: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/40.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
4.
BADC 00 01 11 10
00 0 1 1 0
01 0 1 1 0
11 0 0 1 1
10 0 0 1 1
Simplest Boolean expression =
5. {Remember to split the NAND function}
BADC 00 01 11 10
00 1 1 1 1
01 1 1 1 1
11 0 1 1 1
10 0 1 1 1
Simplest Boolean expression =
The next section contains some past examination style questions for you to practice.
40
![Page 41: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/41.jpg)
Topic 1.2.3 – Karnaugh maps
Examination Style Questions.
1. Use the laws of Boolean algebra or Karnaugh maps to simplify the following expressions.
(i)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[2]
Q = .............................................................................
(ii)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[3]
Q = .............................................................................
2. Simplify the following expressions.
41
BAC 00 01 11 10
0
1
BADC 00 01 11 10
00
01
11
10
![Page 42: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/42.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
(i)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[2]
Q = .............................................................................
42
AB 0 1
0
1
![Page 43: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/43.jpg)
Topic 1.2.3 – Karnaugh maps
(ii)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[2]
Q = .............................................................................
3. Use Karnaugh maps to simplify the following expressions as far as possible.
(i)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[2]
Q = .............................................................................
(ii)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[3]
Q = .............................................................................
43
BAC 00 01 11 10
0
1
AB 0 1
0
1
BAC 00 01 11 10
0
1
BAC 00 01 11 10
0
1
![Page 44: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/44.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
4. In designing a logic system, a student has produced the Karnaugh map shown below.
BADC 00 01 11 10
00 0 0 1 1
01 1 1 0 0
11 1 1 0 1
10 0 0 1 1
Give the simplest Boolean expression for the output Q of this logic system.Show any groups that you create in producing this expression on the Karnaugh map.
[5]
............................................................................................................................................................
............................................................................................................................................................
5. a) Complete the Karnaugh map for the following expression:
BADC 00 01 11 10
00
01
11
10[2]
b) Give the simplest Boolean expression for the output Q of this logic system. Show and label any groups that you create in producing this expression on the map.
Q = .........................................................................................................................................[4]
44
![Page 45: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/45.jpg)
Topic 1.2.3 – Karnaugh maps
6. Either using the laws of Boolean algebra or a Karnaugh maps simplify the following expression as much as possible.
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[5]
Q = .............................................................................
7. Use the laws of Boolean algebra or Karnaugh maps to simplify the following expressions.
(i)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[3]
Q = .............................................................................
45
BADC 00 01 11 10
00
01
11
10
BAC 00 01 11 10
0
1
![Page 46: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/46.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
46
![Page 47: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/47.jpg)
Topic 1.2.3 – Karnaugh maps
8. Use the laws of Boolean algebra or Karnaugh maps to simplify the following expressions.
(i)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[2]
Q = .............................................................................
(ii)
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[4]
Q = .............................................................................
9. Use the laws of Boolean algebra or Karnaugh maps to simplify the following expressions.
(i)
.....................................................................................
47
BAC 00 01 11 10
0
1
BADC 00 01 11 10
00
01
11
10
BAC 00 01 11 10
0
1
![Page 48: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/48.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
.....................................................................................
.....................................................................................
.....................................................................................
.....................................................................................[3]
Q = .............................................................................
48
BAC 00 01 11 10
0
1
![Page 49: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/49.jpg)
Topic 1.2.3 – Karnaugh maps
10. A Karnaugh map is shown below.
BADC 00 01 11 10
00 1 1 0 0
01 0 0 1 1
11 1 0 1 1
10 1 1 0 0
Give the simplest Boolean expression for the output Q of this logic system.Show on the Karnaugh map any groups that you have created in producing this expression.
[5]
............................................................................................................................................................
............................................................................................................................................................
11. The following truth table defines the logic conditions for a particular application.
49
Inputs Output
D C B A Q0 0 0 0 00 0 0 1 00 0 1 0 10 0 1 1 10 1 0 0 00 1 0 1 00 1 1 0 00 1 1 1 01 0 0 0 11 0 0 1 11 0 1 0 01 0 1 1 01 1 0 0 11 1 0 1 11 1 1 0 01 1 1 1 0
![Page 50: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/50.jpg)
Module ET1 Introduction to Analogue and Digital Systems.
(a) Write down without simplification the Boolean expression for the output Q, in terms of the inputs A, B, C and D.
..................................................................................................................................................
..................................................................................................................................................
[3]
(b) Complete the Karnaugh map below for the same logic function using either the truth table or your logic expression from (a)
BADC 00 01 11 10
00
01
11
10[2]
(c) Hence derive the simplest Boolean expression for the logic function.
.................................................................................................................................................[2]
(d) In the space below draw the logic circuit diagram to show how the output Q, could be obtained from inputs A, B, C and D, using AND, OR, and NOT gates only.
[4]
50
A
B
C
D
Q
![Page 51: 4893](https://reader031.vdocuments.mx/reader031/viewer/2022020311/577cc7021a28aba7119fbfac/html5/thumbnails/51.jpg)
Topic 1.2.3 – Karnaugh maps
Self Evaluation Review
Learning ObjectivesMy personal review of these objectives:
Draw a Karnaugh map for a logic system with up to four inputs and use it to minimise the number of gates required;
Targets: 1.
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
2. ………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
51