ISE include 头文件错误的解决办法

在ISE 14.7里面,如果hdl的头文件和verilog文件不在同一个文件夹下,直接添加文件就会i包含失败,而且无法实现综合。错误代码是  ERROR:HDLCompiler:281 :ERROR:HDLCompiler:281 - "C:/Users/lingking/Desktop/my_cpu_az/bus/src/bus_arbiter.v" Line 22: Cannot open include file "nettype.h".ERROR:HDLCompiler:281 - "C:/Users/lingking/Desktop/my_cpu_az/bus/src/bus_arbiter.v" Line 23: Cannot open include file "stddef.h".
ERROR:HDLCompiler:281 - "C:/Users/lingking/Desktop/my_cpu_az/bus/src/bus_arbiter.v" Line 24: Cannot open include file "global_config.h".
ERROR:HDLCompiler:281 - "C:/Users/lingking/Desktop/my_cpu_az/bus/src/bus_arbiter.v" Line 27: Cannot open include file "bus.h".
ISE include 头文件错误的解决办法



    要解决这个问题,需要头文件的包含语句里面修改一下,加上文件的相对路径,然后保存文件,就可以看到头文件已经被识别和包含:
ISE include 头文件错误的解决办法        ISE include 头文件错误的解决办法

ISE include 头文件错误的解决办法收藏 ISE include 头文件错误的解决办法支持 ISE include 头文件错误的解决办法反对