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

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 3472|回复: 4

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

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

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

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

×
What is meant by         inferring latches,how to avoid it?

Consider the following :         
always @(s1 or s0 or i0 or i1 or i2 or i3)
case ({s1, s0})         
2'd0 : out = i0;
2'd1 : out = i1;
2'd2 : out =         i2;
endcase

in a case statement if all the possible         combinations are not compared and default is also not specified like in         example above a latch will be inferred ,a latch is inferred because to         reproduce the previous value when unknown branch is specified.
For         example in above case if {s1,s0}=3 , the previous stored value is         reproduced for this storing a latch is inferred.
The same may be         observed in IF statement in case an ELSE IF is not specified.
To         avoid inferring latches make sure that all the cases are mentioned if         not default condition is provided.
发表于 2010-11-27 13:34:58 | 显示全部楼层
谢谢louzhu分享!
发表于 2010-11-27 23:36:11 | 显示全部楼层
张宁益
发表于 2010-11-27 23:47:18 | 显示全部楼层
dsfsdfgsdf
发表于 2011-7-18 10:59:13 | 显示全部楼层
嘿嘿,很基础,练英语了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-26 06:14 , Processed in 0.229983 second(s), 5 queries , Gzip On, Redis On.

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