# Multiple req-ack using single driver

**URL:** <https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [December 2, 2016, 4:00am UTC](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609 "2016-12-02T04:00:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_m\_patil](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@rahul\_m\_patil](https://verificationacademy.com/forums/u/rahul_m_patil)\
**Post date:** [December 2, 2016, 4:00am UTC](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609/1 "2016-12-02T04:00:11Z")

</div>

When ‘req’ goes high, the DUT sends ‘ack’ after which data can be driven to the DUT.

Likewise, I have ‘req\_1’ and ‘req\_2’.

Say ‘req\_1’ and ‘req\_2’ are both high and only ‘ack\_1’ is received, following which ‘data\_1’ is sent to DUT. At this time the ‘data\_2’ holds some value on its bus. So the next time when I randomize, only ‘data\_1’ should be randomized. ‘data\_2’ should hold its previous value until it gets its ‘ack\_2’ from the DUT.

Can this done from a single driver ? If yes, then how to do this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![sree205](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@sree205](https://verificationacademy.com/forums/u/sree205)\
**Post date:** [December 2, 2016, 6:41am UTC](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609/2 "2016-12-02T06:41:33Z")

</div>

_In reply to [rahul\_m\_patil](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609):_

Hi Rahul,  
I have one question

Can you not set the rand\_mode to 0 for the data which didnt get the ack OR can you not selectively play with .rand\_mode depending on which ACK you got? Whats the issue in doing this?

If there is an issue with above approach can you please copy paste your code where you called the sequnce and the sequence code?

Thanks,  
Suyog

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [December 2, 2016, 6:59am UTC](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609/3 "2016-12-02T06:59:07Z")

</div>

_In reply to [rahul\_m\_patil](https://verificationacademy.com/forums/t/multiple-req-ack-using-single-driver/32609/2):_

Is there any relationship betwen data\_1 and data\_2? If not then it does not matter to process in the first cycle data\_1 and in the second one a newly randomized data\_2.
