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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2193|回复: 1

[招聘] 经典IC设计面试问题4

[复制链接]
发表于 2010-11-27 12:22:04 | 显示全部楼层 |阅读模式

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

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

x
Difference between inter statement and         intra statement delay?

//define register variables
reg a, b,         c;

//intra assignment delays
initial
begin
a = 0; c =         0;
b = #5 a + c; //Take value of a and c at the time=0,         evaluate
//a + c and then wait 5 time units to assign value
//to         b.
end

//Equivalent method with temporary variables and         regular delay control
initial
begin
a = 0; c = 0;
temp_ac =         a + c;
#5 b = temp_ac; //Take value of a + c at the current time         and
//store it in a temporary variable. Even though a and         c
//might change between 0 and 5,
//the value assigned to b at         time 5 is unaffected.
end
发表于 2010-11-27 14:15:03 | 显示全部楼层
顶一个。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-4 07:52 , Processed in 0.037685 second(s), 9 queries , Gzip On, Redis On.

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