微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微电子和IC设计 > IC验证交流 > 经典IC设计面试问题4

经典IC设计面试问题4

时间:10-02 整理:3721RD 点击:
Difference between inter statement andintra 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
//tob.
end
//Equivalent method with temporary variables andregular delay control
initial
begin
a = 0; c = 0;
temp_ac =a + c;
#5 b = temp_ac; //Take value of a + c at the current timeand
//store it in a temporary variable. Even though a andc
//might change between 0 and 5,
//the value assigned to b attime 5 is unaffected.
end

顶一个。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top