Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding include path for fiding macros #144

Open
lucasbrasilino opened this issue Mar 26, 2021 · 2 comments
Open

Adding include path for fiding macros #144

lucasbrasilino opened this issue Mar 26, 2021 · 2 comments

Comments

@lucasbrasilino
Copy link

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
Copy link

+1

1 similar comment
@MahmoudKMaarouf
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants