Case 1:
seq_item_port.get_next_item(req);
seq_item_port.item_done(rsp);
…..
….. // Drive transaction on the interface and sample response / read data
…..
rsp_port.write(rsp); // Sending the response sampled from the bus to the Sequencer in parallel
Case 2:
seq_item_port.get_next_item(req); // Get the transaction packet from Sequencer
…..
….. // Drive transaction on the interface and sample response / read data
…..
seq_item_port.item_done(rsp); // Send the response packet to Sequencer
I want to send the response from Driver to the sequence back. Which of the above is best to be implemented and what is the difference.