[理工] 中央95計組
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是哪裡來的??
謝謝~~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 110.28.144.213
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1481366648.A.DD7.html
推
12/10 22:16, , 1F
12/10 22:16, 1F
※ 編輯: visual (110.28.144.213), 12/10/2016 22:31:34
推
12/10 22:30, , 2F
12/10 22:30, 2F
→
12/10 22:31, , 3F
12/10 22:31, 3F
→
12/10 22:32, , 4F
12/10 22:32, 4F
→
12/10 22:32, , 5F
12/10 22:32, 5F
→
12/10 22:32, , 6F
12/10 22:32, 6F
※ 編輯: visual (110.28.144.213), 12/10/2016 22:39:50
推
12/10 22:42, , 7F
12/10 22:42, 7F
推
12/10 22:45, , 8F
12/10 22:45, 8F
推
12/10 22:50, , 9F
12/10 22:50, 9F
→
12/10 23:14, , 10F
12/10 23:14, 10F
→
12/11 17:59, , 11F
12/11 17:59, 11F