Atom linter for Verilog/SystemVerilog, using Icarus Verilog, Slang, Verible, or Verilator.
apm install linter-veriloghdl
.C:\msys64\mingw64\bin\verilator_bin.exe
for "Verilator Executable".Icarus Verilog does support as much of SystemVerilog as the other tools, but for linting this compiler may suffice. Most likely, you will want to add the -g2012
option to iverilog in the package settings if linting SystemVerilog.
On Linux, you can install it using your package manager: eg. apt install iverilog
On macOS, you can use homebrew: brew install icarus-verilog
On Windows, the easiest way to install Icarus Verilog is using a pre-built installer, like those available here: https://bleyer.org/icarus/.
On Linux, you can download a binary from https://github.com/MikePopoloski/slang/releases/latest
On macOS, compiling from source is necessary. Slang has no provided binary for macOS. Instructions for compiling slang from source can be found at https://sv-lang.com/building.html
On Windows, you can download a binary from https://github.com/MikePopoloski/slang/releases/latest (this is the same place as for Linux binaries).
On Linux, you can download a binary from https://github.com/google/verible/releases/latest
On macOS or Windows, you can try compiling from source. See https://github.com/google/verible
On Linux, you can install Verilator using your package manager: eg. apt install verilator
On macOS, you can use homebrew: brew install verilator
On Windows, you can obtain Verilator through MSYS2, or compile it from source using MinGW or Cygwin. Instructions for installing Verilator on Windows are included with this package in verilator-install-windows.md. There are instructions for installation with MSYS2 and for compiling Verilator from source with Cygwin.
Note that GTKWave is not necessary for linting, even though it may be bundled with intstallers or suggested by documentation for the compilers.
This package is based on the linter-verilog and linter-verilator packages for Atom, along with a few of their forks. Thanks to the authors of these packages!
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.