Uvm_config_db

In reply to dave_59:

Example:

TB_TOP:
interface if_h;
uvm_config_db#(virtual interface)::set(null,“*”,“vif”,if_h);

Driver:
virtual interface.drv_modport m_if_h
if(!uvm_config_db#(virtual interface)::get(this,“”,“vif”,m_if_h))
`uvm_fatal(“FATAL”,“You cannot get from Config_db Have you set Properly()?”)

In this example while getting the virtual interface i am getting the error like

ERROR:You cannot assign the interface if_h type to m_if_h.

Please give me the solution.