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.

原文地址:https://www.cnblogs.com/sinferwu/p/13098952.html