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
257 stars 90 forks source link

Setting current working directory? #1684

Closed imgod2u closed 4 years ago

imgod2u commented 4 years ago

My project has the following structure: ./top/top_module.sv ./sub1/sub1.sv ./sub2/sub2.sv ./filelist.f

The filelist.f is relative to the ./ directory. However, when running Verilog-auto on any of the SV files, the working directory for them is their local directory. For example, top_module.sv sees "./top" as its working directory.

Thus, when reading filelist.f, it can't find any of the files.

Is there a way to set the "cwd"?

wsnyder commented 4 years ago

Please try using "-F filelist.f" instead of "-f filelist.f". The difference is similar to standard simulators and resolves files relative to the .f file.

Closing as assume this answers it, if not feel free to continue to post here.