4 Variable K-Map in Digital Electronics (2024)

4 Variable K-Map in Digital Electronics (1)

  • Data Structure
  • Networking
  • RDBMS
  • Operating System
  • Java
  • MS Excel
  • iOS
  • HTML
  • CSS
  • Android
  • Python
  • C Programming
  • C++
  • C#
  • MongoDB
  • MySQL
  • Javascript
  • PHP
  • Physics
  • Chemistry
  • Biology
  • Mathematics
  • English
  • Economics
  • Psychology
  • Social Studies
  • Fashion Studies
  • Legal Studies
  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • HR Interview Questions
  • Computer Glossary
  • Who is Who

Digital ElectronicsK-Map

'; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });

Several techniques have been developed to simplify a complex Boolean expression into its simplest form. K-Map or Karnaugh Map is one of such minimization or simplification techniques.

The K-Map or Karnaugh Map is a graph or chart which composed of an arrangement of adjacent cells. Where, each cell of the K-Map represents a particular combination of variables in either sum or product form. The K-map can be used to simplify Boolean functions involving any number of variables. But, the simplification of a Boolean function using K-map becomes tedious for problems involving five or more variables. Therefore, in actual practice, the K-map is limited to six variables.

The number of cells in a K-map depends upon the number of variables in the given Boolean function. A K-map will have 2n cells or squares, where n is the number of variables in the Boolean expression. Therefore, for a two variable function, the K-map will have 22 = 4 cells, for a three variable Boolean function, the K-map will have 23 = 8 cells, and for four variable Boolean function, the K-map will have 24 = 16 cells, and so on.

In this article, we will discuss four variable K-Map and will use it to simplify Boolean functions in 4 variables.

Four Variable K-Map

A four variable K-map is used to simplify a complex Boolean expression in 4 variables. As we know, a four variable Boolean expression can have 24 = 16 possible combinations of variables.

For example, in SOP (Sum of Products) Form,

f(A,B,C,D)=A̅B̅C̅D̅+A̅B̅C̅D+A̅B̅CD̅+⋯+ABCD

The minterm representation of this expression is as follows,

$$\mathrm{f(A,B,C,D)=m_0+m_1+m_2+\dotso+m_{15}}$$

In POS (Product of Sums) Form,

$$\mathrm{f(A,B,C,D)=(A+B+C+D)(A+B+C+\overline{D} )(A+B+\overline{C}+\dotso\dotso(\overline{A}+\overline{B}+\overline{C}+\overline{D})}$$

The maxterm representation of this expression is as,

$$\mathrm{f(A,B,C,D)=M_0.M_1.M_2\dotso M_{15}}$$

A 4 variable K-map has 16 cells, where each cell represents either a minterm or a maxterm of the function. The SOP (Sum of products) form and POS (Product of Sums) form of a four variable Boolean expression is shown in Figure 1.

4 Variable K-Map in Digital Electronics (30)

Here, the binary number designations of the columns and rows are in the Gray code. This is known as adjacent ordering. In these K-maps, the binary numbers along the left side of the map indicate the conditions of variables A and B along any row, and the binary numbers along the top of the K-map indicate the conditions of the variables C and D along any column. The decimal numbers in the bottom right corners of the cells indicate the minterm or maxterm designation.

Now, let us consider an example to illustrate the utilization of the 4 variable K-map for simplification of a Boolean function.

Example 1

Simplify the following Boolean expression using the 4-variable K-map.

$$\mathrm{f\lgroup A,B,C,D\rgroup=\sum m\lgroup 2,3,6,7,8,10,13,15\rgroup}$$

Solution

The SOP K-map representation of the given Boolean function is shown in Figure 2.

4 Variable K-Map in Digital Electronics (31)

Explanation

The simplification of the function is done as per the following steps −

  • There are no isolated 1s in the K-Map.

  • The minterm m2 can form a 4-square with m3, m6, and m7. Make it and read it as (A̅C).

  • The minterm m8 can form a 2-square with m10. Make it and read it as (ABD̅).

  • The minterm m13 can form a 2-square with m15. Make it and read it as (AB̅D).

  • Write all the product in SOP form.

So the simplified SOP expression is,

f(A,B,C,D)=A̅C+AB̅D+ABD̅

Example 2

Minimize the following Boolean expression using the 4-variable K-map.

f(A,B,C,D)=ΠM(4,6,11,14,15)

Solution

The POS K-map representation of the given Boolean function is shown in Figure 3.

4 Variable K-Map in Digital Electronics (32)

Explanation

In minimization of the given function is done as per the following step −

  • There are no isolated zeros in the K-map.

  • The maxterm M4 can form a 2-squate with M6. Make it and read it as (A+B̅+D).

  • The maxterm M11 can form a 2-square with M15. Make it and read it as (A̅+C̅+D̅).

  • Now, only maxterm M14 is left. M14 can form 2-square with M6 or M15. If we make it with M15, then read it as (A̅+B̅+C̅).

  • Finally, write all the sum terms in POS form.

So, the reduced POS expression of the given Boolean function is,

f(A,B,C,D)=(A+B̅+D)(A̅+C̅+D̅ )(A̅+B̅+C̅)

Tutorial Problems

Q1.Reduce the following Boolean function using 4-variable K-map

$$\mathrm{f\lgroup A,B,C,D\rgroup=\sum m\lgroup 0,1,2,5,8,10,11,13,14,15\rgroup }$$

Q2.Minimize the following Boolean expression using 4-variable K-Map.

$$\mathrm{f\lgroup A,B,C,D\rgroup=\prod M\lgroup 0,2,8,10,11,13,15\rgroup}$$

Conclusion

This is all about the 4 variable K-map and its application to minimize a Boolean expression into its minimal form. From the above discussion, we can conclude that the 4-variable K-map is a graphical representation of a Boolean expression involving 4 variables and is represented in standard SOP or POS form. This is used to convert a standard SOP or POS form, or minterm form or maxterm form of a 4-variable Boolean expression into its minimal SOP or POS form.

Manish Kumar Saini

Updated on: 05-Sep-2023

6K+ Views

Related Articles

  • Creating a variable with dynamic variable type in SAP ABAP
  • How to map an Object of objects to a SAP List?
  • How variable scope works in Python function?
  • How to concatenate variable in a string in jQuery?
  • How to use a variable in a string in jQuery?
  • How to use variable-length arguments in a function in Python?
  • How to use a global variable in a Python function?
  • How to pass a variable to an exception in Python?
  • How do I check if a Python variable exists?
  • How to pass a variable into a jQuery attribute-contains selector?
  • Assign image source dynamically in XML View in Fiori app in SAP UI5
  • Filter output columns in Table in SAP application
  • Analogous to IN operator of SQL in SAP
  • In SAPUI5, how two add two icons in StandardListItem
  • Error in JavaServer Faces JSF application in SAP NWDS
  • Add Authentication details in the AJAX request in SAPUI5
Kickstart Your Career

Get certified by completing the course

Get Started

4 Variable K-Map in Digital Electronics (34)

Advertisem*nts

';adpushup.triggerAd(ad_id); });

4 Variable K-Map in Digital Electronics (2024)

References

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6602

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.