I am trying to override a class to change a minor functionality for my project.
I have a class in a package that I want to override with another class in a different package. The files look something like this:
class class_to_override #(type T = apples, type VI = some_if) extend uvm_monitor;
class new_class #(type T = apples, type VI = some_if) extend class_to_override;
and in my uvm_test start_of_simulation_phase, I have
class_to_override#()::type_id::set_type_override( new_class#()::get_type() );
It doesn't seem to perform the override, is it because I'm missing some syntax? Do I have to put the type parameters in my set_type_override line?
There doesn't seem to be any errors during the simulation but it is clear to me that class_to_override still runs instead of new_class from `uvm_info monitoring