fpga常见的警告以及处理方法
1.found clock-sensitive change during active clock edge at time
on register
原因: vector source file 中时钟敏感信号(如:数据,允许端,清零,同步加载等)在时钟的边缘同时变化。而时钟敏感信号是不能在时钟边沿变化的。其后果为导致结果不正确。
措施:编辑 vector source file
2.verilog hdlassignment warning at : truncated value with size to match size of target (
原因 : 在 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 vccdriving datain port -- changes to this connectivity may change fitting results
原因 : 第 9 脚,空或接地或接上了电源
措施 : 有时候定义了输出端口,但输出端直接赋‘0’,便会被接地,赋‘1’接电源。如果你的设计中这些端口就是这样用的,那便可以不理会这些 warning
5.found pins functioning 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...>...
注 意 在 applies to node 中只用选择时钟引脚一项即可, required fmax 一般比所要求频率高 5%即可,无须太紧或太松。
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 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再根据提示解决 , 有可能是程序的算法问题或 fmax 设置问题
14.warning: can't find signal in vector source file for input pin |whole|clk10m
原因:这个时因为你的波形仿真文件( vector source file )中并没有把所有的输入信号
(input pin) 加进去,对于每一个输入都需要有激励源的
15.can't achieve minimum setup and hold requirement along 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。
16: can't analyze file -- file e://quartusii/*/*.v is missing
原因:试图编译一个不存在的文件,该文件可能被改名或者删除了措施:不管他,没什么影响
17.warning: can't find signal in vector source file for input pin |whole|clk10m
原因:因为你的波形仿真文件( vector source file )中并没有把所有的输入信号 (input
pin) 加进去,对于每一个输入都需要有激励源的
18.error: can't name logic function scfifo0 of instance inst -- function has same name as current design file
原因:模块的名字和 project 的名字重名了 措施:把两个名字之一改一下,一般改模块的名字
19.warning: using design file lpm_fifo0.v, which is not specified as a design file for the current project, but contains definitions for 1 design units and 1 entities in project info: found entity 1: lpm_fifo0
原因:模块不是在本项目生成的,而是直接 copy 了别的项目的原理图和源程序而生成的, 而不是用 quartus将文件添加进本项目
措施:无须理会,不影响使用
20.timing characteristics of device are preliminary
原因:目前版本的 quartusii 只对该器件提供初步的时序特征分析
措施: 如果坚持用目前的器件, 无须理会该警告。 关于进一步的时序特征分析会在后续版本的 quartus 得到完善。
21.timing analysis does not support the analysis of latches as synchronous elements for the currently selected device family
原因:用 analyze_latches_as_synchronous_elements setting 可 以 让 quaruts ii 来分析同步锁存,但目前的器件不支持这个特性
措施: 无须理会。 时序分析可能将锁存器分析成回路。 但并不一定分析正确。 其后果可能会导致显示提醒用户:改变设计来消除锁存器 , 但实际其实无关紧要
22.warning:found xx output pins without output pin load capacitance assignment
原因:没有给输出管教指定负载电容
解决方法:该功能用于估算 tco和功耗,可以不理会,也可以在 assignment editor 中为相应的输出管脚指定负载电容,以消除警告
quartusii fpga 错误集锦
1)quartusii 对代码进行时序仿真时出现 error: can't continue timing simulation because delay annotation information for design is missing.
原因: 如果只需要进行功能仿真, 不全编译也是可以进行下去的, 但时序仿真就必须进行全编译(即工具栏上的紫色实心三角符号那项)。
全仿真包括四个模块:综合器( synthesis )、电路装配器( fitter )、组装器( assember)和时序分析器( timing analyzer ),任务窗格中会有成功标志(对号)。
2)在下载运行的时候,出现下面的错误:
warning: the jtagcable you are using is not supported for nios ii systems.
you may experience intermittent jtag communicationfailures with this cable. please use a usb blaster revision b.
在运行之前已经将 .sof 文件下载到开发板上面了,但是依然出现上面的问题。
解决:在配置的时候,在 run 之后,进行配置,选择 target connection ,在最后一项: nios ii terminal communication device 中,要选择 none(不要是jtag_uart )如果采用 usb blaster ,可以选择 jtag_uart 。
之后再 run 就 ok 了!
3)error: can't compile duplicate declarations of entity count3 into library work
此错误一般是原理图文件的名字和图中一个器件的名字重复所致, 所以更改原理图文件的名字保存即可。
-------------------
1.found clock-sensitive change during active clock edge at time
on register
原因:vector source file 中时钟敏感信号 ( 如: 数据, 允许端 , 清零, 同步加载等 ) 在时钟的边缘同时变化 . 而时钟敏感信号是不能在时钟边沿变化的 . 其后果为导致结果不正确 .
措施: 编辑 vector source file
2.verilog hdl assignment warning at : truncated with size
to match size of target (
原因: 在 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 vccdriving datain port -- changes to this connectivity may change fitting results
原因: 有 9 个脚为空或接地或接上了电源
措施: 有时候定义了输出端口 , 但输出端直接赋‘ 0’, 便会被接地 , 赋‘ 1’接电源. 如果你的设计中这些端口就是这样用的 , 那便可以不理会这些 warning
5.found pins functioning 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 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 repor再t根据 提示解决 , 有可能是程序的算法问题
14.can't achieve minimumsetup and hold requirement along 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 scfifo0 of instance inst -- has same name as current design file
原因: 模块的名字和 project 的名字重名了
措施: 把两个名字之一改一下 , 一般改模块的名字
18.warning: using design file lpm_fifo0.v, which is not specified as a design file for the current project, but contains definitions for 1 design units and 1 entities in project info: found entity 1: lpm_fifo0
原因: 模块不是在本项目生成的 , 而是直接 copy 了别的项目的原理图和源程序
而生成的 , 而不是用 quartu将s 文件添加进本项目
措施: 无须理会 , 不影响使用
19.timing characteristics of device are preliminary
原因: 目前版本的 quartusii 只对该器件提供初步的时序特征分析
措施: 如果坚持用目前的器件 , 无须理会该警告 . 关于进一步的时序特征分析会在后续版本的 quartus 得到完善 .
20.timing analysis does not support the analysis of latches as synchronous elements for the currently selected device family
原因: 用 analyze_latches_as_synchronous_elements setting 可以让 quaruts ii 来分析同步锁存 , 但目前的器件不支持这个特性
措施: 无须理会 . 时序分析可能将锁存器分析成回路 . 但并不一定分析正确 . 其 后果可能会导致显示提醒用户 : 改变设计来消除锁 存器
21.warning:found xx output pins without output pin load capacitance assignment
原因: 没有给输出管教指定负载电容
措施: 该功能用于估算 tco和功耗 , 可以不理会 , 也可以在 assignment editor 中为相应的输出管脚指定负载电容 , 以消除警告
22.warning: found 6 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
原因: 使用了行波时钟或门控时钟 , 把触发器的输出当时钟用就会报行波时钟 ,
将组合逻辑的输出当时钟用就会报门控时钟
措施: 不要把触发器的输出当时钟 , 不要将组合逻辑的输出当时钟 , 如果本身如此设计 , 则无须理会该警告
23.warning (10268): verilog hdl information at lcd7106.v(63): always construct contains both blocking and non-blocking assignments
原因: 一个 always 模块中同时有阻塞和非阻塞的赋值
24.warning: can't find signal in vector source file for input pin |whole|clk10m
原因:这个时因为你的波形仿真文件( vector source file )中并没有把所有的输入信号 (input pin) 加进去, 对于每一个输入都需要有激励源的
25 warning:output pins are stuck at vcc or gnd
如果正是希望某些输出被固定置高电平或低电平或者无所谓, 就不用管它, 否则请检查代码。这样的输出其实没有什么意义 .
26.warning (10208): honored full_case synthesis attribute - differences
between design synthesis and simulation may occur 。
/* synopsys full_case */ ; d2g/ w&n6 s*p6 t; w!c/`8 m
意思就是: , } #q #_) p) u' @, ] / ~; b
告诉合成软件你的 case 几 乎 是 full case ,你( designer )可以保证没有列出的 case
分支是永远也不会发生的。 8r0 a! o- t! h8l+ o.{
目的:告诉合成软体不用去考虑没有列出的 case 分支,便于化简。
限制:当然只有 synopsys 的合成软体可以看懂了! 所以不建议用, 最好还是用 default 。
缺点:前后仿真不一致, 综合的结果和期望的不一致。
27:warning: no exact pin location assignment(s) for 16 pins of 16 total pins
定义的管脚没有和外部的管脚连接.
28: warning: ignored locations or region assignments to the following nodes
warning: node 78ledcom[4] is assigned to location or region, but does not exist in design
设计中没提到 78ledcom[4] ,而分配了管脚给它。
说明:有时候运行了 tcl脚本文件后需要修改,修改后有一些先前分配的管脚不需要了,如果没有delete ,则会出现此提示。
解决办法: assignments->pins ,把不用的管脚删除即可( tcl脚本文件里的多余管脚分配语句最好也一起 delete )。
ps: 到此为止,有错误或警告时按 f1 查看帮组即可。
quartus 常见警告和错误
1. warning: vhdlprocess statement warning at random.vhd(18): signal reset is in
statement, but is not in sensitivity list
---- 没把 singal 放到 process ()中
2. warning: found pins ing as undefined clocks and/or memory enables info: assuming node clk is an undefined clock
-=----- 可能是说设计中产生的触发器没有使能端
3. error: vhdlinterface declaration error in clk_gen.vhd(29): interface object
clk_scan of mode out cannot be read. change object mode to buffer or inout.
------ 信号类型设置不对, out 当 作 buffer 来定义
4. error: nodeinstance clk_gen1 instantiates undefined entity clk_gen
------- 引用的例化元件未定义实体-- entity clk_gen
5. warning: found 2 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 info: detected ripple clock clk_gen:clk_gen1|clk_incr as buffer info: detected ripple clock clk_gen:clk_gen1|clk_scan as buffer
6. warning: vhdl process statement warning at ledmux.vhd(15): signal or variable
dataout may not be assigned a new in every possible path through the process
statement. signal or variable dataout holds its previous in every path with no
new assignment, which may create a combinational loop in the current design.
7. warning: vhdlprocess statement warning at divider_10.vhd(17): signal cnt is
read inside the process statement but isn't in the process statement's sensivitity list
----- 缺少敏感信号
8. warning: no clock transition on counter_bcd7:counter_counter_clk|q_sig[3] register
9. warning: reducedregister counter_bcd7:counter_counter_clk|q_sig[3] with
stuck clock port to stuck gnd
10. warning: circuit may not operate. detected 1 non-operational path(s) clocked
by clock class[1] with clock skew larger than data delay. see compilation
report for details.
11. warning: circuit may not operate. detected 1 non-operational path(s) clocked
by clock sign with clock skew larger than data delay. see compilation report
for details.
12. error: vhdlerror at counter_clk.vhd(90): actual port class of mode in
cannot be associated with formal port class of mode out
------ 两者不能连接起来
13. warning: ignored node in vector source file. can't find corresponding node
name class_sig[2] in design.
------ 没有编写 testbench 文件,或者没有编辑输入变量的值 testbench 里是元件申明和映射
14. error: vhdlbinding indication error at freqdetect_top.vhd(19): port class
in design entity does not have std_logic_vector type that is specified for the
same generic in the associated component
--- 在相关的元件里没有当前文件所定义的类型
15. error: vhdl error at tongbu.vhd(16): can't infer register for signal gate
because signal does not hold its outside clock edge
16. warning: found clock high time violation at 1000.0 ns on register |fcounter|lpm_counter:temp_rtl_0|dffs[4]
17. warning: compiler packed, optimized or synthesized away node temp[19].
ignored vector source file node.
---temp[19] 被优化掉了
18. warning: reduced register gate~reg0 with stuck data_in port to stuck gnd
19. warning: design contains 2 input pin(s) that do not drive logic warning: no output dependent on input pin clk
warning: no output dependent on input pin sign
------ 输出信号与输入信号无关,
20. warning: found clock high time violation at 16625.0 ns on register |impulcomp|gate1
21. error: vhdlerror at impulcomp.vhd(19): can't implement clock enable condition specified using binary operator or
22. error: vhdlassociation list error at period_counter.vhd(38): actual parameter assigned to formal parameter alarm, but formal parameter is not
declared
------- 连接表错误, 形参alarm 赋值给实参, 形参没定义, 可能是形参与实参的位置颠倒了,规定形参在实参之前。
23. error: ignored construct behavier at period_counter.vhd(15) because of
previous errors
--------因为前一个错误而导致的错误
24. error: vhdl error at period_counter.vhd(38): type of identifier alarm does
not agree with its usage as std_logic type
-------- alarm 的定义类型与使用的类型不一致
25error: vhdl error at shift_reg.vhd(24): can't synthesize logic for statement
with conditions that test for the edges of multiple clocks
------- 同一进程中含有两个或多个 if(edge) 条件,(一个进程中之能有一个时钟沿)
26. error: can't resolve multiple constant drivers for net datain_reg[22] at
shift_reg.vhd(19)
27. can't infer register for signal num[0] because signal does not hold its
outside clock edge
28. error: can't elaborate top-level user hierarchy
29. error: can't resolve multiple constant drivers for net cs_in at led_key.vhd(32) ---------- 有两个以上赋值语句,不能确定“ cs_in ” 的 值
30. warning: ignored node in vector source file. can't find corresponding node
name over in design.
--------------- 在源文件中找不到对应的节点“ over ”。
31. error: can't access jtag chain
无法找到下载链
32. info: assuming node clk is an undefined clock
让智能手表一年不用充电,ASSIST芯片怎么做到的
光模块安装与拆卸的小指南
2019年!如何在商业挑战与变革中继续前行?
为什么IGBT会发生退饱和现象?
物联网的发展极大地促进了智能家居技术市场的繁荣
FPGA常见的警告以及处理方法
MLX90640 红外热成像仪测温传感器 手机连接操作详细
虞仁荣将捐献200多亿元,在宁波建设“东方理工大学”!
esp32用什么语言编程_SP32开发环境的搭建
笔记本电池成本分析方法
华为nova 2继续高颜值,华为nova2中国·长沙发布盛典正在进行时!
湿法和干法刻蚀图形化的刻蚀过程讨论
OLED彩色化技术及优缺点概述
应用材料公司全新技术助力领先的碳化硅芯片制造商加速向200毫米晶圆转型并提升芯片性能和电源效率
世界最强火箭重型猎鹰火箭发射成功还在PCB上加了意外惊喜
用电源管理IC U2263手机充电器——平凡的我们记录每一个不平凡的日子
微软将停止对Windows 8操作系统服务和更新
浅谈PCB板材基础知识及层压结构
dfrobotFlyduino控制器简介
FIIL Diva Pro 耳机荣获 2017 CES 创新大奖,艾迈斯半导体降噪技术功不可没