I am trying to read a UVM Register from run_phase of UVM_Monitor and getting the following error
Error-[IOUCM] Illegal use of class method
dmtcomplex_uvc_pkg, "uvm_pkg::\uvm_reg::read (this.m_dmtcomplex_uvc.m_dmt_reg_block.dmt.dmtint, \this .status, this.intr_occurred, /* path = UVM_DEFAULT_PATH */, /* map = null */, /* parent = null */, /* prior = (-1) */, /* extension = null */, /* fname = "\000" */, /* lineno = 0 */);"
Class methods can't be used in the current context.
Please check LRM for class method usage.
Please let me know if I can call UVM register read or write method from uvm_monitor