Hi,
I'm trying to add some functionality to the sequencer, so that when there are no more sequence items to send to the driver, it will automatically send one last sequence item.
I thought of adding in the run_phase something like this:
task run_phase()
raise_objection;
forever begin
// I need to insert here something that says that the last req is done
//checking if there are anymore seq_items available
if(!seq_item_export.has_do_available()) begin
s_item.randomize();
execute_item(s_item);
break;
end
end
drop_objection;
endtask
So, my question is how do I check in the sequencer that the last item sent is finished?
Does the sequence keep running if I add this code in the sequencer?
Thanks
P.S. The driver uses get()/put().