I am trying to override drive with another driver. both are dervied from uvm-driver but i get fatal error
error:UVM_FATAL @ 0: reporter [FCTTYP] Factory did not return a component of type ‘adpcm_driver’. A component of type ‘adpcm_driver1’ was returned instead. Name=m_driver Parent=adpcm_test contxt=uvm_test_top
code:
factory.set_inst_override_by_type(adpcm_driver::get_type(),adpcm_driver1::get_type(),$sformatf(“*.m_driver”));
m_driver = adpcm_driver::type_id::create(“m_driver”, this);
m_sequencer = adpcm_sequencer::type_id::create(“m_sequencer”, this);
can anyone help me with this.