Factory over-ride mechanism for sequence

I have a base sequence in VIP. I need 2 BFMs of the same VIP. I also have to have 2 sequences which extend from the base sequence. I need to override the base sequence twice differently to produce these two sequences from the top. type_override by type produces only the latest over-ride request. Is there another way ? Kindly suggest.

Thanks
Sree Krishna DS

Hi,

you could use instance overriding with one of:

set_inst_override_by_type

set_inst_override_by_name Configures the factory to create an object of the override’s type whenever a request is made to create an object of the original type using a context that matches full_inst_path.

set_type_override_by_name Configures the factory to create an object of the override’s type whenever a request is made to create an object of the original type, provided no instance override applies.

See the UVM doc for more details.
In uvm-1.2/docs/html/index.html, Chapter “Factory”->“uvm_factory”
downloaded from UVM (Universal Verification Methodology)

Hope that was what you were looking for.

In reply to katce:

set_inst_override_by_type worked. Thanks katce.

In reply to SreeKrishnaDS:

You’re welcome!