[理工] [計組]-cache 計算

看板Grad-ProbAsk作者 (小澤)時間14年前 (2010/01/07 15:43), 編輯推噓3(303)
留言6則, 4人參與, 最新討論串1/1
The processor has a 32KB 1-level cache and a 256KB 2-level cache on chip 1-level cache is 4-way associative and 2-level is fully associative. Assume the word size is 32bits and the block size for both caches is 32 bytes. 求 tag index Block offset 1-level 2-level 謝謝~可以列式算嗎? -- ┌這篇文章讓覺得?─────────────────────────────┐ │ │ 一"一 \ / >\\\< ╯ ╰ ∩ ∩ ▁ ▁_< ㄧ ㄧ+ │ ε Δ ╰╯ 北七 亂喔 害羞 莎笅 爽啦 哭爸 XD 科科 └──────────────────────────────────────┘ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.14.2

01/07 22:59, , 1F
你讓我覺得很模擬考XD
01/07 22:59, 1F

01/07 23:18, , 2F
= =因為覺得答案給錯了@@
01/07 23:18, 2F

01/07 23:51, , 3F
小算一下不知是不是 LEVEL1 19 8 5 LEVEL2 27 0 5
01/07 23:51, 3F

01/08 00:34, , 4F
恩~我是算這個~~不過block size應該填3
01/08 00:34, 4F

01/08 00:51, , 5F
抱歉 我把它算在一起了 感謝指點
01/08 00:51, 5F

01/08 22:57, , 6F
應該是採word addressing, 所以offet=3bits
01/08 22:57, 6F
文章代碼(AID): #1BHP2TDR (Grad-ProbAsk)