Verilog-HDL, SystemVerilog and Bluespec SystemVerilog support for VS Code with Syntax Highlighting, Snippets, Linting and much more!
This extension uses the tags created using Ctags to provide many of its features. It is recommended to use Universal Ctags as it supports SystemVerilog also, compared to Exuberant Ctags and other older versions. The tags are stored in memory and not as separate files.
verilog.linting.linter
(Default: none
)
Choose the linter for you. Possible values are
iverilog
xvlog
modelsim
verilator
none
verilog.linting.iverilog.arguments
(Default: nothing)
Add custom arguments to Icarus Verilog for linting, like -Wall
. The argument -t null
will be added by the linter automatically.
verilog.linting.iverilog.runAtFileLocation
(Default: false
)
By default, the linter will be run at the workspace directory. Enable this option to run at the file location. If enabled, `include
directives should contain file paths relative to the current file.
verilog.linting.modelsim.arguments
(Default: nothing)
Add custom arguments to Modelsim for linting.
verilog.linting.modelsim.work
(Default: nothing)
Add custom work library to Modelsim for linting.
verilog.linting.verilator.arguments
(Default: nothing)
Add custom arguments to Verilator for linting, like -Wall
. The argument --lint-only -I<document folder>
will be added by the linter automatically.
verilog.linting.verilator.runAtFileLocation
(Default: false
)
By default, the linter will be run at the workspace directory. Enable this option to run at the file location. If enabled, `include
directives should contain file paths relative to the current file.
verilog.linting.verilator.useWSL
(Default: false
)
Run verilator under WSL (use apg-get install verilator
to install). Paths generated automatically by the
extension (the path to the Verilog file as well as the auto-generated document folder for -I
) are translated
to WSL paths using the wslpath
program. Any other paths you specify in verilog.linting.verilator.arguments
must be manually converted.
verilog.ctags.path
(Default: ctags
)
Path to your installation of Ctags if it isn't already present in your PATH
environment variable.
verilog.languageServer
(Default: none
)
Select the Language Server. Currently supports svls .
Make sure svls
is in your$PATH
environmental variable.
Experimental support.
verilog.logging.enabled
(Default: false
)
Enable logging for this extension. Open the Output pane in VS Code and choose Verilog in the drop-down menu to view the log.
If you have tested the linters in new platforms or have issues with them, feel free to file an issue.