I want to do a configuration class handle in an "interface".
Lets say interaface has 2 instances and each instance will have its own configuration handle.
Lets assume my interface doesnt have knowledge of whether it is interface instance0 or interface instance1.
If I want to do uvm_config_db::get inside an interface, how can I do it?
Please note that we cant use "this" inside an interface.
As an example :
uvm_config_db#(dfi_intf_pkg::dfi_intf_cfg)::get(uvm_root::get(), "*", "cfg", cfg))
The above statement has issue that we cant be sure that instance 0 will get cfg handle 0 and instance 1 will get config handle 1.
If uvm_root::get() is replaced by "this", it would have worked fine(I think so) but we cant have "this" inside an interface.
Please let me know how to do it?