Multiple UVC's/agents

In reply to leela:

If you have only one interface, then you should have only one driver connected to it and you will have only one agent (and therefore one sequencer connected to the driver). The sequencer supports many possible arbitration schemes (see the Cookbook). The key is that you’ll want all your sequences running in parallel on the sequencer. So, from your test, you’d do something like:

class my_test extends uvm_test;
  `uvm_component_utils(my_test)
  task run_phase(uvm_phase phase);
    env.agent.sequencer.set_arbitration(arb_type);
    phase.raise_objection("starting",this);
    fork
      seq1.start(env.agent.sequencer);
      seq2.start(env.agent.sequencer);
      seq3.start(env.agent.sequencer);
      ...
    join
    phase.drop_objection("completed",this);
    endtask
endclass

This allows each sequence to attempt to send transactions in parallel. In reality, since there’s only one interface to the DUT, it can only handle one transaction at a time, so this setup allows the driver to request one transaction at a time from the sequencer which will select from the multiple parallel sequences (according to the arbitration scheme you select) which transaction to send to the driver.
So, if you have one sequence generating A,B,C,D… and another sequence generating 1,2,3,4…, running them in parallel on the same sequencer with default arbitration would yield a transaction stream to the driver of A,1,B,2,C,3,D,4…
Your resulting transaction stream is interleaved, but as far as the driver is concerned, it’s just getting a series of transactions from the sequencer. This is part of the beauty of UVM.
Hope this helps,
-Tom