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

[BUG] Option to execute xvlog at file location #436

Open
andreiGeorgian opened this issue Aug 7, 2023 · 1 comment
Open

[BUG] Option to execute xvlog at file location #436

andreiGeorgian opened this issue Aug 7, 2023 · 1 comment
Labels

Comments

@andreiGeorgian
Copy link

Describe the bug

The use case is for SystemVerilog classes and packages. Let P be the main package (./pkg.sv):

  • P includes the next files (classes): ./transaction/c0.sv, ./transaction/c1.sv, ..... ./transaction/c15.sv
  • if the class files also include some file from upper directory (../ , being the same dir that contains pkg.sv), then xvlog will create an internal path that is very long: ./transaction/../transaction/../transaction/../transaction/../transaction.......

The only solution that I found is to run xvlog from the same directory as the file being opened. This feature is already implemented for verilator linter. I went to extension man.js file, got the code from verilator implementation and used it to xvlog. Now is working Ok.
Can we have this option in the feature?

@mshr-h
Copy link
Owner

mshr-h commented Aug 14, 2023

@andreiGeorgian
Ok. Sounds good to me. Can you make the PR?

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

No branches or pull requests

2 participants