Race conditions

Dear Dave,

I am not saying “reset” has an impact rather “repeat” construct should repeat value of w to 1 for 2 neg-edge of clock cycles .
####################################################
{w,reset} = {1’b1,1’b1};
repeat(2)
@(negedge clock);
#####################################################

But the following snippet doesn’t repeat w to 1 for 2 negedge clock cycles rather in the first negedge i.e transition from x to 0 toggles initial value of w from 1 to 0.
######################################################
always@(negedge clock)
begin
w = ~w ;
end
########################################################