In reply to chr_sue:
[i]
The implementation in the base class is doing nothing. One very simple implementation is to count the responses. This look like this:
function void response_handler(uvm_sequence_item response);
count++;
endfunction: response_handler
It keeps also the reponse FIFO empty. Additionally you can add more functionality to this function. Using the response handler works with pipelined/out-of-order protocols.
Hello,
thanks for the reply and information. If the implementation in base class is doing nothing as said above, how does one read the response items from the response fifo. The extended method you have given is only counting the response items. Can you please clarify. How are the response item read out of the response fifo by response_handler() method.
rgs,
-sunil puranik