我知道這是一個家庭作業問題,我不是要求答案。我只想了解這個問題,隨時可以使用其他示例來解釋。使用塊的直接映射緩存
,我需要答案是問題...
Each reference is a read of a 4-byte integer value and is described by the byte
address of that integer.
Assuming a 1KB, 16B block, direct-mapped cache, initially empty, fill in whether
each reference is a hit or a miss.
我們給出的是4個字節的引用列表。例如0x00000000,0x00000006,...
據我瞭解,有64塊(1024/16),每塊是16字節。當它看到第一個參考時,它會是一個錯過,它會將它帶入緩存。我知道它會引入下一個緩存的引用,因爲每個塊將保存16個字節。這是否意味着,在一個小姐,它會帶來4個參考,因爲每個參考是4個字節?