在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2109|回复: 0

[求助] modelsim后仿真网表,rom出现不定态的问题

[复制链接]
发表于 2016-10-31 18:16:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
modelsim后仿真网表,rom的信号本来没有问题,后来更改了ROM的初始化数据,ROM的某些信号就出现不定,报的error如下:

#
# 422404584.28 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404638.53 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404692.78 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404747.04 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404801.29 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404855.54 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#
#
# 422404909.79 ns: ERROR: AA_tb_cpu_spi_flash.cpu_spi_flash_filter_u.full_chip_u.cpu_filter_u.boot_rom : CEn is at x at CLK rising edge:
#



,只是换了一组数据而已,各位大侠,为什么会出现不定态,之前那组数据都没有问题的。(已经反标上SDF文件了)。

查看rom的verilog model 有下面这一段:

`ifdef ATPG_RUN
`else
initial begin

$timeformat (-9, 2, " ns", 0);

rt = 1'b0;

#250 ;
// no ROM activity permitted for first 250ns of sim.

rt = 1'b1;

end
reg last_CLK_;
always @(CLK_)
last_CLK_ <= CLK_;
always @(posedge CLK_)

begin

if (CEn_ === 1'bx)  $display ("\n%t: ERROR: %m : CEn is at %b at CLK rising edge:\n", $realtime, CEn);

if (enableMem === 1'b1)

begin

if ((CLK_ == 1'b1 && last_CLK_ === 1'bx) || (CLK_ === 1'bx && last_CLK_ == 1'b0))

if ($realtime>0.00) $display ("\n%t: ERROR: %m : bad CLK rising edge:\n", $realtime);

end

if(rt === 1'b0)


begin
         
if (CEn_ === 1'b0 ) $display ("\n%t: ERROR: %m : ROM enabled during initial 250ns\n", $realtime);


end

end
`endif


求大神分析一下啊,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-28 03:21 , Processed in 0.013540 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表