Starting sequence on null sequencer

UVM_FATAL @ 0: reporter@@mas_wr_seqs_h [STRITM] sequence_item has null sequencer
I have written this line in test run phase

mas_wr_seqs_h.start(null);

In reply to heer tariwala:

Only virtual sequences can be run on a null sequencer. A sequence that generates sequence items needs to be started on a sequencer that is typed with the specific sequence_item.

In reply to cgales:
If I dont want to specify the sequencer directly then what can I do?
I have an idea that we can use p_sequencer but I dont know how to do it.

In reply to heer tariwala:

You have to specify the sequencer. How else would the sequence know which sequencer to run on?

The use of p_sequencer can provide a handle to a specific type of sequencer from within your sequence, but you still need to specify the sequencer to start on.

Can you explain more about why you don’t want to specify the sequencer directly?

In reply to cgales:

nothing it’s just a curiosity

In reply to heer tariwala:

Did you got any answer? I also want to know.

In reply to m_v:
No, If I get the answer I will share the answer.

There is no answer other than you need to provide a handle to an appropriately typed sequencer when you start a sequence which generates sequence_items. UVM can’t guess which sequencer you want your sequence to run on.

You can only start a virtual sequence on a null sequencer as long as you provide the appropriate sequencer handles for the sub-sequences.