作者polomoss (小澤)
看板Grad-ProbAsk
標題[理工] [計組]-cache 計算
時間Thu Jan 7 15:43:22 2010
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
推 assassin88:你讓我覺得很模擬考XD 01/07 22:59
→ polomoss:= =因為覺得答案給錯了@@ 01/07 23:18
推 james1815:小算一下不知是不是 LEVEL1 19 8 5 LEVEL2 27 0 5 01/07 23:51
→ polomoss:恩~我是算這個~~不過block size應該填3 01/08 00:34
→ james1815:抱歉 我把它算在一起了 感謝指點 01/08 00:51
推 uminchu185:應該是採word addressing, 所以offet=3bits 01/08 22:57