我已经完全理解了直接映射、关联和设置关联缓存,但是当我发现多字块直接映射缓存时,我感到很困惑。
这是 Patterson 的 Q7.9 和 Q7.10:
7.9[10] <§7.2> Here is a series of address references given as word addresses: 2,
3, 11, 16, 21, 13, 64, 48, 19, 11, 3, 22, 4, 27, 6, and 11. Assuming a direct-mapped
cache with 16 one-word blocks that is initially empty, label each reference in the
list as a hit or a miss and show the final contents of the cache.
7.10[10] <§7.2> Using the series of references given in Exercise 7.9, show the hits
and misses and final cache contents for a direct-mapped cache with four-word
blocks and a total sizeof 16 words.
7.9就好了,很简单。但我不明白 7.10 是如何工作的。它将有 4 个 4 字大小的块。这与 4 路组关联缓存有何不同?
如果可能的话,有人可以指导我在这里解决 7.10 吗?我有答案,但我不明白。