# $monitor is not printing the all value changes when class variable is used inside the system task

**URL:** <https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520>\
**Category:** SystemVerilog\
**Tags:** monitor, SystemVerilog\
**Created:** [May 27, 2014, 12:59pm UTC](https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520 "2014-05-27T12:59:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![muralidar](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@muralidar](https://verificationacademy.com/forums/u/muralidar)\
**Post date:** [May 27, 2014, 2:07pm UTC](https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520/3 "2014-05-27T14:07:56Z")

</div>

_In reply to [Naven8](https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520/2):_

I tried with $display. It is working. But if i give some delay in repeat block like below, then the all the random values should be printed. But the output is same.  
Can i know the reason? How can i print all the random values using $monitor in my scenario?  
In this case how a time stamp can be defined?

initial begin  
repeat(10)  
#10;  
s1=new;  
s1.randomize();  
end

---

_[View the full topic](https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520)._
