加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Quartus 中仿真出现错误解决方案汇总

(2010-04-27 17:16:30)
标签:

it

一、Quartus中仿真时出现no simulation input file assignment specify 解决方法 (转载)

今天使用quartusII做了一下功能仿真,但是文件出现了问题   Error: Run Generate Functional Simulation Netlist (。。。) to generate functional simulation netlist for top level entity bmg_control before running the Simulator (quartus_sim)

在网上查了一下又解决的方法,在此转载此文长:

翻译成中文就是仿真文件没有被指定,要仿真的话先要建一个仿真文件:
file -> new -> 选择Other file选项卡 -> Vector Waveform File
然后把输入输出端口加进去,再设置输入的信号,保存,就可以仿真了。

如果你之前已经建立过了,就打开assignments->settings->simulator settings

看里面的有个文本框 simulation input 里面是否为空,为空的话就要找到你所建立的Vector Waveform File 文件,是以*.VMF结尾的,如果没找到,你又以为你建立了Vector Waveform File ,很可能粗心的你还没保存Vector Waveform File ,保存了才会在project里面找到。

找到之后进行仿真,如果是functional simulation,要做processing>generate functional simulation netlist..不然会出现

Error: Run Generate Functional Simulation Netlist (quartus_map bmg_control --generate_functional_sim_netlist) to generate functional simulation netlist for top level entity bmg_control before running the Simulator (quartus_sim)之类的错误。最后在进行仿真,就可以看到波形图了

二、Error (10137): Verilog HDL Procedural Assignment error at SHIFT.v(16): object "Data" on left-hand side of assignment must have a variable data type

错误:对Data未定义其变量类型,比如reg [3:0] Data

 

三、Quartus II常见错误

Quartus II常见错误

 

 

 

1.Found clock-sensitive change during active clock edge at time <time> on register "<name>"

  原因:vector source file中时钟敏感信号(如:数据,允许端,清零,同步加载等)在时钟的边缘同时变化。而时钟敏感信号是不能在时钟边沿变化的。其后果为导致结果不正确。

  措施:编辑vector source file

  2.Verilog HDL assignment warning at <location>: truncated with size <number> to match size of target (<number>

  原因:在HDL设计中对目标的位数进行了设定,如:reg[4:0] a;而默认为32位,将位数裁定到合适的大小

  措施:如果结果正确,无须加以修正,如果不想看到这个警告,可以改变设定的位数

  3.All reachable assignments to data_out(10) assign '0', register removed by optimization

  原因:经过综合器优化后,输出端口已经不起作用了

  4.Following 9 pins have nothing, GND, or VCC driving datain port -- changes to this connectivity may change fitting results

  原因:第9脚,空或接地或接上了电源

  措施:有时候定义了输出端口,但输出端直接赋‘0’,便会被接地,赋‘1’接电源。

  如果你的设计中这些端口就是这样用的,那便可以不理会这些warning

  5.Found pins ing as undefined clocks and/or memory enables

  原因:是你作为时钟的PIN没有约束信息。可以对相应的PIN做一下设定就行了。主要是指你的某些管脚在电路当中起到了时钟管脚的作用,比如flip-flop的clk管脚,而此管脚没有时钟约束,因此QuartusII把“clk”作为未定义的时钟。

  措施:如果clk不是时钟,可以加“not clock”的约束;如果是,可以在clock setting当中加入;在某些对时钟要求不很高的情况下,可以忽略此警告或在这里修改:Assignments>Timing analysis settings...>Individual clocks...>...

  6.Timing characteristics of device EPM570T144C5 are preliminary

  原因:因为MAXII 是比較新的元件在 QuartusII 中的時序并不是正式版的,要等 Service Pack

  措施:只影响 Quartus 的 Waveform

  7.Warning: Clock latency analysis for PLL offsets is supported for the current device family, but is not enabled

  措施:将setting中的timing Requirements&Option-->More Timing Setting-->setting-->Enable Clock Latency中的on改成OFF

  8.Found clock high time violation at 14.8 ns on register "|counter|lpm_counter:count1_rtl_0|dffs[11]"

  原因:违反了steup/hold时间,应该是后仿真,看看波形设置是否和时钟沿符合steup/hold时间

  措施:在中间加个寄存器可能可以解决问题

  9.warning: circuit may not operate.detected 46 non-operational paths clocked by clock clk44 with clock skew larger than data delay

  原因:时钟抖动大于数据延时,当时钟很快,而if等类的层次过多就会出现这种问题,但这个问题多是在器件的最高频率中才会出现

  措施:setting-->timing Requirements&Options-->Default required fmax 改小一些,如改到50MHZ

  10.Design contains <number> input pin(s) that do not drive logic

  原因:输入引脚没有驱动逻辑(驱动其他引脚),所有的输入引脚需要有输入逻辑

  措施:如果这种情况是故意的,无须理会,如果非故意,输入逻辑驱动.

  11.Warning:Found clock high time violation at 8.9ns on node 'TEST3.CLK'

  原因:FF中输入的PLS的保持时间过短

  措施:在FF中设置较高的时钟频率

  12.Warning: Found 10 node(s) in clock paths which may be acting as ripple and/or gated clocks -- node(s) analyzed as buffer(s) resulting in clock skew

  原因:如果你用的 CPLD 只有一组全局时钟时,用全局时钟分频产生的另一个时钟在布线中当作信号处理,不能保证低的时钟歪斜(SKEW)。会造成在这个时钟上工作的时序电路不可靠,甚至每次布线产生的问题都不一样。

  措施:如果用有两组以上全局时钟的 FPGA 芯片,可以把第二个全局时钟作为另一个时钟用,可以解决这个问题。

  13.Critical Warning: Timing requirements were not met. See Report window for details.

  原因:时序要求未满足,

  措施:双击Compilation Report-->Time Analyzer-->红色部分(如clock setup:'clk'等)-->左键单击list path,查看fmax的SLACK REPORT再根据提示解决,有可能是程序的算法问题

  14.Can't achieve minimum setup and hold requirement <text> along <number> path(s). See Report window for details.

  原因:时序分析发现一定数量的路径违背了最小的建立和保持时间,与时钟歪斜有关,一般是由于多时钟引起的

  措施:利用Compilation Report-->Time Analyzer-->红色部分(如clock hold:'clk'等),在slack中观察是hold time为负值还是setup time 为负值,然后在:Assignment-->Assignment Editor-->To中增加时钟名(from node finder),Assignment Name中增加 多时钟有关的Multicycle 和Multicycle Hold选项,如hold time为负,可使Multicycle hold的值>multicycle,如设为2和1。

  15: Can't analyze file -- file E://quartusii*.v is missing

原因:试图编译一个不存在的文件,该文件可能被改名或者删除了措施:不管他,没什么影响

16.Warning: Can't find signal in vector source file for input pin |whole|clk10m

原因:因为你的波形仿真文件( vector source file )中并没有把所有的输入信号(input pin)加进去, 对于每一个输入都需要有激励源的

17.Error: Can't name logic function scfifo0 of instance "inst" -- function has same name as current design file

原因:模块的名字和project的名字重名了

措施:把两个名字之一改一下,一般改模块的名字

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有