h*g
2 楼
向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
comb,一个用在seq。
回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
,发现回答这个问题能将很深。
想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
哪几个点答到了才算good呢?
多谢多谢~~
很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
comb,一个用在seq。
回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
,发现回答这个问题能将很深。
想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
哪几个点答到了才算good呢?
多谢多谢~~
h*g
4 楼
在线等 T-T
s*r
6 楼
If you can answer that question by explaining how simulator schedules the
event, that should be good enough.Of course, if you can give some examples,
that will be always good.
event, that should be good enough.Of course, if you can give some examples,
that will be always good.
f*8
7 楼
会有串行和并行执行的区别吧。综合出来的电路差异大
【在 h******g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
【在 h******g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
t*3
8 楼
我觉得从使用语言的角度,LZ的解释足够了。没必要一定要把prepond/active/
reactive/postpond那几个zone都一一解释清楚。当然最好可以结合一个flip-flop赋值
的例子来显示blocking/non-blocking的区别。
reactive/postpond那几个zone都一一解释清楚。当然最好可以结合一个flip-flop赋值
的例子来显示blocking/non-blocking的区别。
f*8
12 楼
会有串行和并行执行的区别吧。综合出来的电路差异大
【在 h******g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
【在 h******g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
a*e
13 楼
The difference is mainly on simulation. whether you use blocking or non-
blocking, the logic that got synthesized is the same. However, because of
the the simulator has to simulate concurrent, at the same time slot,
multiple events have to be scheduled in some pre-defined order. Per verilog
standard, the non-blocking RHS will be evaluated first, and then the LHS
assignment is done next. This behavior will simulate the pipeline behavior
in reality. While the blocking assignment will have RHS evaluated and LHS
assignment done at the same time, and different blocking assignment could be
evaluated in any order, there is no guarantee. Therefore, it could cause
mismatch between the behavior and gate simulation results.
【在 h******g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
blocking, the logic that got synthesized is the same. However, because of
the the simulator has to simulate concurrent, at the same time slot,
multiple events have to be scheduled in some pre-defined order. Per verilog
standard, the non-blocking RHS will be evaluated first, and then the LHS
assignment is done next. This behavior will simulate the pipeline behavior
in reality. While the blocking assignment will have RHS evaluated and LHS
assignment done at the same time, and different blocking assignment could be
evaluated in any order, there is no guarantee. Therefore, it could cause
mismatch between the behavior and gate simulation results.
【在 h******g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 向版上有经验的大神求助。某大公司面试时候问了我Blocking和Non Blocking的区别。
: 很常见的题,但是答得很烂,我就说 一个会堵塞下面语句执行,一个不会;一个用在
: comb,一个用在seq。
: 回头想想,自己说的都是很浅的层面,或者是自己根本没理解,于是google了一些资料
: ,发现回答这个问题能将很深。
: 想问问各位前辈,这个问题要答多深才会让面试官满意?是否要从 逻辑综合,仿真器
: 的schedule simulation,等各个层面解释一遍,还需要举几个代码的例子么。。。把
: 哪几个点答到了才算good呢?
: 多谢多谢~~
相关阅读
问一个面试问题?Variable and signal which will be Updated first?邮寄芯片到中国可行性come on, guys, be professional审稿人代表杂志向我道歉。。。 (转载)问一下vlsi哪些学校比较强?哎,EE还是不如CS阿compressed sensing 有什么用?有偿寻电路板设计高手小声问一下,有在Redhat Linux下用ADS的吗?which control theory textbook ? (for reference)想问下3G BS对多个mobile user用同一个buffer还是每个mobile us投了2个月了,没啥好的进展,贴简历出来,大家提提意见 (转载)谁用过ddc232或者adas1128顶风继续问,plasma processes for the fabrication of nanoscale devices这个方向怎么样啊Motorola CMOS 6805EE难道这么差?有程序问题请教,有报偿。发个牢骚,顺便征求一下意见请教个verilog问题