GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A physically indexed, physically tagged cache needs the TLB first: a TLB hit takes 1 ns and the cache hit then takes 2 ns. A VIPT cache looks up the TLB and the cache index in parallel (tag compare needs the TLB result at about 1.5 ns, after which the hit completes in 2 ns total). With a 98% TLB hit rate, a 20 ns TLB-miss penalty and the cache always hitting, what is the average hit latency of each design as (PIPT, VIPT)?

  1. A. (3.0 ns, 2.0 ns)
  2. B. (22.6 ns, 21.6 ns)
  3. C. (3.4 ns, 2.4 ns)
  4. D. (2.4 ns, 3.4 ns)

Correct answer: C. (3.4 ns, 2.4 ns)

PIPT: TLB 1 + cache 2 + 0.02 × 20 = 3.4 ns. VIPT overlaps the TLB with the index lookup: 2 + 0.02 × 20 = 2.4 ns. The TLB-miss penalty is paid by both.

More Computer Organization and Architecture questions

Exams that ask this topic