Open inputs read as 0. Each pass, every gate reads the values from the previous pass. When a pass changes nothing, that result is shown. A loop that keeps flipping shows X. A D flip-flop copies D to Q on the rising edge of CLK and then holds it. The JK flip-flop is a module built from that flip-flop. New here? Read the short guides.
About this simulator
This is a free logic gate simulator that runs in your browser with nothing to install. Drag gates from the palette onto the board, wire outputs to inputs, click an input to flip it, and watch the signals propagate: a wire shows green when it carries a 1. The side panel lists the Boolean formula of every output and the full truth table of the circuit, recomputed on every change, so you can check a design against a specification row by row.
Seven gate types are available: NOT, AND, OR, XOR, NAND, NOR and XNOR. For sequential logic there is a D flip-flop that copies D to Q on the rising edge of CLK, a Pulse CLK button that produces one clean clock pulse, and a module system: build a circuit on its own sheet, save it as a module, and place copies of it in a larger design. The JK flip-flop example is a module built from the D flip-flop, and a four-bit adder is four full-adder modules in a row. Your board is saved in this browser between visits.
The Examples menu loads a half adder, XOR from basic gates, a feedback loop that never settles, and the JK flip-flop. Each of the Learn guides opens its circuits here. When you want a target to build toward, today's puzzle uses this same editor with a truth table to match and a gate count to beat.