Is there a saved name for the sequencer that the sequence related to ? i saw using of m_sequencer this is righ?

i searched for m_sequencer but didn’t find anything about it , but it works!

In reply to aliabosaleh:

What are you trying to accomplish? The ‘m_sequencer’ variable will contain a handle to the sequencer that the sequence is running on. This is of type ‘uvm_sequencer’.

i want to change the scheme of the sequencer from the build of one of the sequence that i have in the code…
i used m_sequencer and it works, but i don’t know why… i searched to know why this is ok, and did’nt find anything , i want to be sure that i know what i do.

In reply to aliabosaleh:

What do you mean by “change the scheme of the sequencer from the build of one of the sequence”?

Did you look at the source code? Search for m_sequencer…

Also, as a suggestion, if you are starting something new, you should use UVM and not OVM.

there is no m_sequencer in the code,
i have to use ovm , not uvm.
change the scheme of the sequencer, i mean to change the Sequencer Arbitration , i want to change it to SEQ_ARB_RANDOM…

In reply to aliabosaleh:

Did you run ‘grep -r m_sequencer ovm-2.1.2/src’?

If you did, you will find m_sequencer defined in ovm_sequence_item.svh

This may seem confusing, except when you follow ovm_sequence is extended from ovm_sequence_base, which is extended from ovm_sequence_item.

I would recommend NOT changing the arbitration method from a sequence. The arbitration method should be specified at the test level. You should therefor change it in the test.