To restrict the visibility of interface to agent only using config_db

In reply to chr_sue:

In reply to jj_bukhari:
If you are using a path like this “top.*.agent”, then the access is restricted to components with the name ‘agent’, independently how the hierarchical path between top and agent is.

but it is not working, sir.

below set method, I have used in my main question above(in test),


uvm_config_db#(virtual intf)::set(null,"*.agent_h","intf_h",intf_h); // I have tried with uvm_root::get() also,but no change.

and below get method, I have used in the test.


uvm_config_db#(virtual intf)::get(this,"","intf_h",intf_h)