In a system-verilog file that I was given is an include
for a Verilog Header file (.vh
). When I manually run a simulation in Modelsim I usually go into the properties of the file ("Verilog & SystemVerilog" tab) and include the directory that holds the header file there. How would I go about making reference to it in a .do
file that I am trying to create?
Asked
Active
Viewed 3,851 times
1

Marmstrong
- 1,686
- 7
- 30
- 54
1 Answers
3
Assuming you have a file included with the `include macro; you should be able to use the +incdir+<path>
argument to the compile command; where path is the path to the directory containing the .vh
or .svh
file(s).

Unn
- 4,775
- 18
- 30