Confusion in Run and Reset phase

In reply to sunils:

Thanks, but that does not clear my doubt about how to use reset phase and wait for reset phase completion before the run phase begins.