How to get handle to env from the sequence in uvm?

In reply to cgales:

It’s just an example. I may want to switch off any component when needed.

The circumstance I was facing is that, at the very begining I need some illegal stimulus feeding the dut, and after a while, I reset the dut, and finally I feed some new legal trans.

In the first phase, I need to switch off the scoreboard, or monitors whatever, because I dont care about the errors or any stucks there. I’ll reset it anyway.

I turn on the checking after I reset and restart my new legal trans.

I know my approach is awkward so I hope you guys could offer me better solutions.

1 Like