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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3644|回复: 2

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

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

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

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

x
ifference between blocking and non-blocking?(Verilog interview questions that is most commonly asked)

                                 The         Verilog language has two forms of the procedural assignment statement:         blocking and non-blocking. The two are distinguished by the = and <=         assignment operators. The blocking assignment statement (= operator)         acts much like in traditional programming languages. The whole statement         is done before control passes on to the next statement. The non-blocking         (<= operator) evaluates all the right-hand sides for the current time         unit and assigns the left-hand sides at the end of the time unit. For         example, the following Verilog program

// testing blocking and         non-blocking assignment

module blocking;
reg [0:7] A,         B;
initial begin: init1
A = 3;
#1 A = A + 1; // blocking         procedural assignment
B = A + 1;

$display("Blocking: A= %b B=         %b", A, B ); A = 3;
#1 A <= A + 1; // non-blocking procedural         assignment
B <= A + 1;
#1 $display("Non-blocking: A= %b B= %b",         A, B );
end
endmodule

produces the following output:         
Blocking: A= 00000100 B= 00000101
Non-blocking: A= 00000100 B=         00000100

The effect is for all the non-blocking assignments to         use the old values of the variables at the beginning of the current time         unit and to assign the registers new values at the end of the current         time unit. This reflects how register transfers occur in some hardware         systems.
blocking procedural assignment is used for combinational         logic and non-blocking procedural assignment for sequential
发表于 2010-11-27 16:54:44 | 显示全部楼层
dddddddddddddddd
发表于 2011-1-20 20:42:12 | 显示全部楼层
讲不清楚~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-21 08:36 , Processed in 0.037447 second(s), 9 queries , Gzip On, Redis On.

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