Boolean Algebra & K-Maps

Boolean algebra lets you simplify logic before building it. Learn the laws (identity, complement, distributive, absorption), De Morgan's theorems, SOP and POS forms, minterms and maxterms, Karnaugh maps with don't-cares, and how simplification saves gates, power and delay.

A logic function can be written in many equivalent ways. Simplifying it reduces the number of gates, chip area, power and delay. Karnaugh maps give a visual method for up to 4–5 variables; software (Espresso, synthesis tools) handles larger ones.

An analogy

Boolean simplification is like simplifying fractions: 6/8 and 3/4 are equal, but the simpler form is cheaper to work with.

Laws

Commutative, associative, distributive (including A + BC = (A + B)(A + C)), idempotent (A + A = A), involution ((A′)′ = A). De Morgan converts between AND/OR forms — essential for NAND/NOR implementations.

Canonical forms

Sum of products (SOP) = OR of AND terms, built from minterms where F = 1. Product of sums (POS) = AND of OR terms from maxterms where F = 0. SOP maps directly to NAND–NAND logic.

Karnaugh maps

Cells are ordered in Gray code so neighbours differ by one variable. Group 1s in rectangles of 1, 2, 4, 8… (wrapping around edges); each group eliminates variables. Use don't-cares (x) to make larger groups.

Hazards and automation

Minimal SOP can create static hazards (glitches) — adding a redundant consensus term removes them. Quine–McCluskey and Espresso algorithms minimise large functions; synthesis tools optimise for area, delay and power.

Formulas

Worked example: Algebraic simplification

Given: F = AB + AB′ + A′B

Find: Minimal form.

Answer: F = A + B

Worked example: K-map

Given: F(A,B,C) = Σm(1,3,5,6,7)

Find: Minimal SOP.

Answer: F = C + AB (2 terms instead of 5)

Common mistakes

Applications

Key takeaways

Going further