The directories for `include files specified using "Verilog Include Files Search Paths" in "Simulation settings --> Verilog Options --> Verilog Include search paths" are not getting included in the .do file generated using the "launch_modelsim -scripts_only" for System Verilog source file.
Below is an example line from .do files generated using System Verilog file settings.
vlog -sv -work work "C:/test_proj/project_1/project_1.srcs/sources_1/new/test.v"
The line should read:
vlog -sv -work work "C:/test_proj/project_1/project_1.srcs/sources_1/new/test.v" +incdir+C:/test/my_include_dir
How can I get the correct .do file?
This issue occurs with System Verilog source files only. If Verilog source files are used, the .do file generated correctly contains the include directory specified in the simulation settings.
As a work around, the following can be used in the field "More VLOG options" of simulation settings window:
This issue has been fixed in the Vivado 2013.3 tool where +incdir+ is included in the generated script.