【发布时间】:2012-04-11 14:27:49
【问题描述】:
我知道这是一个家庭作业问题,我不要求答案。我只是想了解一下这个问题,请随意使用其他示例来解释。
我需要回答的问题是……
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 个字节?
【问题讨论】:
标签: caching hardware computer-architecture