In reply to chr_sue:
I want to provide the sequence_items in a storage element to the sequence. The question is how to pass this storage element to the sequence.
I was not able to get a uvm_tlm_fifo from my base_sequence for this purpose. Let me share the code that I tried. The code compiled, but I didn’t receive the handle for the fifo as I expected.
Code in base_test:
uvm_tlm_fifo #(packet_uvc::tx_item #()) pkt_in;
pkt_in = new("pkt_in");
uvm_config_db#(uvm_tlm_fifo #(packet_uvc::tx_item #()))::set(this,"*", "pkt_in",pkt_in );
Get in base_sequence:
`uvm_declare_p_sequencer(packet_uvc::tx_sequencer);
uvm_config_db#(uvm_tlm_fifo #(packet_uvc::tx_item #()))::get(p_sequencer, "", "pkt_in", pkt_in );
Thanks,
Neha