看板 Grad-ProbAsk 關於我們 聯絡資訊
https://i.imgur.com/CHurZm1.jpg
請問這題cache的tag跟index的計算 https://i.imgur.com/oj2rqZL.jpg
對照前面的練習,這題的32KB(2^13words)是可存資料量? 32byte(4words)是block size? 所以拿2^13除以2^2得到index是11bits? 以上是我隨便了算的 那個cacheable address space 的 4GB 要怎麼使用? 不是很瞭解cacheable address space是影響哪部份? 對memory的觀念極差,求大佬解釋 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.12.101.82 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1570553162.A.F29.html ※ 編輯: fmtshk (39.12.101.82 臺灣), 10/09/2019 01:11:54
DLHZ: 沒看過line size這說法但我猜應該是指block 10/09 01:16
DLHZ: cache共2^15 byte 且每個有2^5 byte 大 可知共2^10個 cache 10/09 01:20
DLHZ: 所以index需要10bit 10/09 01:20
mistel: https://i.imgur.com/LPyvDjY.jpg 講義支援 10/09 01:20
DLHZ: 我不太清楚你說的使用是什麼意思 10/09 01:23
fmtshk: 就是cacheable address space 4GB時Tag是17bit, 而1GB時T 10/09 01:33
fmtshk: ag是10bit,這部份不太懂 10/09 01:33
DLHZ: 是15喔 10/09 01:44
DLHZ: 你再看一下選項 10/09 01:45
fmtshk: 喔對,看錯個>< 10/09 01:51
fmtshk: 剛有聽別人說cacheable address space 4GB 指的就是記憶 10/09 01:56
fmtshk: 體位址為32位元 10/09 01:56
fmtshk: 那麼就是說,(1)的tag17是(32-10-5)算來的? 請問5的部份 10/09 01:59
fmtshk: 要怎麼看? 10/09 01:59
ekids1234: 1G = 30位元 -> 30-10-5 = 15 10/09 02:01
zuchang: 5就是lg(一個data block的bytes數) 所以5=lg(32) 10/09 11:43
fmtshk: 懂了,感謝各位大佬教學 10/09 12:00