How to invoke another sequence in a executing sequence?

Hi, everyone

Let me explain it in detail. Now I already run a UVM environment. But when I write test case, I met a problem. For example, I firstly start a sequence with my test. And inside this sequence, how can I start a sequence inside an already executing sequence??

Thanks

If your top level sequence runs on just one sequencer, it can start a child sequence on that same sequencer by calling:

my_child_sequence.start(m_sequencer,this);

Read Sequences/Hierarchy in the Cookbook for more information and examples.

If your top level sequence is a virtual sequence (not running on just one sequencer), your test should provide it with handles to the sequencers it needs, so that it can start child sequences running on them.

my_foo_child_sequence.start(my_foo_sequencer_handle,this);
my_bar_child_sequence.start(my_bar_sequencer_handle,this);

Read Sequences/Virtual in the Cookbook for more information and examples.