IIC_slaver 是网上下载的。testbench文件是自带的,出现如图错误。

 

 

 compile  >> compile  option  >> include directory

设置后这个错误排除。

接着引出了新错误。

 

 

 

更改为绝对路径仍然不行。

 

 

 把整个define代码,全部贴进i2cSlaveTop

 

 这个bug 解决,出现了另一个bug