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

Question: Recursively reading files from verilog-library-flags #1454

Closed
veripoolbot opened this issue Jun 5, 2019 · 3 comments
Closed

Question: Recursively reading files from verilog-library-flags #1454

veripoolbot opened this issue Jun 5, 2019 · 3 comments
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Berk Akinci
Original Redmine Message: 2970 from https://www.veripool.org


Is there a way to get "verilog-library-flags" to recursively read files?
Use example:

top.v:

module
.
.
.
endmodule
// Local Variables:
// verilog-library-flags:("-f ./modulepathflags.vc")
// End:

modulepathflags.vc:

-f CommonStuff/modulepathflags.vc
-f SpecificStuff/modulepathflags.vc
-y Some/Specific/Path

I experimented with -f flags within the vc file, but I couldn't get verilog-mode to follow them through.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-06-06T01:18:20Z


The -f's definitely work recursively. The classic problem is they aren't properly relative to the file calling them (e.g. your module doesn't have a CommonSuff directory, but rather a ../CommonStuff. Perhaps you want to use -F instead.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Berk Akinci
Original Date: 2019-06-06T02:16:49Z


Thank you. That's probably it!
You're right; I removed that vital piece of information while trying to simplify the example. I am actually trying to use things like "-f ../modulepathflags.vc".
I will try the -F tomorrow.
This could be a nice addition to the FAQ examples of the verilog-library-flags.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-06-06T09:51:38Z


Good point, FAQ note added.

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

1 participant