How do I use set_inst_override_by_type to an instance whose class has many children?

In reply to Varunshivashankar:

Several things to help:

  1. You should make use of configuration objects and the build_phase to be more suitable for UVM. This precludes the need to create specialized setup and initialization functions and is more in line with UVM recommendations. All components should be created and configured in the build_phase.

  2. The initialize_setup() functions don’t have a return type. The function should be declared as void if you don’t need a return value.

  3. The initialize_setup() function needs to be declared as virtual. This will allow the proper use of the override functionality.