In reply to dave_59:
Thank you for such a quick response! I have a couple more questions though.
I didn’t realize the base/child class concept applies to a factory override scenario; I’ll read through the reference links in more detail,
However I’m not sure how to do the cast in this scenario. From my limited understanding, the factory over-ride somewhat replaces the original class with a different class, but the instance name is the same. I wasn’t thinking it extended it.
Do I need to create a new instance of my over-ride class and then cast the existing instance name to it?
e.g.
my_detailed_coverage detailed_handle;
detailed_handle = new();
cast(detailed_handle,uvm_test_top.vrp_env_inst.agent.basecoverage)
Then I can refer to: detailed_handle.my_new_attribute=1?
Is the bolded item above correct? Because of the factory override, I’m not sure what type it really is after teh override.
Thanks again,
Brian