Guest
I am unable to understand the simulation result of the following code:
initial
begin
#1 a = 0;
#0 a = a + 1;
end
After the first statement, a = 0 at time 1 as expected. But on
executing the second, a is shown transitioning from x to 1. Shouldn't
it have been from 0 to 1 instead?
Could someone please explain this result?
Thanks
initial
begin
#1 a = 0;
#0 a = a + 1;
end
After the first statement, a = 0 at time 1 as expected. But on
executing the second, a is shown transitioning from x to 1. Shouldn't
it have been from 0 to 1 instead?
Could someone please explain this result?
Thanks