veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
253 stars 90 forks source link

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

Closed veripoolbot closed 5 years ago

veripoolbot commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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


Good point, FAQ note added.