In reply to chr_sue:
I have a simple driver and a simple sqr to send item. my question is how to get the data from monitor in the test directly. do you mean we can just use below method to do it ?
in my_test.svh file :
my_env env_inst;
logic data = env_inst.agt_inst.mon_inst.data;