[理工] [計組]3C.觀念

看板Grad-ProbAsk作者 (DaiJouBu)時間13年前 (2012/12/18 00:01), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
assume the three caches below,each consisting of 16 word. give the series of address references as word address.. 2 3 4 16 18 16 4 2 . Please ablel each reference as a hit or a miss ... Assuming that lru is used for cache relacement algorithm and all the cache are initially empty. (a) a direct-mapped cache with 16 one-word blocks; 計算後… T I 2 0 2 MISS compulsory 3 0 3 MISS compulsory 4 0 4 MISS compulsory 16 1 0 MISS compulsory 18 1 2 MISS conflict (*) 16 1 0 HIT 4 0 4 HIT 2 0 2 MISS conflict 問題: (*) 答案給 compulsory 為什麼? (我的想法是 I=2出現過了,但T不對。所以是conflict) 請指教,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.252.185.231

12/18 00:03, , 1F
只要這個block沒被讀取過就是compulsory
12/18 00:03, 1F

12/18 00:05, , 2F
原來。謝謝你的回答…
12/18 00:05, 2F

12/18 00:06, , 3F
我還因為這題跟張帆盧很久xD
12/18 00:06, 3F

12/18 00:06, , 4F
XD
12/18 00:06, 4F
文章代碼(AID): #1Gpq7eWA (Grad-ProbAsk)