Larger 4-variable Karnaugh Maps - InstrumentationTools (2024)

Knowing how to generate Gray code should allow us to build larger maps. Actually, all we need to do is look at the left to right sequence across the top of the 3-variable map, and copy it down the left side of the 4-variable map.

See below.

Larger 4-variable Karnaugh Maps - InstrumentationTools (1)

The following four variable Karnaugh maps illustrate reduction of Boolean expressions too tedious for Boolean algebra. Reductions could be done with Boolean algebra. However, the Karnaugh map is faster and easier, especially if there are many logic reductions to do.

Larger 4-variable Karnaugh Maps - InstrumentationTools (2)

The above Boolean expression has seven product terms. They are mapped top to bottom and left to right on the K-map above.

For example, the first P-term A’B’CDis first row 3rd cell, corresponding to map locationA=0, B=0, C=1, D=1. The other product terms are placed in a similar manner. Encircling the largest groups possible, two groups of four are shown above.

The dashed horizontal group corresponds the the simplified product termAB. The vertical group corresponds to Boolean CD. Since there are two groups, there will be two product terms in the Sum-Of-Products result ofOut=AB+CD.

Fold up the corners of the map below like it is a napkin to make the four cells physically adjacent.

Larger 4-variable Karnaugh Maps - InstrumentationTools (3)The four cells above are a group of four because they all have the Boolean variablesB’andD’in common. In other words,B=0for the four cells, andD=0for the four cells. The other variables(A, C)are0in some cases,1in other cases with respect to the four corner cells.

Thus, these variables(A, C)are not involved with this group of four. This single group comes out of the map as one product term for the simplified result:Out=B’D’

For the K-map below, roll the top and bottom edges into a cylinder forming eight adjacent cells.

Larger 4-variable Karnaugh Maps - InstrumentationTools (4)

The above group of eight has one Boolean variable in common:B=0. Therefore, the one group of eight is covered by one p-term:B’. The original eight term Boolean expression simplifies toOut=B’

The Boolean expression below has nine p-terms, three of which have three Booleans instead of four. The difference is that while four Boolean variable product terms cover one cell, the three Boolean p-terms cover a pair of cells each.

Larger 4-variable Karnaugh Maps - InstrumentationTools (5)

The six product terms of four Boolean variables map in the usual manner above as single cells. The three Boolean variable terms (three each) map as cell pairs, which is shown above. Note that we are mapping p-terms into the K-map, not pulling them out at this point.

For the simplification, we form two groups of eight. Cells in the corners are shared with both groups. This is fine. In fact, this leads to a better solution than forming a group of eight and a group of four without sharing any cells. Final Solution isOut=B’+D’

Below we map the unsimplified Boolean expression to the Karnaugh map.

Larger 4-variable Karnaugh Maps - InstrumentationTools (6)

Above, three of the cells form into a groups of two cells. A fourth cell cannot be combined with anything, which often happens in “real world” problems. In this case, the Boolean p-termABCDis unchanged in the simplification process. Result:Out= B’C’D’+A’B’D’+ABCD

Often times there is more than one minimum cost solution to a simplification problem. Such is the case illustrated below.

Larger 4-variable Karnaugh Maps - InstrumentationTools (7)

Both results above have four product terms of three Boolean variable each. Both are equally validminimal costsolutions. The difference in the final solution is due to how the cells are grouped as shown above. A minimal cost solution is a valid logic design with the minimum number of gates with the minimum number of inputs.

Below we map the unsimplified Boolean equation as usual and form a group of four as a first simplification step. It may not be obvious how to pick up the remaining cells.

Larger 4-variable Karnaugh Maps - InstrumentationTools (8)

Pick up three more cells in a group of four, center above. There are still two cells remaining. the minimal cost method to pick up those is to group them with neighboring cells as groups of four as at above right.

On a cautionary note, do not attempt to form groups of three. Groupings must be powers of 2, that is, 1, 2, 4, 8 …

Below we have another example of two possible minimal cost solutions. Start by forming a couple of groups of four after mapping the cells.

Larger 4-variable Karnaugh Maps - InstrumentationTools (9)

The two solutions depend on whether the single remaining cell is grouped with the first or the second group of four as a group of two cells. That cell either comes out as eitherABC’orABD, your choice. Either way, this cell is covered by either Boolean product term. Final results are shown above.

Below we have an example of a simplification using the Karnaugh map at left or Boolean algebra at right. PlotC’on the map as the area of all cells covered by addressC=0, the 8-cells on the left of the map. Then, plot the singleABCDcell. That single cell forms a group of 2-cell as shown, which simplifies to P-termABD, for an end result ofOut = C’ + ABD.

Larger 4-variable Karnaugh Maps - InstrumentationTools (10)

This (above) is a rare example of a four variable problem that can be reduced with Boolean algebra without a lot of work, assuming that you remember the theorems.

Larger 4-variable Karnaugh Maps - InstrumentationTools (2024)

References

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6604

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.