打印

紧急help:这个verilog文件xst check syntax报错

[复制链接]
2590|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
edacsoft|  楼主 | 2012-3-15 17:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
网上下载的例子,应该是没有问题的。
verilog不熟悉。
ISE版本:11.5.
错误报告如下:
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 88 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 90 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 92 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 94 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 96 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 98 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 100 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 102 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 104 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 106 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 161 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 167 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 168 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 169 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 172 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 173 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 176 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 186 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 187 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 187 'cnt_clk_r' has not been declared
ERROR:HDLCompilers:28 - "HDL/sdram_ctrl.v" line 188 'cnt_clk_r' has not been declared

sdram_ctrl.rar (2.83 KB)

相关帖子

沙发
edacsoft|  楼主 | 2012-3-15 17:40 | 只看该作者
原因找到了:
Before using an instance of a signal, array, parameter, etc., the instance must first be declared. The XST parser scans a Verilog file from beginning to end, so any usage must be preceded by the declaration of that instance.
晕死,XST跟其他综合器不一样.v中必须先声明再使用,真当是.c文件啊

使用特权

评论回复
板凳
GoldSunMonkey| | 2012-3-15 19:19 | 只看该作者
:)

使用特权

评论回复
地板
GoldSunMonkey| | 2012-3-15 19:19 | 只看该作者
我一看就知道未声明:)

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

44

主题

246

帖子

0

粉丝