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.
Digital logic, from first principles
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.
Every circuit in BitForge — yes, even the CPU — can be built from this one gate. Flip the inputs:
Gates, switches, buttons, clocks, LEDs, 7-segment, hex and 8×8 matrix displays. Orthogonal wires, pan & zoom, box-select, undo/redo, copy/paste.
Event-driven, one gate delay at a time. Slow it down to Slow-mo and watch signals travel the traces like little copper comets.
NOT → XOR → MUX → adders → ALU → latches → flip-flops → registers → counter → RAM → CPU. Auto-checked test vectors, hints and stars.
Seal any circuit into a reusable chip with named pins. Nest them, export them, share them as JSON.
An 8-bit CPU with an assembler, registers, flags and memory views. Step micro-instructions and watch the datapath light up.
Generate the truth table of any circuit, simplify it with a Karnaugh map, then auto-build the minimal circuit.
Guided campaign
Each level gives you labelled input switches and output LEDs. Build the circuit in between, run the tests, earn up to three stars for using few parts. Solved chips become built-in parts for later levels.
Mouse: drag from a pin to another pin to wire. Click a switch to toggle it. Scroll to zoom. Right-drag or Space-drag to pan. Keyboard: Ctrl+Z undo, Ctrl+Y redo, Ctrl+D duplicate, plus and minus to zoom, 0 to fit.
An empty board.
The silence of a million possible circuits. Drag a part from the palette — or start from an example.
CPU Lab
256 bytes of RAM, an accumulator, two flags and fifteen instructions. Write assembly, assemble it, then step one bus transfer at a time and watch the datapath light up.
Highlights: PC MAR write program
Bench tools
Flip bits between bases, then boil Boolean expressions down to their simplest form with a Karnaugh map.
About
Because it is the most satisfying “aha” in all of engineering. Computers feel like magic until you build one yourself — then they feel like something even better: something you understand. BitForge is an original take on the classic “first principles” journey: start with a single NAND gate and keep abstracting until you reach a machine that runs programs.
Every gate has one unit of delay. When a signal changes, only the parts that listen to it are re-evaluated in the next step — an event-driven simulation. Feedback loops (latches!) are allowed; a circuit that never settles is flagged as oscillating. Custom chips run their inner circuit as a nested simulation, so they can hold state too.
| Tab / Shift+Tab | Select next / previous part (canvas focused) |
|---|---|
| Arrows (Shift = ×5) | Move the selection, or pan when nothing is selected |
| Enter / Space | Toggle a switch / press a button |
| Delete | Delete the selection |
| Ctrl+Z / Ctrl+Y | Undo / redo |
| Ctrl+C / V / D / A | Copy / paste / duplicate / select all |
| + / − / 0 | Zoom in / out / fit |
Wiring without a mouse: select a part and pick each input’s source in the Inspect panel.
Everything lives in your browser’s localStorage: no accounts, no servers, no trackers. Use Export to keep circuits as JSON files. All sample programs and circuits are fictional and made for BitForge.