Main memory access time, Tm = 100 ns
TLB lookup, TTLB = 20ns
Page transfer time, TPT = 5000 ns
TLB hit ratio, x = 0.95 (95%) page fault rate, p = 0.10 (10%)
We know,
EMAT for multilevel paging,
EMAT = x (Tc + Tm) + (1 – x) (Tc + (n + 1) Tm)
EMAT, when there is a page fault, S → is service time
EMAT = (1 – P) Tm + Ps
Here, we are using TLB, and page fault occurs whenever there is a miss in TLB, So the required EMAT is ,
EMAT = x(Ttlb + Tm) + (1 – x) [(1 – P) (Ttlb + Tm + Tm) + p(% dirty (Ttlb + Tm + 2TPT) + % clean (Ttlb + Tm + TPT)
∴ EMAT = 0.95 (20 + 100) + 0.05 (0.9 (20 + 100 + 100) + 0.1 (0.2 (20 + 100 + 2(5000)) + 0.8 (20 + 100 + 5000))
= 154.5 ns
TLB hit ratio, x = 0.95 (95%) page fault rate, p = 0.10 (10%)
We know,
EMAT for multilevel paging,
EMAT = x (Tc + Tm) + (1 – x) (Tc + (n + 1) Tm)
EMAT, when there is a page fault, S → is service time
EMAT = (1 – P) Tm + Ps
Here, we are using TLB, and page fault occurs whenever there is a miss in TLB, So the required EMAT is ,
EMAT = x(Ttlb + Tm) + (1 – x) [(1 – P) (Ttlb + Tm + Tm) + p(% dirty (Ttlb + Tm + 2TPT) + % clean (Ttlb + Tm + TPT)
∴ EMAT = 0.95 (20 + 100) + 0.05 (0.9 (20 + 100 + 100) + 0.1 (0.2 (20 + 100 + 2(5000)) + 0.8 (20 + 100 + 5000))
= 154.5 ns

is an number is _______ .
x = 0 or 1
= x1 = x3 (∵ a1 = 1, a2= 0, a3 = 1)
= 0 or 1 or 1 or 2.
Total number of cases = 2 × 3 + 4 × 3 = 18
Now odd number of cases = 9
P = 9/18 = 0.5
No. of elements in leaf = n/2 = 1023/2 = 512
To find maximum among 512 elements, no. of comparisons needed is 511.
∴ Number of stalls/instruction = 0.3 × 0.05 × 50 + 0.1 * 0.5 × 2
= 0.85
Avg. instruction ETpipe = (1 + No. of stall instruction) * cycle time
= (1 + 0.85) × 0.5 ns = 0.925 ns