I have created below extended class. When I do
set_type_override_by_type(uvm_mem::get_type(),new_mem::get_type));
I get the uvm_error
!UVM_ERROR! [NOTYPID] get_type not implemented in derived class. (:0). I have registered the new_mem to the factory. Not sure what is missing.
class new_mem extends uvm_mem;
`uvm_object_utils(new_mem)
bit[MEM_WIDTH:0] ref[int];
function new(string name = "new_mem");
super.new(name,0,0);
endfunction
endclass