GATE | GATE-CS-2007 |问题10

考虑由128行的64行字组成的4路集合关联高速缓存。CPU在主存储器中生成一个20位的字地址。标记、行和字字段中的位数分别为:

null

(A) 9,6,5 (B) 7, 7, 6 (C) 7, 5, 8 (D) 9, 5, 6 答复: (D) 说明:

Here the number of sets = 128/4 = 32 (as it is 4 say set associative)

We have total 64 words then we need 6 bits to identify the word

So the line offset is 5 bits and the word offset is 6 bits

and the TAG = 20-(5+6) =9 bits

so it should be 9,5,6

这个问题的小测验

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享