To find the Average Memory Access Time (AMAT):
Given data from the hierarchy:
L1 Cache:
Hit rate (H1) = 95%=0.95
Miss rate (M1) = 1−0.95=0.05
Access time (T1) = 10 ns
L2 Cache:
Hit rate (H2) = 85%=0.85
Miss rate (M2) = 1−0.85=0.15
Access time (including L1 cache miss penalty) (T2) = 20 ns
Main Memory:
Access time (including L1 and L2 cache miss penalty) (Tm) = 200 ns
Since the access times for L2 and Main Memory already include the miss penalties of previous levels (hierarchical access):
AMAT=H1×T1+M1×(H2×T2+M2×Tm)=0.95×10+0.05×(0.85×20+0.15×200)=9.5+0.05×(17+30)=9.5+0.05×47=9.5+2.35=11.85 ns
Hence, the average memory access time is 11.85 ns [range: 11.83 to 11.87].