# How to combine req and rsp sequence item into single class?

**URL:** <https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471>\
**Category:** UVM\
**Tags:** UVM, sequence-item, REQ\
**Created:** [August 24, 2021, 5:00am UTC](https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471 "2021-08-24T05:00:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![abhishek.khule.seagate.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/8e7dd6/32.png) [@abhishek.khule.seagate.com](https://verificationacademy.com/forums/u/abhishek.khule.seagate.com)\
**Post date:** [August 24, 2021, 7:52pm UTC](https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471/5 "2021-08-24T19:52:42Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471/4):_

> _In reply to [UVM\_SV\_101](https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471/4):_  
> Thanks. But where is your problem?  
> Your req conatins both input and output data.  
> But I do not believe you want to randomize valid, ready, out\_valid and data\_out.  
> I believe valid, ready and valid\_out do not belong to the transaction. They are signals in your virtual interface.  
> Your req in transaction monitors the data members aadr, daat\_in and cmd.  
> And the rsp especially data\_out. There ios nothing to combine.  
> But I believe you need a tlm\_fifo to stote the req.

Hi,

More information on why I need to combine req, rsp:

1. Rsp comes OOO out of order so I plan to store req in associative array index- tran\_id.
2. rsp does not have valid data in “addr” signal.
3. There are more signals in req (I havent shown here in the seq\_item), which needs to be send ahead through analysis port

Hence I plan to combine the req, rsp and then send it ahead.

Do you have any suggestion how I can combine these two seq\_item and send them through single analysis port?

thnks

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-combine-req-and-rsp-sequence-item-into-single-class/39471)._
