VVIC 发表于 2010-6-26 02:13:10

Quartus编译时出现这个错误,该怎样修改

本帖最后由 fpgaw 于 2010-11-15 11:00 编辑

Quartus编译时出现这个错误,该怎样修改
Error: Top-level design entity "demo" is undefined

AAT 发表于 2010-6-26 03:32:38

要定义顶层文件

ICE 发表于 2010-6-26 03:41:52

不贴出来让人怎么改啊

interi 发表于 2010-6-26 04:45:46

module binaryToESeg(eSeg,A,B,C,D);<br>
&nbsp;&nbsp;output&nbsp; &nbsp;eSeg;<br>
&nbsp;&nbsp;input&nbsp; &nbsp; A,B,C,D;<br>
nand #1<br>
&nbsp; &nbsp;&nbsp; &nbsp;g1(p1,C,~D),<br>
&nbsp; &nbsp;&nbsp; &nbsp;g2(p2,A,B),<br>
&nbsp; &nbsp;&nbsp; &nbsp;g3(p3,~B,~D),<br>
&nbsp; &nbsp;&nbsp; &nbsp;g4(p4,A,C),<br>
&nbsp; &nbsp;&nbsp; &nbsp;g5(eSeg,p1,p2,p3,p4);<br>
endmodule<br>
程序是这样的,我已经将它设为顶层文件了

ngtim 发表于 2010-6-26 06:29:25

你的代码我跑了一下<br>
没有问题的<br>
还是你的某些设置的问题

interi 发表于 2010-6-26 07:42:52

请问怎么把它设置成顶层文件??谢谢!!

VVC 发表于 2010-6-26 09:29:25

帮顶,拿分.谢谢

ngtim 发表于 2010-6-26 10:36:07

代码确实没有问题

ups 发表于 2010-6-26 12:02:06

应该是你软件的设置问题

VVIC 发表于 2010-6-26 12:51:51

同意。。。
页: [1] 2 3
查看完整版本: Quartus编译时出现这个错误,该怎样修改