In reply to dileep254:
This is my sequencer component created in my_sequencer.svh
class my_sequencer extends uvm_sequencer#(trasaction);
`uvm_component_utils(my_sequencer)
function new(string name=“”,uvm_component parent);
super.new(name,parent);
endfucntion
endclass
…
THis is my agent component created in agent.svh
class my_agent extends uvm_agent;
`uvm_component_utils(my_agent)
my_driver drv;
my_sequencer sequencer;
function new(string name,uvm_component parent);
super.new(name,parent);
endfunction
function void build_phase(uvm_phase phase);
drv=driver::type_id::create(“driver”,this);
sequencer=my_sequencer::type_id_create("sequencer);
endfucntion
function void connect_phase(uvm_phase phase);
drv.seq_item_port.connect(sequencer.item_export);
endfunction
endclass
…