MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How to simplify logic functions with Karnaugh maps
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How to simplify logic functions with Karnaugh maps

A Karnaugh map lays the truth table out on a grid so adjacent cells differ by one variable, letting you merge minterms visually instead of grinding through Boolean algebra.

1. How it works

Rows and columns follow Gray code order, including wrap around between opposite edges, so any rectangular group of 1s that is a power of two drops the variables that change inside the group. Bigger groups mean fewer literals, so always grab the largest legal circle and let circles overlap.

2. Practice and pitfalls

Mark don t care terms as wildcards that may join any circle to make it larger, but never let them change the required function. Circle the 0s instead to read off the inverted function, then invert again for the original form. Above four variables the method gets clumsy, so switch to algebraic or CAD tools.

3. Karnaugh map rules quick table

RuleKey pointNote
LayoutGray codeedges wrap around
Shape2^n rectangleno L shapes
Sizebiggest circlefewest literals
Dont carewildcardnever change function
Circle 0sinverted forminvert back after
Trapmiss wrap edgesleftover term

4. Notes

Keep the map in Gray order, circle only power of two rectangles, use every 1 at least once and let overlaps shrink terms; don t cares enlarge circles freely but the function must stay intact.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Logic simplification per GB/T 4728; control circuits to GB/T 5226.1 and IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Not Gray order misjudges adjacency and merges wrong terms
② Missing wrap around edge 1s leaves the simplification incomplete
③ Circling non power of two L shapes is illegal and merges wrongly

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL