Given:
I-cache: access time TI=2 ns, hit ratio hI=0.8
D-cache: access time TD=2 ns, hit ratio hD=0.9
L2-cache: access time TL2=8 ns, hit ratio hL2=0.9
Main memory access time TMM=90 ns
### 1. Instruction Fetch (60% of reads)
Uses hierarchical access through I-cache → L2-cache → Main Memory:
Tinst=TI+(1−hI)×[TL2+(1−hL2)×TMM]=2+(1−0.8)×[8+(1−0.9)×90]=2+0.2×[8+9]=2+0.2×17=2+3.4=5.4 ns
### 2. Data/Operand Fetch (40% of reads)
Uses hierarchical access through D-cache → L2-cache → Main Memory:
Tdata=TD+(1−hD)×[TL2+(1−hL2)×TMM]=2+(1−0.9)×[8+(1−0.9)×90]=2+0.1×17=2+1.7=3.7 ns
### 3. Average Read Access Time
Tavg=0.60×Tinst+0.40×Tdata=0.60×5.4+0.40×3.7=3.24+1.48=4.72 ns