# Verilator

Verilog and SystemVerilog compiler producing C\+\+ or SystemC simulation models\.

ID: Q50 · Revision: 34

Type: software · License: LGPL\-3\.0 or Artistic\-2\.0[^ver-license] · Status: active

Website: https://verilator.org/



Verilator is an open\-source compiler for Verilog and SystemVerilog hardware descriptions\. It generates C\+\+ or SystemC code that becomes an executable simulation after compilation\. This workflow suits HDL\-based verification and integration with software test harnesses, rather than interactive schematic drawing\.[^ver-over]

## Compiled simulation

A typical workflow processes the HDL, enables desired tracing or coverage features and compiles the generated code with the runtime and a driving program\. The simulation executable then runs the design\. Although a custom C\+\+ wrapper is common, it is not universally required: current documentation describes generated main\-program support for suitable timing\-enabled simulations\. Build configuration and the testbench are therefore part of the reproducible design environment, not incidental files\.[^ver-over][^ver-lang]

## Compatibility boundaries

Verilator is mostly a two\-state simulator, so unknown\-value handling differs from conventional four\-state semantics\. Its language guide documents partial verification\-language support and timing limitations, including ignored specify\-block timing checks\. Current timing support also means older blanket claims that Verilator cannot handle delays are misleading\. A replacement decision must examine the constructs and initialization behavior used by the actual testbench rather than rely only on the SystemVerilog label\.[^ver-lang]

## Results and licensing

Waveform tracing can produce outputs for external inspection, while the original HDL and harness remain necessary to rerun the test\. Verilator offers LGPLv3 or Artistic License 2\.0 licensing for its internals\. The project's FAQ distinguishes that software from users' own HDL, C\+\+ and interface code, which retain their own licenses\. Third\-party IP is a further constraint: the language guide says encrypted RTL is not directly usable\.[^ver-faq][^ver-license][^ver-lang]

## Platforms and alternatives

The project documents Linux, macOS and other supported build environments; its Windows guidance favors WSL2, with qualifications around alternative toolchains\. It can replace [Icarus Verilog](/icarusverilog) for supported HDL simulations when a compiled C\+\+ or SystemC workflow is appropriate\. That substitution may require adapting build scripts, timing choices and testbench behavior\. It does not imply identical unknown\-state propagation, complete language coverage or a measured performance advantage for a particular design\.[^ver-platform][^ver-faq][^ic-start][^ver-lang]

## Capabilities and substitutions

### Compiled HDL simulation — supported

Generates C\+\+ or SystemC models for compilation into a simulation executable\.[^ver-over]

Use case: Digital logic design and simulation · Platforms: Linux, macOS, FreeBSD, Windows with supported toolchain · Region: Platform, runtime, language and project\-format requirements apply

### Four\-state equivalence — limited

Mostly two\-state semantics require checking initialization and unknown\-value tests\.[^ver-lang]

Use case: Digital logic design and simulation · Platforms: Linux, macOS, FreeBSD, Windows with supported toolchain · Region: Platform, runtime, language and project\-format requirements apply

### [Substitute for Icarus Verilog](/icarusverilog) — limited

Alternative compiled workflow; testbench constructs, timing and unknown\-state behavior require review\.[^ver-over][^ver-lang][^ic-start]

Use case: Supported Verilog and SystemVerilog simulation · Platforms: Linux, macOS, FreeBSD, Windows with supported toolchain · Region: Platform, runtime, language and project\-format requirements apply

## References

[^ver-license]: [Verilator copyright](<https://verilator.org/guide/latest/copyright.html>) — LGPLv3 or Artistic License 2\.0; separate example terms (vendor; retrieved 2026-10-07T03:42:24Z)

[^ver-over]: [Verilator overview](<https://verilator.org/guide/latest/overview.html>) — C\+\+/SystemC compilation, runtime and trace outputs (vendor; retrieved 2026-10-07T03:41:33Z)

[^ver-lang]: [Verilator input languages](<https://verilator.org/guide/latest/languages.html>) — Timing options, unknown\-state semantics, language limitations and encrypted RTL (vendor; retrieved 2026-10-07T03:41:41Z)

[^ver-faq]: [Verilator FAQ](<https://verilator.org/guide/latest/faq.html>) — Windows recommendations, output ownership and waveform tracing (vendor; retrieved 2026-10-07T03:41:41Z)

[^ver-platform]: [Verilator installation requirements](<https://verilator.org/guide/latest/install.html>) — OS requirements and C\+\+ toolchain dependencies (vendor; retrieved 2026-10-07T03:42:39Z)

[^ic-start]: [Getting started with Icarus Verilog](<https://steveicarus.github.io/iverilog/usage/getting_started.html>) — iverilog compiler, vvp runtime, multi\-file designs and root\-module selection (vendor; retrieved 2026-10-07T03:41:46Z)

Source revision: https://substitutefor.net/entities/Q50?revision=34
