BitForge

Digital logic, from first principles

From NAND gates to a working CPU.

BitForge is a hands-on logic lab in your browser. Drag gates onto a circuit board, wire them with copper traces that glow when a signal flows, and climb a campaign that turns one humble NAND gate into adders, memory and finally an 8-bit computer running real assembly.

  • 18levels
  • 30+parts
  • 0sign-ups

Meet the universal gate

Every circuit in BitForge — yes, even the CPU — can be built from this one gate. Flip the inputs:

Everything you need to build a computer (except a soldering iron)

Circuit editor

Gates, switches, buttons, clocks, LEDs, 7-segment, hex and 8×8 matrix displays. Orthogonal wires, pan & zoom, box-select, undo/redo, copy/paste.

Real-time simulation

Event-driven, one gate delay at a time. Slow it down to Slow-mo and watch signals travel the traces like little copper comets.

18-level campaign

NOT → XOR → MUX → adders → ALU → latches → flip-flops → registers → counter → RAM → CPU. Auto-checked test vectors, hints and stars.

Custom chips

Seal any circuit into a reusable chip with named pins. Nest them, export them, share them as JSON.

CPU Lab

An 8-bit CPU with an assembler, registers, flags and memory views. Step micro-instructions and watch the datapath light up.

Truth tables & K-maps

Generate the truth table of any circuit, simplify it with a Karnaugh map, then auto-build the minimal circuit.

The road to silicon

  1. NAND
  2. NOT
  3. AND
  4. OR
  5. XOR
  6. MUX
  7. ADDER
  8. ALU
  9. LATCH
  10. FLIP-FLOP
  11. REGISTER
  12. RAM
  13. CPU

Begin at the beginning