我知道这是一个家庭作业问题,我不是要求答案。我只想了解这个问题,随时可以使用其他示例来解释。使用块的直接映射缓存
,我需要答案是问题...
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个字节?