Verilator, Icarus and xezim on the Same Designs: a SystemVerilog Simulator Benchmark
Which open-source SystemVerilog simulator is fastest? It depends on the size of the design and on how long it runs. On a small design run for a million cycles, Icarus Verilog and xezim finish in 1.36 to 1.54 seconds, and Verilator needs 14.48 to 14.91. On a real RISC-V core, Verilator wins every case, even a program of 2,229 cycles.
These are the first results of hdl-simbench, a benchmark that
builds every simulator and every design from source with Bazel and runs
them on the same machine under the same rules.
The runs were made on 2026-11-25, in two windows on the same machine.
The first ran at commit ed4af78.
The second, at commit 6d74d4c, filled three results that
needed more runs; the machine’s CI runners were paused for it.
All the data is in the repository: campaign 1 and
campaign 2.
This article covers SystemVerilog only.
VHDL follows in a second article.
What was compared
Three simulators, all built from source:
- Verilator 5.046 (BCR module 5.046.bcr.6). It translates the design to C++, which a C++ compiler then builds into a program.
- Icarus Verilog 13.0 (13.0.bcr.1). It compiles the design to its own bytecode and interprets it.
- xezim 0.11.7 (0.11.7.bcr.1), a simulator written in Rust, built by its module in the filmil Bazel registry.
The designs come from RTLMeter, Verilator’s own benchmark suite:
- Example, a small demo design, run for 1,000,000 cycles.
- VeeR-EL2, a RISC-V core from CHIPS Alliance, in three configurations: default, hiperf and asic. It runs two programs: “hello”, about 2,230 cycles, and CoreMark.
- Servant, a small SoC around SERV, a bit-serial RISC-V core, in two variants: serv and qerv.
Commercial simulators are not in the comparison. Their licenses commonly forbid publishing benchmark results. The Vivado license does, in section 4(b)(iii) of its EULA.
How it was measured
One hermetic toolchain builds everything: clang 23.1.5 with Chromium’s Debian bullseye sysroot (glibc 2.31). It builds Verilator and Icarus, and it compiles the C++ that Verilator writes for each design. xezim’s module builds xezim’s C code with its own copy of the same clang release. The bench needs no compiler on the machine that runs it.
The rules, all written in the repository’s README:
- The flags. Each simulator uses its default code generation, with no
tracing, coverage or waveforms, and one simulation thread.
Verilator’s model is compiled at
-O2. Every run records its exact command lines. - Passing runs only. RTLMeter’s harness counts the cycles of the design’s main clock. A run counts only when that count and the program’s output match what the case expects. Example alone allows one cycle fewer; the next section explains why.
- One machine. All runs were on one Intel Core i7-7700, pinned to one core. A run was dropped if that core’s hyperthread sibling was more than 25% busy, or if CPU steal was over 1%. These rules were fixed before any VeeR-EL2 result was seen.
- Medians. Each number below is the median of the kept runs: 3 of 3, or 2 of 3 where a run was dropped. “Compile” is the time to prepare the design; for Verilator it includes the translation and the C++ compile. “Run” is the simulation. “Total” is compile plus run.
- The timer. Times come from
/usr/bin/time, which counts in steps of 0.01 seconds. A run shorter than 1 second gives a rough rate, marked “resolution-limited” in the data.
Two numbers: time to finish, and speed
Each simulator does two things: it compiles the design, then it runs it. The two simulator types trade one against the other.
- Verilator compiles slowly, in 14.33 to 75.72 seconds here, because it builds the design into a C++ program. Then it simulates fast.
- Icarus and xezim start almost at once, in 0.00 to 3.74 seconds. Then they simulate more slowly.
So the tables below use two measures:
- Time to finish: compile plus run, in seconds. Lower is better. For a short test, this decides which simulator you wait for less.
- Simulation speed after compiling: cycles per second. Higher is better. For a long simulation, the compile is paid once, and this decides.
A worked example: VeeR-EL2’s “hello” program, in its default configuration. Verilator compiles in 53.36 s and runs in 0.02 s, for 53.38 s. xezim compiles in 2.32 s and runs in 68.34 s, for 70.69 s. Verilator finishes first, although it starts 51 seconds later. Each number is a median over three runs, taken on its own, so a median total can differ from the sum of the median compile and run by a few hundredths of a second.
A small design: the compile decides
On Example, Icarus and xezim win every case. Almost all of Verilator’s time is the C++ compile. Its simulation of a million cycles takes about 0.15 seconds, too short to time well.
Example, 1,000,000 cycles. Time to finish: compile plus run, in seconds (lower is better).
| Test | Verilator | Icarus | xezim |
|---|---|---|---|
| kind_hello | 14.60 s | 1.36 s | 1.53 s |
| kind_user | 14.48 s | 1.38 s | 1.54 s |
| kind_friend | 14.91 s | 1.37 s | 1.53 s |
| of which compile, all three tests | 14.33 to 14.77 s | 0.00 s | 0.00 s |
Example. Peak memory while simulating, in KiB (lower is better).
| Verilator | Icarus | xezim | |
|---|---|---|---|
| all three tests | 2,816 KiB | 6,400 to 6,464 KiB | 35,056 to 36,916 KiB |
For Icarus and xezim, the compile of this design takes less than the timer’s 0.01 second step. xezim counts 999,999 cycles here, and the other two count 1,000,000. In Example, the design ends the simulation from a process that runs on the same clock edge as the harness’s cycle counter. IEEE 1800 lets a simulator run either one first. Verilator and Icarus count that last edge, and xezim stops first. So the bench accepts one cycle fewer on this design, for every simulator.
A real RISC-V core: Verilator wins
On VeeR-EL2, the order flips. Verilator’s compile takes 53.36 to 66.09 seconds. xezim’s takes 2.32 to 3.74 seconds. But xezim then simulates VeeR-EL2 at 16.3 to 33.9 cycles per second. So even “hello”, a program of about 2,230 cycles, finishes sooner on Verilator.
VeeR-EL2, “hello”. Time to finish: compile plus run, in seconds (lower is better). Compile alone in parentheses.
| Configuration | Verilator | xezim |
|---|---|---|
| default, 2,229 cycles | 53.38 s (53.36 s) | 70.69 s (2.32 s) |
| hiperf, 2,231 cycles | 63.25 s (63.21 s) | 140.55 s (3.74 s) |
| asic, 2,229 cycles | 66.14 s (66.09 s) | 76.99 s (2.69 s) |
xezim also needs more memory to simulate this design. The peak memory of its run is 268,228 to 352,600 KiB on “hello”. Verilator’s is 3,840 to 4,224 KiB.
Icarus is not in this table. Icarus 13.0 cannot read VeeR-EL2, because the design uses interface ports with modports, which Icarus does not support.
Throughput: how many cycles per second
To compare speed on CoreMark, the bench stops every simulator at the same cycle. At a cap of 10,000 cycles, the medians are:
VeeR-EL2, CoreMark, first 10,000 cycles. Times in seconds (lower is better); simulation speed in cycles per second (higher is better).
| Configuration | simulator | compile | run | total | cycles/s |
|---|---|---|---|---|---|
| default | Verilator | 52.58 s | 0.14 s | 52.72 s | resolution-limited |
| default | xezim | 2.44 s | 294.76 s | 297.20 s | 33.9 |
| hiperf | Verilator | 64.55 s | 0.18 s | 64.76 s | resolution-limited |
| hiperf | xezim | 3.66 s | 603.19 s | 606.85 s | 16.65 |
| asic | Verilator | 67.67 s | 0.30 s | 67.97 s | resolution-limited |
| asic | xezim | 2.42 s | 298.16 s | 300.42 s | 33.5 |
The hiperf row for xezim and the asic row for Verilator come from the second window. In the first, more than a third of their runs were dropped, and the rules then ask for more runs instead of a median of what is left.
The first 10,000 cycles of CoreMark on VeeR-EL2 are mostly reset and boot. So xezim’s rate here may differ from its rate on the benchmark itself. Verilator’s 10,000-cycle runs are too short to time; its rate comes from the full program below.
Verilator ran the full CoreMark:
VeeR-EL2, full CoreMark on Verilator. Times in seconds (lower is better); simulation speed in cycles per second (higher is better).
| Configuration | cycles | compile | run | total | cycles/s |
|---|---|---|---|---|---|
| default | 5,277,908 | 53.85 s | 53.50 s | 107.34 s | 9.885e+04 |
| hiperf | 4,142,321 | 75.72 s | 66.12 s | 141.84 s | 6.269e+04 |
| asic | 2,276,050 | 74.78 s | 68.31 s | 143.09 s | 3.332e+04 |
The asic row comes from the second window.
xezim did not run the full CoreMark, so its rate on the benchmark itself was not measured. As an extrapolation from its boot-phase rate of 33.9 cycles per second, the 5,277,908 cycles of the default configuration would take about 43 hours. That figure is arithmetic, not a measured run.
Servant: a bit-serial core
Servant runs only on Verilator in this round.
Icarus 13.0 and xezim both reject it, for the same reason.
In serv_state.v, the signal trap_pending is used before it is
declared.
Icarus reports the use before the declaration as an error.
xezim follows IEEE 1800 strictly and rejects it too.
xezim has an option, --relax-use-before-decl, that would accept it, but
the bench gives no simulator such an allowance.
Servant, full CoreMark on Verilator. Times in seconds (lower is better); simulation speed in cycles per second (higher is better).
| Variant | cycles | compile | run | total | cycles/s |
|---|---|---|---|---|---|
| serv | 104,636,599 | 27.45 s | 38.58 s | 66.07 s | 2.712e+06 |
| qerv | 107,456,741 | 31.19 s | 50.29 s | 81.48 s | 2.137e+06 |
SERV handles one bit per clock cycle, so CoreMark needs over 100 million cycles. Verilator simulates this small core at over 2 million cycles per second.
What these numbers do not show
- One machine. All the numbers come from one Intel Core i7-7700. Other machines will give other times.
- One thread. Every simulator ran on one thread. Verilator can run a model on several threads, and this bench did not test that.
- Start-up rates. xezim’s VeeR-EL2 rates come from 10,000-cycle runs, which are mostly reset and boot.
- One xezim build. These numbers are for xezim 0.11.7.bcr.1.
What’s next
- The VHDL simulators, GHDL and NVC, on NEORV32 running CoreMark, in the second article.
Links
- hdl-simbench, the benchmark, with its rules and flags in
the README.
The rules for which runs count were fixed on 2026-11-25, before any
VeeR-EL2 result existed. They were added to the README in commit
6d74d4cand applied unchanged to all the runs. - The data: campaign 1 and campaign 2, each with a summary and the CSV row of every run
- RTLMeter, the designs and the harness
- Verilator, Icarus Verilog and xezim
- xezim, a SystemVerilog Simulator in Rust, Now Builds Under Bazel
Feedback and technical corrections are welcome.