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.
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.
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.
| Rule | Key point | Note |
|---|---|---|
| Layout | Gray code | edges wrap around |
| Shape | 2^n rectangle | no L shapes |
| Size | biggest circle | fewest literals |
| Dont care | wildcard | never change function |
| Circle 0s | inverted form | invert back after |
| Trap | miss wrap edges | leftover term |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.