看板 Grad-ProbAsk 關於我們 聯絡資訊
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
ssccg:1 bit offset in block,block address = 01000 03/18 13:48
ssccg:16 words → 8 blocks → 4 set,所以index為2 bit 03/18 13:48
ksix:block offset 1 bit,block address 0100,index 00,tag 01 03/18 13:48
ssccg:5 bit address減掉index 2 bit,所以3 bit tag 03/18 13:49
ksix:打錯,block address 01000,index 00, tag 010 03/18 13:49