張凡
計組下冊P.225的練習題
---------------------------------------
Consider a memory system with the following parameters:
(1)Translation Lookasode Buffer has 512 entries and is 2-way associative.
(2)64KB L1 Data Cache has 128 byte lines and is also 2-way set associative.
(3)Virtual address are 64-bits and physical address are 32 bits.
(4)8KB page size.
Below are diagrams of the cache and TLB.
What is the number of bits in the diagrams labeled A,B,C...
Cache
┌──────────┐
│ A │ B │ C │ Physical address
└──────────┘
│ │
----- -----
│ │ Tag/status Data Tag/status Data
│ │┌──────┬───┬─────┬───┐
│ ││ │ │ │ │
│ │├──────┼───┼─────┼───┤
│ → E │ D │ │ │
│ ├──────┼───┼─────┼───┤
│ └──────┴───┴─────┴───┘
│-----------↓----------- ↓
│---------→(=) |-----→(=)
TLB
┌──────────┐
│ F │ G │ H │ Virtual address
└──────────┘
│ │
----- -----
│ │ Tag/status Data Tag/status Data
│ │┌──────┬───┬─────┬───┐
│ ││ │ │ │ │
│ │├──────┼───┼─────┼───┤
│ → │ I │ │ │
│ ├──────┼───┼─────┼───┤
│ └──────┴───┴─────┴───┘
│-----------↓----------- ↓
│---------→(=) |-----→(=)
--------------------------------------------------------
解答如下:
A = 17 , B = 8 , C = 7 , D = 1024 , E = 18 ,
F = 42 , G = 9 , H = 13, I = 19
請板上的強者告訴我算法或者代表的意思
實在是被弄得暈頭轉向@@ 謝謝!!!
--
Why Not :-P
http://whynot-p.blogspot.com/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.248.52.153
※ 編輯: mickeyha 來自: 111.248.52.153 (10/26 00:56)