Logic Sim

Simulate digital logic circuits written as code, with a gate list, timing trace and schematic, free in your browser.

electronicssimulationeducationdeveloper toolsopen source
Platforms
Web
Pricing Free

Logic Sim is an online digital logic circuit simulator where you describe the circuit as code instead of drawing it. You write modules in a small Verilog-like language using gates such as and and or, run a compile, and then simulate. A testbench section sets the input values at chosen time points.

The editor is CodeMirror-based, with error reporting, smart indentation and code folding. Results appear in separate tabs: a table of the generated gates, a graph view, a trace of the signals over time and a schematic view. Ready-made examples are included, among them a one-hot decoder, a seven-segment display, a 2-to-1 mux, a demux, a ripple counter and a bit adder.

It is a free, open-source project by dkilfoyle on GitHub, built around Francis Stokes's Digital Circuit Simulator, and it runs in the browser with no account. The repository marks this version as deprecated in favor of a newer Logic 2. The interface is in English.