nju044的个人空间 https://blog.eetop.cn/?523930 [收藏] [复制] [分享] [RSS]

日志

【转】modelsim无法识别include文件的解决方法

已有 8912 次阅读| 2011-12-30 10:02 |个人分类:工具使用

只写成 `include "define_file.v" 是不行的,要使用绝对路径,如 `include "F:/110503_Test/rtl/define_file.v"。
详情如下:
QUESTION:
From Xilinx ISE I get the following error:

ERROR:hdlCompilers:26 - "rtl/definitions.v" line 2 expecting 'EOF',
found 'parameter'

When I compile in ModelSim I get the following error:
** Error: D:/rtl/rf_board_top.v(23): Cannot open `include file
"definitions.v".
How to get ModelSim to find the include file (it is in the same
directory as the verilog modules)?
ANSWER:
I moved the `include after the port definitions and that fixed ISE
problem.

I changed the properties on each .V source file to include the
directory where the include file was located (even though it was the
same directory as the source .v files). This fixed the ModelSim
problem.

点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 1

    粉丝
  • 0

    好友
  • 0

    获赞
  • 18

    评论
  • 1233

    访问数
关闭

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


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

GMT+8, 2025-10-1 06:43 , Processed in 0.027280 second(s), 14 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部