{"schemaVersion":"1.0","record":{"label":"Verilator","description":"Verilog and SystemVerilog compiler producing C++ or SystemC simulation models.","aliases":[],"kind":"software","website":"https://verilator.org/","overview":"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.","license":"LGPL-3.0 or Artistic-2.0","lifecycle":"active","example":false,"features":[{"name":"Compiled HDL simulation","status":"supported","detail":"Generates C++ or SystemC models for compilation into a simulation executable.","useCase":"Digital logic design and simulation","platforms":["Linux","macOS","FreeBSD","Windows with supported toolchain"],"region":"Platform, runtime, language and project-format requirements apply","evidence":[{"url":"https://verilator.org/guide/latest/overview.html","locator":"C++/SystemC compilation, runtime and trace outputs","retrievedAt":"2026-10-07T03:41:33Z","kind":"vendor"}]},{"name":"Four-state equivalence","status":"limited","detail":"Mostly two-state semantics require checking initialization and unknown-value tests.","useCase":"Digital logic design and simulation","platforms":["Linux","macOS","FreeBSD","Windows with supported toolchain"],"region":"Platform, runtime, language and project-format requirements apply","evidence":[{"url":"https://verilator.org/guide/latest/languages.html","locator":"Timing options, unknown-state semantics, language limitations and encrypted RTL","retrievedAt":"2026-10-07T03:41:41Z","kind":"vendor"}]}],"alternatives":[],"slug":"verilator","draftAlternatives":[{"targetSlug":"icarus-verilog","status":"limited","detail":"Alternative compiled workflow; testbench constructs, timing and unknown-state behavior require review.","useCase":"Supported Verilog and SystemVerilog simulation","platforms":["Linux","macOS","FreeBSD","Windows with supported toolchain"],"region":"Platform, runtime, language and project-format requirements apply","evidence":[{"url":"https://verilator.org/guide/latest/overview.html","locator":"C++/SystemC compilation, runtime and trace outputs","retrievedAt":"2026-10-07T03:41:33Z","kind":"vendor"},{"url":"https://verilator.org/guide/latest/languages.html","locator":"Timing options, unknown-state semantics, language limitations and encrypted RTL","retrievedAt":"2026-10-07T03:41:41Z","kind":"vendor"},{"url":"https://steveicarus.github.io/iverilog/usage/getting_started.html","locator":"iverilog compiler, vvp runtime, multi-file designs and root-module selection","retrievedAt":"2026-10-07T03:41:46Z","kind":"vendor"}]}],"evidence":[{"url":"https://verilator.org/guide/latest/overview.html","locator":"C++/SystemC compilation, runtime and trace outputs","retrievedAt":"2026-10-07T03:41:33Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://verilator.org/guide/latest/copyright.html","locator":"LGPLv3 or Artistic License 2.0; separate example terms","retrievedAt":"2026-10-07T03:42:24Z","id":"ver-license","title":"Verilator copyright","kind":"vendor"},{"url":"https://verilator.org/guide/latest/overview.html","locator":"C++/SystemC compilation, runtime and trace outputs","retrievedAt":"2026-10-07T03:41:33Z","id":"ver-over","title":"Verilator overview","kind":"vendor"},{"url":"https://verilator.org/guide/latest/languages.html","locator":"Timing options, unknown-state semantics, language limitations and encrypted RTL","retrievedAt":"2026-10-07T03:41:41Z","id":"ver-lang","title":"Verilator input languages","kind":"vendor"},{"url":"https://verilator.org/guide/latest/faq.html","locator":"Windows recommendations, output ownership and waveform tracing","retrievedAt":"2026-10-07T03:41:41Z","id":"ver-faq","title":"Verilator FAQ","kind":"vendor"},{"url":"https://verilator.org/guide/latest/install.html","locator":"OS requirements and C++ toolchain dependencies","retrievedAt":"2026-10-07T03:42:39Z","id":"ver-platform","title":"Verilator installation requirements","kind":"vendor"},{"url":"https://steveicarus.github.io/iverilog/usage/getting_started.html","locator":"iverilog compiler, vvp runtime, multi-file designs and root-module selection","retrievedAt":"2026-10-07T03:41:46Z","id":"ic-start","title":"Getting started with Icarus Verilog","kind":"vendor"}],"overviewCitations":["ver-over"],"licenseCitations":["ver-license"],"sections":[{"id":"workflow","heading":"Compiled simulation","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["ver-over","ver-lang"]}]},{"id":"semantics","heading":"Compatibility boundaries","paragraphs":[{"id":"semantics-detail","content":[{"text":"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."}],"citations":["ver-lang"]}]},{"id":"results","heading":"Results and licensing","paragraphs":[{"id":"results-detail","content":[{"text":"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."}],"citations":["ver-faq","ver-license","ver-lang"]}]},{"id":"platforms","heading":"Platforms and alternatives","paragraphs":[{"id":"platforms-detail","content":[{"text":"The project documents Linux, macOS and other supported build environments; its Windows guidance favors WSL2, with qualifications around alternative toolchains. It can replace "},{"text":"Icarus Verilog","targetSlug":"icarus-verilog"},{"text":" 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."}],"citations":["ver-platform","ver-faq","ic-start","ver-lang"]}]}]},"id":"Q50","revision":34,"updatedAt":"2026-10-08T23:18:33Z","sourceUrl":"https://substitutefor.net/entities/Q50?revision=34"}}