Read-Allocate / Write-Allocate


 

1.CPU读Cache时:

●若hit,则CPU直接从Cache中读取数据即可。

●若miss,有两种处理方式:

   >Read through,即直接从内存中读取数据;

   >Read allocate,先把数据读取到Cache中,再从Cache中读数据。

2.CPU写Cache时:

●若hit,有两种处理方式:

    >Write through:把数据同时写到Cache和内存中;

    >Write back:先把数据写到Cache中,再通过flush方式写入到内存中。

●若miss,有两种处理方式:

    >Write allocate:先把要写的数据载入到Cache中,写Cache,然后再通过flush方式写入到内存中;

    >No write allocate:直接把要写的数据写入到内存中。

https://blog.csdn.net/steven_yan_2014/article/details/42101757

 

AXI4 Memory attributes有: Read-Allocate / Write-Allocate.

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM