Query related to getting response back from DUT

In reply to cgales:

Thank you for reply vinay and cgales…In my case there is no indication signal about response, i.e. how many responses is coming from DUT. so i can’t use vinay’s idea here. but as per cgales suggetion i put the get_response(rsp) inside the “while(1)” loop to get all responses for one request.

It (sequence) is collecting all responses from Driver. But the problem is, I want to start new sequence respect to one of the response field value. I could’t achieve this because of that while(1) loop. I thing this loop is always looking for response. So how can i start the new request respect to response field value?? Thanks in advance…

Code Snippet:
Inside the sequence…

task body();

while(1)
begin
get_response(rsp);

if(rsp.re_transmit == 1)
begin
start_item(req);


finish_item(req);
end
end
endtask