http://imgur.com/a/0vSKX
http://imgur.com/a/icYd9
http://imgur.com/a/EREec
我想请问一下解答中的index field数为什么会那样算??
还有tag跟index我的算法是
tag = (word address) / 4 / 4 /4 (除到tag数只有0或1)
index = (word address) / 4
但index算出来跟解答不一样,所以这样的算法对吗?还是tag字段只是刚好对而已?
同一题的(b) What is the total number of tag bits for the cache?
tag总共18bits,总共有2^10个set,我算总bit数 = 2^10*18 bits,
但解答最后多了一个*4,这个4是哪里来的??
谢谢~~