在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 8686|回复: 14

[求助] makefile 不认include 的verilog

[复制链接]
发表于 2010-5-11 17:57:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
请问一下,在用makefile做仿真时,因为有很多的verilog code需要都include进来,可怎么都不认,总是出现以下问题:
Error-[SFC0R] Source file cannot be opened
  Source file "`include" connot be opened for reading due to"No such file or directory".

这是什么原因造成的,我是新手,请教大家。
我把我的file.v写一部份出来:
`include "/data/project/aa/a.v"
`include "/data/project/bb/b.v"
就是类似这样,不知道为何总是出错,之前用nc跑就没有问题。
发表于 2010-5-16 15:08:49 | 显示全部楼层
Thanks a lot !!!!!!!!!
发表于 2010-5-16 20:47:25 | 显示全部楼层
是反斜杠的问题吗
发表于 2010-5-16 22:53:48 | 显示全部楼层
最有可能是路径不对!可以采用绝对路径!
发表于 2010-5-16 23:42:13 | 显示全部楼层
既然想用makefile,可以直接采用filelist文件来指定文件路径的
发表于 2010-5-22 17:45:59 | 显示全部楼层
在/data之前加一個.
這樣的意思是告訴verilog simulator去你目前目錄下的data目錄去找你的verilog code

`include "./data/project/aa/a.v"
`include "./data/project/bb/b.v"
发表于 2010-6-8 13:10:04 | 显示全部楼层
I think 'make' is not responsible for the file path. It is related to your simulator actually. First of all, you have to know where you are when the makefile executes the simulator. Some suggest that you may define your "project root directory" in your makefile like:

PROJ_ROOT=/home/user_name/proejcts/proj_1

and then you should based on the variable ${PROJ_ROOT}. I think it may easier when you encounter the troubles like this.
发表于 2010-7-13 17:12:53 | 显示全部楼层
makefile和include的没有什么关系吧
要么文件在filelist里面指定位置,要么在跑的时候用命令行指定一个路径吧
发表于 2010-9-23 15:39:39 | 显示全部楼层
学习一下
发表于 2010-10-15 16:01:55 | 显示全部楼层
kankan
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-12 16:31 , Processed in 0.038643 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表