vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Modelsim can't find other files when linting

Open Tsegorah1 opened this issue 3 years ago • 3 comments

Modelsim does not see other files in a library. I've created "xil_defaultlib" to use VSC from Vivado. GHDL works fine with it as a linter. But modelsim throws an error for both .vhd and .sv files.

  • OS: Windows 10
  • VSCode version 1.69.0 image image

Tsegorah1 avatar Jul 11 '22 07:07 Tsegorah1

Currently it's not supported. ModelSim only lints the current file.

qarlosalberto avatar Jul 24 '22 18:07 qarlosalberto

Then which linter is fully supported now for systemverilog? Seems like icarus has the same restriction.

Tsegorah1 avatar Jul 28 '22 12:07 Tsegorah1

For now all the linters have the same restriction.

qarlosalberto avatar Jul 28 '22 13:07 qarlosalberto

If anyone is still waiting for this feature as a workaround you can disable linting of TerosHDL and use the linting of this extension. TerosHDL and it can coexists without any problems.

For icarus verilog just pass the directories as an argument: -y ./ , -y ./rtl

hakan-demirli avatar Nov 16 '22 23:11 hakan-demirli