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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3122|回复: 4

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

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

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

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

x
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 | 显示全部楼层
嘿嘿,很基础,练英语了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-21 11:13 , Processed in 0.041314 second(s), 9 queries , Gzip On, Redis On.

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