UVM question : Assuming, UVM environment has 3 different agents having scope to their own interfaces. On driving wrong stimuli on agent1, there will be error pin asserted on interface3(monitor of agent2 sees this). soon after error-pin assertion, there should be a read transaction from agent2. How do you make sure your agent2 drives a read transaction on every wrong stimulus from agent1, which was seen on a monitor of agent2 ?
Sigiloso
Use a analysis port to transport the error pin data back to sequencer of agent 2. Create a sequence inside the sequencer and start the sequence inside the write method implementation of the analysis imp. Make sure the sequence priority is high as compared to the default sequences run on the Agent 2 sequencer.