In reply to juhi_p:
Hi Juhi,
Referring to your example, If I again send same value of 5 to abc, it does not display again. My requirememt is it should monitor continously. The example you tried to help me definitely works good for one iteration.
module abc;
sc s1;
initial begin
s1=new();
s1.main_phase();
s1.abc=5;
#2;
s1.abc=9;
#3;
s1.abc=6;
#4;
s1.abc=5;
end
endmodule