To quickly decide if an address lies within the cache it is separated into three parts; the tag and the index
and the offset.
The offset bits depend on the line size of the cache. For example, a 32-byte line size would use the last 5-
and the offset.
The offset bits depend on the line size of the cache. For example, a 32-byte line size would use the last 5-
bits (i.e. 25) of the address as the offset into the line.
本文介绍如何快速判断一个地址是否位于缓存中。通过将地址分为三部分:标签、索引和偏移,可以有效地进行这一判断。偏移位依赖于缓存的行大小,例如32字节的行大小会使用地址的最后5位作为行内的偏移。
1143

被折叠的 条评论
为什么被折叠?



