作者newfantasy (没事少说话)
看板Grad-ProbAsk
标题[理工]计结问题~请教各位
时间Thu Apr 16 19:39:33 2009
想请问各位,下面这题,如果他给的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
1F:推 hsiehdler:或许是16进位转2进位,则共8个bit 04/17 16:54