We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 18495

7.1i XST - "ERROR:HDLCompilers:26 - Could not find include file '..\dir\file.v'"


Keywords: header, WARNING, Verilog

Urgency: Standard

General Description:
When I run the design in XST, the following error occurs:

"ERROR:HDLCompilers:26 - Could not find include file 'dir\file.v'"


There are several ways to work around this problem:

- Make sure that the include statement correctly defines the path of the file you want to include.

If your project is in directory "dir_a," located on drive C:, and your HDL files are located in directory "dir_b," a sub-folder of "dir_a," the include statement should be 'include "c:\dir_a\dir_b\file.v."

- Bring all your HDL files in the directory where your ".npl" file is located. In this case, you can just write `include "file.v."

- Another option is to use the "-vlgincdir" option. Refer to the XST User Guide on proper usage of these XST options.
AR# 18495
Date Created 09/03/2007
Last Updated 01/07/2009
Status Archive
Type General Article