看板 Grad-ProbAsk 關於我們 聯絡資訊
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
BaaaSwin:只要這個block沒被讀取過就是compulsory 12/18 00:03
VB2005:原來。謝謝你的回答… 12/18 00:05
BaaaSwin:我還因為這題跟張帆盧很久xD 12/18 00:06
VB2005:XD 12/18 00:06