← ProblemsCircuits / Combinational Logic / Karnaugh Map to Circuit

4-variable K-map

15%kmapboolean-algebra

Implement the circuit described by the Karnaugh map below. Columns give a and b, rows give c and d (Gray-code ordered, so adjacent cells differ in one variable; the map also wraps around its edges).

a'b'a'babab'
c'd'1101
c'd1001
cd0111
cd'1100

Look for rectangular groups of 1s sized 1, 2, 4, or 8 — remember groups may wrap across the top/bottom and left/right edges. Any expression that matches the map on all 16 input combinations is accepted.