[理工] [計組] 98雲科資工
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
03/12 22:09, 2F
→
03/12 22:19, , 3F
03/12 22:19, 3F
討論串 (同標題文章)