In reply to cgales:
OK.
There is no error but also i am not able to put the data in analysis fifo.
I am adding some part of the code.
code:-
class spi_slave_sequencer extends uvm_sequencer#(spi_transaction);
`uvm_component_utils(spi_slave_sequencer);
uvm_tlm_analysis_fifo#(spi_transaction) seq_item_fifo;
spi_transaction spi_trans_h;
extern function new(string name = "spi_slave_sequencer",uvm_component parent);
extern function void connect_phase(uvm_phase phase);
extern task run_phase(uvm_phase phase);
endclass : spi_slave_sequencer
function spi_slave_sequencer::new(string name = "spi_slave_sequencer",uvm_component parent);
super.new(name,parent);
..............
/** A analysis fifo to store the transaction*/
seq_item_fifo = new("seq_item_fifo",this);
endfunction : new
function void spi_slave_sequencer::connect_phase(uvm_phase phase);
super.connect_phase(phase);
endfunction : connect_phase
task spi_slave_sequencer::run_phase(uvm_phase phase);
.........
//seq_item_fifo.write(spi_trans_h);
seq_item_fifo.put(spi_trans_h);
$display("fifo size = %0d",seq_item_fifo.size());
...........
endtask :run_phase