Skip to content

Verilator support

eipr edited this page Aug 8, 2019 · 6 revisions

Intro

Verilator compile-support is included with v0.8 and on-wards. It is able to report and highlight errors that Verilator might find in your file. It is also possible run this every save of a file, so that it will work as an in-editor linter. Compilation on save can be turned on from the extensions settings.

Installation

For Verilator support to work, a working version of Verilator is required. If you are on Windows, you do need it natively installed, not on an emulated system or through WSL.

Example

moduleInit_example

Extension settings

  • Verilator Launch Configuration
    • Default: verilator --sv --lint-only --language 1800-2012 --Wall
    • If not in path, replace verilator with the appropriate command
  • systemverilog.verilator.compileOnSave: Boolean, compile files when saved.
    • Default: false
Clone this wiki locally