[理工] [計組] 記憶體與cache

看板Grad-ProbAsk作者 (Mg鎂)時間8年前 (2015/07/27 18:17), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
Assume the following 8-bit address sequence generated by the microprocessor The cache uses 4 bytes per block. Assume a 2-way set assocative cache design the uses the LRU algo. (with a cache that can hold a total of 4 blocks). Assume that the cache is initially empty.First determine the TAG,SET,BYTE OFFSET fields and fill in the table above. In the figure below ,clearly mark for each access the TAG,Least Recently Used(LRU) ,and HIT/MISS information for each access. 題目表格如下: http://imgur.com/s4EJ2Gd,b6uUEAY
答案如下: http://imgur.com/5IOBuCx
我的想法: 題目提到總共有4個blocks ,所以我們不是需要4=2^2 ,兩個bits去表示是哪個block嘛? 答案Index那邊只有一個表示,覺得有點小小奇怪。感謝各位先進了! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.37.140.188 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1437992240.A.2D8.html

07/27 22:08, , 1F
2way set,代表一個set兩個block,總共兩個set。所以ind
07/27 22:08, 1F

07/27 22:08, , 2F
ex只要1個。
07/27 22:08, 2F
文章代碼(AID): #1LjWKmBO (Grad-ProbAsk)