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)?
- A. (3.0 ns, 2.0 ns)
- B. (22.6 ns, 21.6 ns)
- C. (3.4 ns, 2.4 ns)
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A physically tagged L1 data cache is 32 KB, 8-way set-associative with 64-byte blocks. Physical addresses are 40 bits and pages are 4 KB…
- A pipeline (ideal CPI 1) can predict branches not-taken (a taken branch costs 3 cycles, a not-taken one 0) or predict taken (a taken…
- A direct-mapped cache with 32-byte blocks and 32-bit addresses stores, for every line, only a tag and a valid bit as metadata. The total…
- A loop computes y[i] += A[i][j] × x[j] for a 64×64 matrix of 4-byte floats (A in row-major order at address 0, x at 16384, y at 17024)…
- A 2²²-word memory uses a coincident (2-D) decoding scheme with a square cell array: one decoder selects the row, another the column. How…
- The IEEE 754 half-precision word 0xC4D0 (1 sign bit, 5 exponent bits with bias 15, 10 fraction bits) represents which value?