In reply to chr_sue:
In reply to UVM_LOVE:
You get the error because your path is incomplete. The test class instantiates the env.
The path is then
p_env.p_driver.vintf
Yup it works.
BTW, should I have to use it into uvm_env class or can I use it in uvm_test class?
because generally one uvm_test can has multiple uvm_env, so I think if I use them(such as virtual interfaces) into uvm_env, it will has more something efficient as your recommends, but not sure whether I am correctly do understand your intention or not.