# $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:** 6

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [May 27, 2014, 3:31pm UTC](https://verificationacademy.com/forums/t/monitor-is-not-printing-the-all-value-changes-when-class-variable-is-used-inside-the-system-task/29520/6 "2014-05-27T15:31:48Z")

</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/5):_

I would never use $monitor. You are only allowed one active $monitor in your entire simulation. $monitor was used as an interactive debugging aid for Verilog-XL, which used Verilog as its tool command language.

As Naven8 write, there is also a problem if you try to reference a null class variable at time 0, you will get a fatal error.

If you really want to see the result of a class object after calling randomize(), then create a post\_randomize() method in the class to display the results.

---

_[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)._
