modelsim仿真问题_xp.doc_第1页
modelsim仿真问题_xp.doc_第2页
modelsim仿真问题_xp.doc_第3页
modelsim仿真问题_xp.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、MODELSIM仿真提示already declared in this scope解决方法:在定义这个信号前其它模块接口信号中调用了这个信号,modelsim仿真报错,通过把信号定义挪到调用模块前面问题解决。2、modelsim中,Instantiation of dffeas failed. The design unit was not found.* Error: (vsim-3033) E:/pro/verilog_prj_example/simulation/modelsim/tb_sdrtest.v(24): Instantiation of print_task failed. The design unit was not found.两种方法;报告3、Error: Cant compile duplicate declarations of entity ram into library workError: Instance could be entity ram in file ram.vError: Instance could be entity ram in file ram.bdf解决办法:将.bdf文件的名字改掉,不能和.v文件的名字相同。4、Quartus中仿真时出现 no simulation input file assignment specify 对话框最好保证工程名、主模块、仿真文件的名字都一样。5、9.17.2014下载波形文件仿真错误Error: Run Generate Functional Simulation Netlist (quartus_map yumen2_mk -generate_functional_sim_netlist) to generate functional simulation netlist for top level entity yumen2_mk before running the Simulator (quartus_sim)解决方法:原因是在功能仿真时候没有建立一个网表,网表的作用本人不是很清楚,只能说是功能仿真的一个必要步骤吧。在Processing下选择generated functional simulation netist,就是产生功能反正对应的网表文件,然后再仿真就ok了。但是如果刚开始只进行时序仿真的话,就不会出现这个问题,本人测试几次猜测这应该是时序仿真和功能仿真的区别。2013.9.22编译Error: Cant compile duplicate declarations of entity * into library work解决方法:原因是这个模块同时有bdf和.v文件在projcet中,需要把不用的文件从project的file里移除。2013.9.11原理图编译错误Error: Width mismatch in port dataa7.0 of instance inst and type mult - source is a解决方法:这个错误出现在block模板建立编译后出现,原因是例化元件中的dataa7.0是八位,而加入的引脚a是一位的,应该改成a7.0就ok了。2013.10.15程序编译错误Error (10028): Cant resolve multiple constant drivers for net count0 at k.v(13)解决方法:应该是出现多个always语句里对统一变量的的多次赋值造成,有可能变量附错,改掉即可;如果没附错,就设法将两个并行模块always合并2013.11.01Error (10137): Verilog HDL Procedural Assignment error at tcount.v(14): object a on left-hand side of assignment must have a variable data type解决方法:always里赋值用reg,assign里面赋值用wire。目标左侧的a必须是个合理的数据类型:reg(寄存器型)、wire(连线型),本人在使用时候,a作为临时的一个寄存器一方面要判断最高位的溢出,一方面要把要把除了最高位的其它位赋值给输出out端,所以a的类型应该为reg型定义。2013.9.26Error (10170): Verilog HDL syntax error at cnt_tb.v(1) near text 解决方法:timescale 10ns/1ps ,在定义精度之类的东西时候,用的应该是键盘左侧的“ ”,而不是英文的单引号“ ”2013.10.19Error (10170): Verilog HDL syntax error at kcounter.v(23) near text begin;expecting an identifier (begin is a reserved keyword ), or endmodule, or a parallel statement解决方法:一般出现这种错误都是begin前后多了一个“;”分好导致。本人这次错误是因为在always ();中多加了个;,应该是always ()2013.10.26Error (10171): Verilog HDL syntax error at chu.v(8) near end of file ;expecting ., or an identifier, or (, or 解决方法:碰到这个错误,一般都是程序末尾的“endmodule” 写错了的原因(不要写成大写;不要写错单词)2013.10.21Error (10219): Verilog HDL Continuous Assignment error at chu.v(9): object out1 on left-hand side of assignment must have a net type解决方法:就是端口的reg,wire型设置不对造成的2013.10.21Error (10278): Verilog HDL Port Declaration error at chu.v(6): input port a cannot be declared with type 解决方法:input 端口不能被定义为reg型,这是在quartus2 5.0版本之后的规定2013.10.21Warning (10230): Verilog HDL assignment warning at count.v(31): truncated value with size 32 to match size of target (9)解决办法:(虽然警告有时候不怎么影响我们的编译与硬件执行,但是或多或少我们有捡“法律”空子的嫌疑,破坏了一般的语法规则)我用的是 .reg 8:0in1;.in1=in1+1;这里的1用法描述不规则,不符合in1的定义。应该写成in1=in1+9d1.2013.10.246、仿真nco_ip核的时候出现;Error: Cant generate netlist output files because the license for encrypted file E:/pro/nco/incremental_db/compiled_partitions/nco_ip.root_partition.map.atm is not available方法:不要选择第三方软件,settings里的EDA仿真选成none7、Warning:Found xx output pins without output pin load capacitanc

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论