1.

What Is The Difference Between The Following Two Lines Of Verilog Code?

Answer»

#5 a = B;
a = #5 b;
#5 a = b;

Wait FIVE time units before doing the ACTION for "a = b;". 

a = #5 b; The value of b is calculated and STORED in an internal temp REGISTER,After five time units, assign this stored value to a. 

#5 a = b;
a = #5 b;
#5 a = b;

Wait five time units before doing the action for "a = b;". 

a = #5 b; The value of b is calculated and stored in an internal temp register,After five time units, assign this stored value to a. 



Discussion

No Comment Found