In reply to pawan:
You need show how the for loop gets called. Where is it defined? Also, put a breakpoint or $display statement before the for loop and see if you are hitting it twice.
In reply to pawan:
You need show how the for loop gets called. Where is it defined? Also, put a breakpoint or $display statement before the for loop and see if you are hitting it twice.