[理工]計結問題~請教各位
想請問各位,下面這題,如果他給的ADDRESS不是數字,要怎對應到CACHE,還有平
均記憶體時間要怎計算^^ 感謝!!
Consider cache memories with associative mapping and direct mapping.
The average memory access time, TM, is the weighted average of the cache access
time, TC, plus the access time for physical memory, TP. The weighting factor is the
hit-ratio h. TM can be expressed as
TM = hTC + (1 - h)TP
Now, if the size of cache is 8 bytes and the data sequence is described as
A0 B0 C2 A0 D1 B0 E4 F5 A0 C2 D1 B0
, where the subscript for each value is the low-order 3 bits of its address in
physical memory and such values will be utilized for cache activity of direct
mapping. Assume that TC = 8ns, TP = 50ns and the above cache is initially empty
and uses a FIFO replacement policy.
(1) Find the hit-ratio h and average memory access time TM for the associative
mapping.
(2) Find the hit-ratio h and average memory access time TM for the direct
mapping.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.23.5.154
推
04/17 16:54, , 1F
04/17 16:54, 1F