How To Know Which Sequence is Currently Running?

How do I know which sequence is currently running? For now the way I do this is that I put an ovm_info in my suspected sequence then run again the test. If I see it in the simulation log then I'm lucky, but if not then I need to guess which sequence should I put the ovm_info. I don’t like this method since it is so time-consuming. That’s why I’m asking if there is an easier way.

Regards,
Reuben

A part of the UVM “philosophy” is that vendors promote and use the same library, but they differentiate on tooling around this library. To this effect, vendors usually provide UVM debug capabilities into their tools, including support for showing which sequences are running. You’ll have to look in your vendor’s user manual to find relevant information.

You can still get a list of which sequences are running on a given sequencer with good old fashion debugging, by inspecting each sequencer’s internal variables. You’ll have to figure out yourself which ones those are. There might also be something akin to a get_running_sequences() method, with which you could obtain this information in your own code and process it to print out debug information.