Altera_Forum
Honored Contributor
13 years agogetting qsys to find .h and .vh files
okay, so i have a verilog module which is instantiated in a qsys system.
this verilog file has several `includes of header files. if we write the `includes as relative paths from the location of the main .v file (`include "../includes/foo.vh"), qsys is happy and finds the .h/.vh files while compiling. however, if we write the includes with no pathname (`include "foo.vh"), qsys can not find the header files. not too surprising since you need to tell most tools what the include directory search path should be. passing these directories on the ip-generate command line (as --search-path) does not help; this path seems to be telling ip-generate where to look for _hw.tcl files. so is there some tcl command i can put in the _hw.tcl file which tells qsys where to look for the .vh and .h files? i tried simply "add_file" but this did not work. thanks.