Online Verilog simulator: how browser-based simulation works
What a Verilog simulator does, how Icarus Verilog and Verilator differ, what changes when the simulator runs in a browser instead of on your machine, and exactly what Vulkos runs.
By the Vulkos team. Updated 5 November 2026.
What a Verilog simulator does
Verilog describes hardware: wires, registers and the logic between them. A simulator takes that description and a testbench, and works out what every signal would do over time if the circuit were built. It is how a designer finds out whether an adder adds, a counter counts and a state machine leaves the state it is supposed to, before any of it is turned into gates or silicon.
The testbench is itself Verilog. It instantiates the design under test, drives its inputs with known values, waits, and compares the outputs with what they should be. A testbench that prints a clear pass or fail is called self-checking, and it is the form every exercise on Vulkos uses.
Simulation answers one question: does the logic behave as the testbench expects? It says nothing about whether the design will meet a clock frequency or how much area it needs. Those answers come from synthesis and physical design, which this article covers at the end.
The two open-source simulators
Nearly every free Verilog simulator in use today is one of two programs. They take different approaches and suit different stages of a project.
| Icarus Verilog | Verilator | |
|---|---|---|
| Approach | Event-driven interpreter. Follows the IEEE 1364 standard closely, including delays and timing controls. | Compiles the design to C++ and runs it as a native program. Cycle-based by default, with optional timing support. |
| Speed | Fast enough for course-sized designs and testbenches. Slows on large designs or long runs. | Often ten to a hundred times faster on large synchronous designs, after a longer compile step. |
| Four-state logic | Yes. Signals can be 0, 1, X (unknown) or Z (high impedance), as the standard defines. | Two-state by default. X and Z are approximated, which can hide uninitialised-register bugs. |
| Lint | Reports syntax and elaboration errors. | A strong lint pass with many warnings about width mismatches, unused signals and latch inference. |
| Language | Verilog-2005 and a subset of SystemVerilog. | Verilog-2005 and a large part of synthesizable SystemVerilog, with assertions and constraints in recent versions. |
| Waveforms | VCD, when the testbench calls $dumpfile and $dumpvars. | VCD or FST, when compiled with tracing enabled. |
| Best for | Learning, small designs, testbenches that use delays, and anything where X propagation matters. | Large designs, long regressions, lint, and projects that already use a C++ or Python test harness. |
Commercial simulators from Cadence, Synopsys and Siemens cover the full SystemVerilog and UVM standards and are the norm in industry. They need a licence and a local or company server install, which puts them out of reach for most students and self-taught learners.
Running the simulator in a browser instead of installing it
A browser-based simulator does not run the simulation in the browser. The editor runs in the browser, and the simulator runs on a server with the toolchain already installed. The output and any waveform file come back to the page. The practical differences from a local install are below.
| In the browser | Installed locally | |
|---|---|---|
| Setup | None. Open a page and run. The same for every student, on any laptop or a Chromebook. | Install the simulator, a waveform viewer and, on Windows, usually WSL or MSYS2. Versions differ between machines. |
| Tool versions | Fixed by the service, so a class sees identical behaviour and error messages. | Whatever each person installed. A testbench that passes on one version can fail on another. |
| Speed | A round trip to the server, typically a few seconds for course-sized designs. | No network latency. Faster for very long simulations on a capable machine. |
| Offline use | Needs a connection. | Works anywhere. |
| Limits | Compute is metered per plan, and very large designs may hit a time limit. | Bounded only by the machine. |
| Checked exercises | A course can run its own testbench against your code and record the result. | You check your own work, or submit files to be marked separately. |
| Next step | Synthesis and layout can run on the same servers with no further setup. | Requires installing a second, larger toolchain (Yosys, OpenROAD, a PDK). |
For a professional who simulates all day, a local install wins on speed and control. For a university lab, a workshop or someone learning on their own, the browser wins because the first hour is spent on Verilog rather than on installation, and because everyone is on the same tools.
What Vulkos runs
Vulkos is a browser platform for learning and doing chip design, built in Bristol in the UK. Its IDE offers both open-source simulators as tools you pick per run, alongside the LibreLane synthesis-to-layout flow. Every run records the tool versions it used, so a result can be reproduced later.
| Tool | What it does | Modes |
|---|---|---|
| Icarus Verilog | Compiles the design and testbench and runs the simulation. Writes a VCD waveform when the testbench asks for one. | Simulate, or Check (elaborate only, to find errors without running). |
| Verilator | Compiles the design to a native binary with timing and tracing enabled, then runs the testbench. Produces waveforms on every run. | Simulate, or Lint (elaborate and report warnings). |
| cocotb | Runs a Python testbench against the Verilog design on either simulator. Used for verification coursework and for labs marked question by question. | Simulate, with Icarus Verilog or Verilator as the engine. |
| Waveform viewer | Opens the VCD from a run in the browser, so a failing test can be traced to the cycle where the output went wrong. | Automatic when a run produces a waveform. |
The simulators run in isolated sandboxes on Vulkos servers, with the design files, the testbench and the output in the browser. A testbench that prints a verdict line is read by the platform, which is how lesson exercises and marked assignments decide pass or fail.
Allowances are per plan. The Free plan includes 60 minutes of toolchain compute a week, up to 15 projects and one run at a time. Pro raises that to 300 minutes, unlimited projects and three parallel runs. Current figures are on the pricing page.
A self-checking testbench
The testbench below exercises a half adder. It drives all four input combinations, compares the outputs with the expected values using the case-equality operator so that an X counts as a mismatch, and prints one verdict line at the end. The $dumpfile and $dumpvars calls produce the waveform. The same pattern scales to a counter or a state machine: instantiate, drive, compare, report.
`timescale 1ns/1ps
module half_adder_tb;
reg a, b;
wire sum, carry;
half_adder dut (.a(a), .b(b), .sum(sum), .carry(carry));
integer errors = 0;
task check(input exp_sum, input exp_carry);
begin
#1;
if (sum !== exp_sum || carry !== exp_carry) begin
errors = errors + 1;
$display("ERROR a=%b b=%b sum=%b carry=%b", a, b, sum, carry);
end
end
endtask
initial begin
$dumpfile("half_adder.vcd");
$dumpvars(0, half_adder_tb);
a = 0; b = 0; check(0, 0);
a = 0; b = 1; check(1, 0);
a = 1; b = 0; check(1, 0);
a = 1; b = 1; check(0, 1);
if (errors == 0) $display("VULKOS_RESULT: PASS");
else $display("VULKOS_RESULT: FAIL");
$finish;
end
endmoduleOn Vulkos the verdict line is what the platform reads. In a lesson it marks the exercise complete; in a group assignment it is recorded against the student. The same file runs unchanged on a local Icarus Verilog install with iverilog -o sim half_adder.v half_adder_tb.v && vvp sim.
What a simulator will not tell you
- Whether the design meets timing. A simulation with a 10 ns clock passes whether or not the logic can be built to switch in 10 ns. Static timing analysis after synthesis answers that.
- How large or how power-hungry the design is. Area and power come from synthesis and placement against a process design kit.
- Whether the testbench is complete. A passing simulation proves the design matches the cases the testbench tried, and nothing more. Coverage is a verification discipline of its own.
- Whether the design is synthesizable. Simulators accept constructs, such as delays and initial blocks, that have no hardware meaning. Lint and synthesis catch those.
On Vulkos the answers to the first two come from running the same project through LibreLane, the open-source RTL-to-GDS flow, on the SkyWater sky130 process. The ASIC design course article describes what that flow involves and how it is taught.
Learning Verilog with a simulator
Vulkos courses use the simulators described here for every exercise. The first three modules of Digital Design Fundamentals are readable without an account and take a beginner from binary and logic gates to a first Verilog module. Introduction to Verilog covers combinational and sequential logic and ends with an ALU. Both check each exercise with a self-checking testbench of the kind shown above.
Sources and further reading
- Icarus Verilog, by Stephen Williams
- Verilator documentation
- cocotb: coroutine-based cosimulation testbench
- IEEE 1364-2005, the Verilog hardware description language standard
- Vulkos documentation: the testbench
- Vulkos documentation: simulation results
Questions
Is there a free Verilog simulator that runs in the browser?
Yes. Vulkos runs Icarus Verilog and Verilator on its servers and shows the output and waveforms in the browser. The Free plan includes one hour of compute a week and up to fifteen projects, which covers a term of coursework simulations. EDA Playground is another browser option built around sharing short snippets.
Which is better for students, Icarus Verilog or Verilator?
Icarus Verilog for learning, because it is an event-driven simulator that follows the language standard closely, supports delays and four-state logic, and gives readable error messages. Verilator for speed and for lint, because it compiles the design to C++ and reports many more warnings. Vulkos offers both, so a course can start on Icarus and move to Verilator when designs grow.
Can I see waveforms from a browser simulation?
Yes. If the testbench calls $dumpfile and $dumpvars, Icarus Verilog writes a VCD file and Vulkos opens it in a waveform viewer. Verilator runs are compiled with tracing on, so they produce waveforms too.
Does Vulkos support SystemVerilog or UVM?
Vulkos teaches and checks Verilog. Verilator accepts a large part of synthesizable SystemVerilog, so SystemVerilog RTL will often compile, but UVM is not supported and is not part of any Vulkos course.
Can I write testbenches in Python?
Yes. The Vulkos IDE runs cocotb testbenches against either simulator. The design stays in Verilog and the test is a Python coroutine that drives signals and checks results.
What happens after simulation?
A simulator only shows that the logic behaves as the testbench expects. To find out whether the design meets timing or how large it is, you run it through synthesis, placement and routing. Vulkos runs the open-source LibreLane flow for that, in the same project.
Other products named on this page belong to their owners and are described from public information as we understand it. Corrections: contact us.