Vivado仿真报错
Failure: ERROR:add_1 must be in range [-1,DEPTH-1]
Failure: ERROR:empty_1 and not_empty_1 are inconsistent
1、使用VIVADO2017.1仿真测试FFT的IP核时出现了以下错误,并且始终停在always@(posedge sys_clk or negedge rst_n)的一个模块前
错误提示
step
Failure: ERROR:add_1 must be in range [-1,DEPTH-1]
Time: 165 ns Iteration: 1
step
Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
Time: 165 ns Iteration: 1
Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
Time: 165 ns Iteration: 1
Failure: ERROR:empty_1 and not_empty_1 are inconsistent
Time: 165 ns Iteration: 1
step
2、解决办法
通过排查发现是在always@(posedge sys_clk or negedge rst_n)这个模块中,
s_axis_config_tvalid和s_axis_config_tdata未初始化
修改程序,对这两个寄存器进行初始化后,就可以继续仿真了
3、参考
解决过程中,参考下列网站