Hi
Can I use while statement substitute by wait statement or vice versa in uvm?
// Code your testbench here
// or browse Examples
module top;
bit temp =1;
initial begin
$display("ACODE");
while(temp!=0) begin
#5;
$display("waiting in whle loop");
end
wait(temp==0) $display($time,"BCODE");
end
initial begin
#30;
temp=0;
end
endmodule
I think there is no difference between them, If I wrong, Would you please help me for understanding what they difference ?