Incorrect Path while using uvm_hdl_read routines

Hi,

I am using the uvm_hdl_read routine to acces a DUT path inside my coverage class.
The code works fine without any issue when i run in standalone mode, but I get the below error when I run the tests in a regression.
I understand that some DPI setting for my standalone compilation is different from the Regression Compilation command, but I am unable to figure out the actual root cause.

I am using uvm-1.1d and Questasim-10.7c

Below is the code Snippet and the Error message.

class cov extends uvm_component;
  `uvm_component_utils(cov)
  extern function new ();
  extern task run_phase();
  extern task mode();
endclass

task cov:run_phase();
  super.run_phase();
  mode;
endtask 

task cov: mode ();
  int read_data;
  uvm_hdl_read (tb_top.dut.inst1.signal, read_data);
endtask

Error Message:
UVM_ERROR: Unable to read value from ‘tb_top.dut.inst1.signal’

Either the path is incorrect, or you may not have PLI/ACC visibility to that object.

Note: There is no UVM_RAL model in this TB.

Kindly ignore if you find this question to be Tool specific.
Thanks in advance!!

Regards
DoDo

In reply to DoDo_Drx:

This forum is not for tool related issues. Please read your tool documentation or contact your vendor support team for additional assistance.

You want to look at the second part of the message and how to ensure that you have ACC visibility to your design. I’m guessing that your regression uses different settings than your standalone simulation.