How to stop or kill the running sequences

In reply to srikanth_m:

Hi,

It can be achieved using fork … join_any and disable fork constructs.

Inside virtual sequence body part…

task body ();
...
fork
  seq1.start(seqr1,this);
  seq2.start(seqr2,this)
join_any

disable fork;

...
endtask
               **OR**

Inside tescase run_phase/main_phase ....

task run_phase (uvm_phase phase);
  super.run_phase(phase);
  phase.raise_objection(this);
  ...
  fork
    seq1.start(seqr1,this);
    seq2.start(seqr2,this)
  join_any
  disable fork;
  ...
  phase.drop_objection(this);
endtask