📖 Explanation
The average memory access time (AMAT) is given by: AMAT = hit time + miss rate * miss penalty. Here, hit time = cache access time = 10 ns, miss rate = 1 - hit rate = 1 - 0.95 = 0.05, miss penalty = main memory access time = 100 ns. Therefore, AMAT = 10 + 0.05 * 100 = 10 + 5 = 15 ns. The correct answer is 15 ns. However, the options are 10, 14.5, 95, 100. The closest is 14.5? The correct calculation is 15 ns. Possibly, the hit rate is 0.95, so AMAT = 0.95 * 10 + 0.05 * 100 = 9.5 + 5 = 14.5 ns. This is the formula if we consider that a miss requires only a main memory access time (the cache access time is included in the miss penalty?). The standard formula is: AMAT = Hit Time + Miss Rate * Miss Penalty. Here, Hit Time = cache access time = 10 ns. Miss Penalty = main memory access time = 100 ns. So, AMAT = 10 + 0.05 * 100 = 15 ns. But the question might be expecting the formula: AMAT = (hit rate * cache time) + (miss rate * memory time). That gives 0.95 * 10 + 0.05 * 100 = 9.5 + 5 = 14.5 ns. This is a common mistake. The correct answer is usually the one with the main memory access time including the cache access time. The GATE question might have the answer as 15 ns. The options include 14.5, which is a distractor. The correct answer is 14.5? Actually, the traditional formula is: AMAT = hit time + (miss rate * miss penalty). If miss penalty is defined as the additional time to access main memory after a miss, then AMAT = 10 + 0.05 * 90 = 10 + 4.5 = 14.5 ns. The miss penalty is 90 ns? That would be 100 ns main memory access time minus 10 ns cache access time? That is not standard. The question is ambiguous. In GATE 2015, a similar question had the answer 15 ns. The correct answer is 15.