What is the difference between the two code snippets?

In reply to Verif Engg:

If I may suggest - please run both code in 2 different simulations and observe (Make sure clock is ticking, vif.sof is set to 1 and 0 during the sims).

Be ready for a good learning experience :-)

Regards
Srini