In reply to chr_sue:
I tried that. I am setting config_db in test and getting it in interface.
//My Test
class test;
…
function build_phase;
…
uvm_config_db#(config_class)::set(this,“*”,“config_class”,c1);
…
endfunction
…
endclass
//My Interface code
interface intf;
function void config_fun;
config_class c1;
if(uvm_config_db#(config_class)::get(null,“”,“config_class”,c1))
$display(“values are %0p”,c1);
endfunction
Note : When displaying, its showing null,(Not able to get the config class).
Is the above syntax correct?