# AXI cache

**URL:** <https://verificationacademy.com/forums/t/axi-cache/32689>\
**Category:** UVM\
**Tags:** UVM, axi\_cache, axi\
**Created:** [December 26, 2016, 6:41am UTC](https://verificationacademy.com/forums/t/axi-cache/32689 "2016-12-26T06:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul1994](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@Rahul1994](https://verificationacademy.com/forums/u/Rahul1994)\
**Post date:** [December 26, 2016, 6:41am UTC](https://verificationacademy.com/forums/t/axi-cache/32689/1 "2016-12-26T06:41:42Z")

</div>

Can anyone tell, how to implement cache concept in axi verification ip? Is cache concept required in VIP to verify complete protocol(like to verify cacheable,bufferable concept)??

Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![S.P.Rajkumar.V](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@S.P.Rajkumar.V](https://verificationacademy.com/forums/u/S.P.Rajkumar.V)\
**Post date:** [December 27, 2016, 8:00am UTC](https://verificationacademy.com/forums/t/axi-cache/32689/2 "2016-12-27T08:00:52Z")

</div>

Hi Rahul,

cache-ability/Buffer-ability basically is a property of the interconnect/memory management unit which changes the characteristics of the transaction reaching the slave in terms of the data width, transaction size etc.  
Ex: Two 16bit consecutive writes to a slave can be translated to one one 32 bit write at slave (First 16bit data & address will be buffered by the interconnect). Similarly, two consecutive 16-bit reads from master can translate only to a single 32-bit read from slave (32-bit read data and address will be cached by the interconnect).

In order to verify this, basically the same addr/read data cache, addr/write data buffer needs to be implemented in your end-to-end master slave AXI scoreboard of VIP (if you are planning to deliver one with your VIP). So, appropriate master/slave transaction comparison can be made instead of doing a regular one-to-one transaction comparisons which can result in false failure in such cases.

Thanks,

Note:

1. Care must be taken to flush/update the buffer/cache contents in the scoreboard based on the transactions generated by AXI master.
2. I have worked on cache-able/buffer-able for other processor protocol and verified the same. I believe the underlying concepts remains the same with AXI too, and any minor differences need to be taken care.

---

<div class="post-metadata">

**Author:** ![Rahul1994](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@Rahul1994](https://verificationacademy.com/forums/u/Rahul1994)\
**Post date:** [December 27, 2016, 9:09am UTC](https://verificationacademy.com/forums/t/axi-cache/32689/3 "2016-12-27T09:09:31Z")

</div>

_In reply to [S.P.Rajkumar.V](https://verificationacademy.com/forums/t/axi-cache/32689/2):_

Thank you S.P.Rajkumar.V. This was helpful!
