Skip to workspace
PixelOkay
● Private · Runs in browser
Tools
CIRCUIT LAB / INTERACTIVE STUDIO

Digital Logic Simulator

Build circuits, test 4-bit logic, debug signals and create teaching diagrams.

Local workspace
Ready
100%
Pin clicks connect wires · current signal values are shown live
SCHEMATIC VIEW · Scroll canvas to pan
0 components0 wires
DEBUG & ANALYZE

Signal waveform

Binary history over manual input changes and clock steps.

0 samples
PIXELOKAY · LEARN BY BUILDING

From basic gates to stateful circuits.

Try the half adder, a rising-edge flip-flop, or a four-bit register. All signal calculations are performed on your device.

0 / 1 / XSignal states
4-bitRegister width
256Truth-table rows

Using Digital Logic Simulator

Choose a sample or place components, connect compatible pins and adjust inputs. Recalculate combinational outputs or pulse the clock to explore memory. Inspect waveforms or a supported truth table and download JSON to keep an editable backup.

Four-bit buses use MSB-first binary strings and exact-width connections. Adders calculate carry; counters and shift registers update on a known rising edge. New project fields are versioned without altering imported V1 circuits. States are ideal 0, 1 or unknown X, without physical propagation delay or accurate hardware timing. Auto clock playback is approximate; combinational truth tables support at most eight switches. Structural changes clear waveform history, which is not saved in JSON. Browser storage and multi-tab conflict handling are best effort.

Choose an editable circuit, diagram or logic table

Practice: compare two switch inputs

  1. Open a simple combinational example or connect two switches to a supported gate.
  2. Change the inputs and inspect the resulting logical states.
  3. Use a supported truth table, then save JSON before changing the circuit structure.

This is an authored logic exercise, not a propagation-delay test or a hardware waveform capture.

Digital logic questions

Does the waveform show accurate physical gate timing?

No. States are ideal 0, 1 or unknown X, with supported rising-edge updates. Physical propagation delay and accurate real-time hardware timing are not modeled.

Why are a large truth table or old waveforms unavailable?

Combinational truth tables are bounded to eight switches. Structural changes clear waveform history, which is not saved in JSON. Keep supported CSV output separately when you need it.

Four-bit buses, adders and sequential counters

Choose 4-bit adder, 4-bit counter or Bus join / split in Sample circuits, or build your own from the expanded component palette. Bus pins have an exact four-bit width and use B3…B0 (most significant to least significant) notation. An unconnected bus becomes XXXX; known carry and partial unknown values are evaluated conservatively. An existing single-bit wire will not silently connect to a four-bit input.

Run experiments and watch internal signals

Switch to Circuit Engineering to watch any supported input or output pin, step or run up to 16 cycles at a time and download a CSV of discrete logic samples. These are ideal clock steps, not measured nanoseconds, propagation delays or analog waveforms. The waveform history is a bounded in-memory ring buffer.

Create a digital logic lesson

Teach & Present provides six working starter lessons for a half adder, full adder, four-bit counter, four-bit addition, shift register and bus order. Check results against specific binary input vectors or pulse sequences; the score reports observed matches, not formal hardware verification. Add a caption and download annotated 16:9 or 9:16 PNG lesson frames with actual circuit output values. The project JSON restores the editable circuit and supported V3 watch and teaching settings.

What this simulator does not model

The circuit engine is deterministic educational 0/1/X logic. It is not an HDL simulator, transistor-level/analog SPICE engine, physical timing analyzer or FPGA signoff tool. No VCD, MP4, WebM, independent physical clocks, nested subcircuit execution or high-impedance multi-driver nets are claimed. Projects stay local; browser storage is best-effort, so download JSON backups before clearing site data.

Related tools