I am trying to develop a scenario where my Re-active agent gets signals from Passive output agent monitor and injects errors and again drives them back to DUT. The signals(with errors) can be either passed as
1) error sequence item passed to driver through a sequencer.Monitor analysis port connects sequencer analysis port.
2) Driver generates error itself through a driver callback class. Monitor analysis port connects driver analysis port.
Can I use both of these methods in my test bench. In that case, can I have a controlling switch in my config DB which if true(1) will use method 1, else(0) use method 2.
Will I be needing two sequencers here? One for method1 and one for method2, and there will be a virtual sequencer. Based on the config value, virtual sequencer will connect driver to either of the two sequencers.