Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I'm compiling Verilog using the Quartus II for the Altera platform. In my Verilog, I have a Verilog header global.vh, and Quartus II cannot find it:

Error (10054): Verilog HDL File I/O error: can't open Verilog Design File "global.vh"

Is there a way to specify an "include path" for Verilog header files in Quartus II?

(Note that the header file can be found when placed in the root directory for the Quartus II project.)

share|improve this question

1 Answer

up vote 5 down vote accepted

Altera recommends that you use the SEARCH_PATH assignment to define the project libraries. You can have multiple SEARCH_PATH assignments. However, you can specify only one source directory for each SEARCH_PATH assignment.

For example:

set_global_assignment -name SEARCH_PATH "../other_dir/library1"
set_global_assignment -name SEARCH_PATH "../other_dir/library2"
set_global_assignment -name SEARCH_PATH "../other_dir/library3"

Please refer to Managing Quartus II Projects document for more details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.