假设我知道以下值:
W = Word length (= 32 bits)
S = Cache size in words
B = Block size in words
M = Main memory size in words
Run Code Online (Sandbox Code Playgroud)
如何计算需要多少位:
- Index
- Block offset
- Byte offset
- Tag
Run Code Online (Sandbox Code Playgroud)
a)在完全关联缓存中的直接映射缓存b)?