I am trying to do some changes in our uvm env for mid sim reset. I have multiple sequences, each running on their individual sequencers. As of part of changes, whenever I observe reset I am aborting sequences on each sequencer using seqr.stop_sequences() in built function. But for some sequencers I am getting null pointer, when this function is called. I concluded that error is popping up when seqr has no valid sequence executing on it (basically those sequences finished execution even before application of reset).
Is an there any variable/function inside seqr that tells, seqr has a valid sequence running on it(is_seqr_active), so that I can use it to guard stop_sequences() function call ?
if(is_seqr_active)
seqr.stop_sequences();
user24578177 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.