打印

模块hardreg引用模块flop

[复制链接]
1482|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hust_lilinbing|  楼主 | 2012-7-25 09:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 hust_lilinbing 于 2012-7-25 21:24 编辑

模块flopmodule flop(data,clock,clear,q,qb);         input data,clock,clear;         output q,qb;         nand #10       nd1(a,data,clock,clear),                               nd2(b,ndata,clock),                               nd4(d,c,b,clear),                               nd5(e,c,nclock),                               nd6(f,d,nclock),                               nd8(qb,q,f,clear);         nand #9         nd3(c,a,d),                               nd7(q,e,qb);         not  #10         iv1(ndata,data),                               iv2(nclock,clock);endmodule 模块hardreg`include "flop.v"module hardreg(d,clk,clrb,q);input   clk,clrb;input[3:0] d;output[3:0] q;flop  f1(d[0],clk,clrb,q[0],),   f2(d[1],clk,clrb,q[1],),   f3(d[2],clk,clrb,q[2],),   f4(d[3],clk,clrb,q[3],);endmodule 错误提示:Error (10054): Verilog HDL File I/O error at hardreg.v(1): can't open Verilog Design File "flop.v"Error (10112): Ignored design unit "hardreg" at hardreg.v(2) due to previous errorsError: Quartus II Analysis & Synthesis was unsuccessful. 2 errors, 5 warnings Error: Peak virtual memory: 210 megabytes Error: Processing ended: Tue Jul 24 23:13:44 2012 Error: Elapsed time: 00:00:01 Error: Total CPU time (on all processors): 00:00:01Error: Quartus II Full Compilation was unsuccessful. 4 errors, 5 warnings注:模块flop和模块hardreg不在一个文件夹里。

相关帖子

沙发
sedatefire| | 2012-7-25 15:52 | 只看该作者
编辑一下吧,看了晕
另外,发重复的标题哦
你可以点击右上角编辑一下

使用特权

评论回复
板凳
hust_lilinbing|  楼主 | 2012-7-25 21:23 | 只看该作者
编辑了几次,都是这样,不能按照我原始输进去的格式现实啊,网站不行额:(

使用特权

评论回复
地板
hust_lilinbing|  楼主 | 2012-7-25 21:24 | 只看该作者
2# sedatefire
编辑了几次,都是这样,不能按照我原始输进去的格式现实啊,网站不行额:(

使用特权

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

本版积分规则

0

主题

3

帖子

0

粉丝