design compiler报Unable to open file

在设置中已经配置了

set RTL_INC_PATH ../../eda/rtl/include
set_app_var search_path  [list . $search_path $RTL_INC_PATH]

综合时提示错误

Running PRESTO HDLC
Compiling source file ../../eda/rtl/spi/spi_top.v
Opening include file spi_inc.vh
Error:  ../../eda/rtl/spi/spi_top.v:1: Unable to open file `spi_inc.vh': No such file or directory. (VER-41)
*** Presto compilation terminated with 1 errors. ***

而spi_inc.vh文件确实是在…/…/eda/rtl/include目录下。

出现这个问题的原因是源代码project/xxx/rtl是个软连接,在我的综合脚本里
sh cp ~/project/xxx/rtl …/…/eda
是把软连接复制到了eda目录下,而design compiler对软连接支持有限。

[xxx@localhost $ll ~/project/xxx/rtl
4.0K lrwxrwxrwx 1 xxx xxx 56 05-13 18:37  /home/xxx/project/xxx/rtl ->/mnt/hgfs/D_pan/xxx/project/rtl/
[xxx@localhost $ll ../../eda/rtl
4.0K lrwxrwxrwx 1 xxx xxx 56 05-13 18:37  ../../eda/rtl ->/mnt/hgfs/D_pan/xxx/project/rtl/

解决办法就是复制源代码时不要复制软连接,而是复制原文件
脚本里的命令改为:

sh cp ~/project/xxx/rtl/ ../../eda

两条命名的差别就是rtl后多了一个斜杠/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值