What's the difference between '#5 a = b;' and 'a = #5 b;'?

Status
Not open for further replies.

wufei

Junior Member level 2
Joined
Nov 2, 2007
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Moon
Activity points
1,417
#5 a=b

What's the difference between '#5 a = b;' and 'a = #5 b;'?

#5 a = b;

and

a = #5 b;
 

difference of 5

how can i verify the difference?
 

difference between 5a and 5b

Simulate in Modelsim and check..!!!!

# 5 a = b ; Its Inter assignment delay

a= # 5 b ; Its Intra assignment delay

Intra-assignment delays block assignment but not evaluation
Inter-assignment delays block both evaluation and assignment

For details refer any verilog book.
 

thanks
but it seems that simulations of these two assignments in Modelsim have the same results...
 

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