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.