Sequence arbitration

can any one tell me how to use

sequence arbitration

with example…in my case 2 sequences are coming parallel how to control them?

In reply to lalithjithan:

It depends what kind of arbitration you want. The most simple in your case is using ‘priority’. In this way you can control which sequence is selected first. You can do this like this:

fork
      `uvm_do_pri(seq1, 1)
      `uvm_do_pri(seq2, 2)
join

In this case seq2 is selected first.

If you have more than 2 sequences it might make sense to set a specific arbitration mode like this:

sequencer.set_arbitration(SEQ_ARB_STRICT_RANDOM);

The following modes are available:

UVM_SEQ_ARB_FIFO
UVM_SEQ_ARB_RANDOM
UVM_SEQ_ARB_STRICT_FIFO
UVM_SEQ_ARB_STRICT_RANDOM
UVM_SEQ_ARB_WEIGHTED
UVM_SEQ_ARB_USER