Difference between the Delay in verilog

Status
Not open for further replies.

RubyS

Newbie level 6
Joined
Sep 12, 2012
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,368
Whats the differnce between
#10 b=0;
and
b=#10 0;
 

"In #10 b = 0; the simulator will execute b = 0; after 10 units of time (like inertial delay). In b = #10 0; "0" will be assigned to "b" after 10 units of time (like transport delay)."
Answer to similar question also available at: https://only-vlsi.blogspot.com/2008/01/verilog-2.html

Hope this will be helpful.
 
#10 b=0; execution of this command will be happened only after 10 time units (inter delay assignments)
whereas "b=#10 0;" command starts execution in "0" time units, but the value(0) is assigned to "b" only after 10 time units.(intra delay assignments)

hope this will add some more idea.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…