What is the main purpose of get_response(rsp) method in master sequences

In reply to pkoti0583:

get_response() is a blocking call in the sequence which will be unblocked by the driver by using the put_response() method.

So in your sequence, if you want to get the response of a transaction before sending a second transaction to the driver then you use the get_response() method after sending the first transaction so that it will be blocked till the master get the response from the slave and sends it back to the sequence through the “put_response()” call.

Hope this helps.

1 Like