# How to end background reg access sequences gracefully

**URL:** <https://verificationacademy.com/forums/t/how-to-end-background-reg-access-sequences-gracefully/48453>\
**Category:** UVM\
**Tags:** SystemVerilog, testbench, uvm\_sequence\
**Created:** [September 10, 2024, 7:46pm UTC](https://verificationacademy.com/forums/t/how-to-end-background-reg-access-sequences-gracefully/48453 "2024-09-10T19:46:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kd2024](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@kd2024](https://verificationacademy.com/forums/u/kd2024)\
**Post date:** [September 10, 2024, 7:46pm UTC](https://verificationacademy.com/forums/t/how-to-end-background-reg-access-sequences-gracefully/48453/1 "2024-09-10T19:46:47Z")

</div>

Hi,

When we setup background reg accesses sequences that are spawned off with a fork join\_none, is there a good way to ensure by the time we exit run\_phase, we don’t have an outstanding reg request in the RTL which still needs to be serviced(either read response or write response/ack). Is there a recommended way to handle this?  
I do know the sequences will be killed when we exit the run phase, but DUT might still send a response back later, or maybe we end the test before it’s able to send back a response, leading to credit check failures.

Thank you!

---

<div class="post-metadata">

**Author:** ![kd2024](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@kd2024](https://verificationacademy.com/forums/u/kd2024)\
**Post date:** [September 11, 2024, 7:39pm UTC](https://verificationacademy.com/forums/t/how-to-end-background-reg-access-sequences-gracefully/48453/2 "2024-09-11T19:39:45Z")

</div>

Hi, could someone help me out with this?

Thank you!
