[理工] [計組] 98雲科資工

看板Grad-ProbAsk作者時間13年前 (2011/03/12 21:54), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/2 (看更多)
One cache system has 8 blocks that are initialized in empty. The size of cache block is 4-byte. The cache system uses two-way set associated architecture and LRU (least recently used) policy is used as replacement algorithm. When a set is referenced, way 0 is used first. Here is a series of address references: 1, 5, 8, 3, 40, 17, 19, 56, 49, 43. Please reference in the list as hit or miss? sol: address: 1 5 8 3 40 17 19 56 49 43 M.M.block: 0 1 2 0 10 4 4 14 12 10 set no.: 0 1 2 0 2 0 0 2 0 2 H/M: M M M H M M H M M H Hit:3 Miss:7 我不清楚的地方是set no.跟Hit/Miss怎麼判斷 會的高手可以教我一下嗎 謝謝 -- 如果將字母A到Z分別編上1到26的分數(A=1,B=2...,Z=26) 你的知識(KNOWLEDGE)得到96分(11+14+15+23+12+5+4+7+5=96) 你的努力(HARDWORK)也只得到98分(8+1+18+4+23+15+18+11=98) 你的態度(ATTITUDE)才是左右你生命的全部(1+20+20+9+20+21+4+5=100) 但是得了火山矽肺病(PNEUMONOULTRAMICROSCOPICSILICOVOLCANOCONIOSIS)就有567分喔 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.76.246.9

03/12 22:08, , 1F
@@" 這個...課本有類似例題耶 課本也看不懂嗎?
03/12 22:08, 1F

03/12 22:09, , 2F
就是address mod set數 看要放在哪個set..
03/12 22:09, 2F

03/12 22:19, , 3F
不是很了解欸...
03/12 22:19, 3F
文章代碼(AID): #1DUti17W (Grad-ProbAsk)
文章代碼(AID): #1DUti17W (Grad-ProbAsk)