mshr-h / vscode-verilog-hdl-support

HDL support for VS Code
MIT License
296 stars 78 forks source link

Adding include path for fiding macros #144

Open lucasbrasilino opened 3 years ago

lucasbrasilino commented 3 years ago

Hello,

How can I add an include path in a way that macros will be found using F12 ? I'm pretty new to vscode so I'm not sure this is a vscode or Verilog-HDL configuration.

For instance, I'm including in my verilog code a file like:

`include "axi_atomic_op.vh"

The include file is in a include directory at the same level of my verilog file. Due to other project configurations, I rather prefer not using relative path, like `include "../include/axi_atomic_op.vh

As you can see, macros definitions are not found: macro_definition_not_found

For linting, I'm using verilator and added the configuration:

"verilog.linting.verilator.arguments": "-I/home/lucas/<path_to_the_project>/include"

So macros in axi_atomic_op.vh are found for linting.

Any help here? Thanks in advance!

rkaletka commented 3 years ago

+1

MahmoudKMaarouf commented 1 year ago

+1