1

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?

Marmstrong
  • 1,686
  • 7
  • 30
  • 54

1 Answers1

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