NO HANDLE OF VIRTUAL INTERFACE IS RECEIVED

I have all my files compiled well, but for simulation i have fail status because this message :
NO HANDLE OF VIRTUAL INTERFACE IS RECEIVED

initial begin 
            $timeformat ( -6, 3, " us", 10);
              uvm_config_db#(virtual ahb_interface) :: set(null , " uvm_root* ", " ahb_s0", ahb_s0 ) ; 
              uvm_config_db#(virtual spi_interface) :: set(null , "uvm_root*",  " spi_m0", spi_m0 ) ;
            run_test() ; 
  end

I have this as a code, so can you propose me solution to resolve that ?

In reply to uvm_share:

Replace “uvm_root*” with “*”. Also, get rid of the spaces in your string names.

Thank you Sir,

I try to make it but i have always the same problem, so this is my last code :

 $timeformat ( -6, 3, " us", 10);
              uvm_config_db#(virtual ahb_interface)::set(null, "*", "ahb_s0", ahb_s0);
              uvm_config_db#(virtual spi_interface)::set(null, "*", "spi_m0", spi_m0);
  run_test(); 

H

In reply to uvm_share:

You will need to show us the code that does the config_db::get and produces the error message.

if(!uvm_config_db #(virtual ahb_interface)::get(this,“”,“vif”,vif))
`uvm_fatal(get_full_name(),“NO HANDLE OF VIRTUAL INTERFACE IS RECEIVED”)

Check the key in get() call, modify the key “vif” to “ahb_s0”