作者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