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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
楼主: fzfh1219

关于verilog语句中的延时

[复制链接]
发表于 2010-2-10 10:54:14 | 显示全部楼层
写#1这样的delay是不可综合的,
调用delay cell是可以综合的。
发表于 2010-2-10 11:55:36 | 显示全部楼层
"调用delay cell是可以综合的。" 相当于gate level的调用了,也算可以综合吧。
发表于 2010-2-10 12:18:54 | 显示全部楼层
恩,应该是只用于仿真的
发表于 2010-2-10 13:19:18 | 显示全部楼层
Delay in verilog is for simualtion.

Usually, it is used in 2 ways:
1. Testbench:
    Use delay to how data is sent to design.
2. Gate behavior:
    Due to difference between simulator engine,how signal's value is calculated
    is different, especially your syntax is combined  Flip-Flop and relative cone
    logic. So, usually , we will ad delay like this :
    always @(*) begin
        A <= #1 B+C;
    end
    The purpose of this "#1" is: we want to make A and "B+C" 's value   
    calculation time different to avoid simulator 's difference.
    ( simulator: for ex, verilog-xl, ncverilog, modelsim)
    (  Actually, some behavior in verilog-xl simulator is wrong.)
发表于 2010-2-10 13:22:54 | 显示全部楼层
34# abnerliu

Another point is:

For same simulator engine, RTL and gate level 's simulation result  may be not the same, because you dunno how other people make standard cell library 's behavior, and "not safe" behavior may cause your gate level simualtion fail( even your rtl level simulation is correct)
发表于 2010-3-22 22:16:47 | 显示全部楼层
仿真用,不能综合
发表于 2010-4-14 18:22:59 | 显示全部楼层
一般不可综合
发表于 2010-7-22 17:20:16 | 显示全部楼层
在RTL级建模中,由于没有物理电路与延时语句相对应,所以时延语句是不可综合的。但是在行为级,可以使用延时对语句更好地模拟真实电路的行为。[img][img][/img][/img]
发表于 2010-7-22 19:09:59 | 显示全部楼层
支持一下啊啊
发表于 2010-7-24 10:20:07 | 显示全部楼层
一般正规的公司的编码规范里会要求增加这个延时,  其实这个目的主要是为了同步设计的仿真,表达一下真实电路这里是有一个电路延时的。  这样产生波形的时候,信号会延迟时钟沿一点,对入门的人来说,就更为明确每个时钟周期里信号的赋值是什么。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

X

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

GMT+8, 2025-7-4 07:10 , Processed in 0.020915 second(s), 7 queries , Gzip On, MemCached On.

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