作者decimal (好恐怖)
看板Grad-ProbAsk
標題[問題] 98交大計組第三題
時間Wed Mar 18 13:44:40 2009
Atwo-way set associative cache with 2-word blocks and
a total size of 16 words. (using LRU replacement)
假設 word address : 16
binary address: 010000
則 他的 block address 為多少?
tag 跟 index 又是幾bit呢???
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.211.12.224
1F:→ ssccg:1 bit offset in block,block address = 01000 03/18 13:48
2F:→ ssccg:16 words → 8 blocks → 4 set,所以index為2 bit 03/18 13:48
3F:推 ksix:block offset 1 bit,block address 0100,index 00,tag 01 03/18 13:48
4F:→ ssccg:5 bit address減掉index 2 bit,所以3 bit tag 03/18 13:49
5F:→ ksix:打錯,block address 01000,index 00, tag 010 03/18 13:49