Driver code

Hi,

can anyone tell me the difference between the following codes:-
In driver code

get_next_item(req);




item_done();

===========================================

get_next_item(req);




item_done(req);

what will happen when we put req in item_done.

In reply to lalithjithan:

Hi,

The parameter to the item_done() is optional. The “rsp” is required only if it is specified. When it is passed then it will unblock the finish_item() in the sequence body.

In reply to lalithjithan:

The UVM Cookbook explains the various sequencer/driver APIs on this page.