Answer: 180
We are given the following parameters:
- Cache memory access time (Tc) = 50 ns
- Main memory access time (Tm) = 500 ns
- Read request fraction (fread) = 0.80
- Write request fraction (fwrite) = 0.20
- Read hit ratio (h) = 0.9
Step 1: Calculate the average read access time (Tread)
On a read hit, only the cache is accessed. On a read miss, the cache is accessed first, followed by the main memory:
Tread=h⋅Tc+(1−h)⋅(Tc+Tm)
Tread=0.9×50+0.1×(50+500)=45+55=100 ns
Step 2: Calculate the write access time (Twrite)
With a write-through policy where both the cache and main memory are updated simultaneously, the write time is determined by the slower main memory:
Twrite=Tm=500 ns
Step 3: Calculate the overall average memory access time (Tavg)
Tavg=fread⋅Tread+fwrite⋅Twrite
Tavg=0.8×100+0.2×500=80+100=180 ns