⚡ LogicLab: Logic Gate Lab

⚡ 4-variable truth table a b c d fixed · f toggles (0/1/X)

a b c d f
📊 Interactive Karnaugh Map (ab ↓ cd →)
00 01 11 10
👆 Click any cell to cycle 0 → 1 → X • Live sync with truth table
🔹 Canonical SOP (Minterms)
🔸 Canonical POS (Maxterms)
✨ Simplified SOP
✨ Simplified POS
⚡ click any f or K-map cell to cycle: 0 → 1 → X
⚡ ready
×

How to use LogicLab – Logic Gate Lab

1. Define your function
Click cells in the truth table or Karnaugh Map to set f = 0 / 1 / X. Expressions update instantly.

2. Karnaugh Map
Visual tool for simplification – click cells, watch SOP and POS change live.

3. Build circuit
Click “Build from SOP” – automatically creates a clean two-level circuit from the simplified SOP expression.

4. Simulate & edit
Add gates, wire (output → input), toggle simulation. Right-click any component to delete.

5. Save / Load
Use the toolbar buttons to save your circuit to a JSON file or load a previously saved one. Undo/Redo works on both circuit and truth table.

Perfect for learning Boolean algebra, K-maps, and gate-level design. Enjoy!