In reply to asadmosab:
Hard to follow with so little code shown, but maybe you need to put your first @(posedge vif.clk_rd); inside the forever loop, or an @(negedge vif.clk_rd); at the end of the forever loop.
In reply to asadmosab:
Hard to follow with so little code shown, but maybe you need to put your first @(posedge vif.clk_rd); inside the forever loop, or an @(negedge vif.clk_rd); at the end of the forever loop.