GATE Computer ScienceHardGATE CS (PYQ pattern)
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. How many tag bits does each line store, and can the cache be indexed with virtual-address bits without alias problems?
- A. 28 tag bits; no (index + offset = 15 bits)
- B. 22 tag bits; no (index + offset = 12 bits)
- C. 34 tag bits; yes (index + offset = 12 bits)
- D. 28 tag bits; yes (index + offset = 12 bits)
Correct answer: D. 28 tag bits; yes (index + offset = 12 bits)
Sets = 32 KB/(8 × 64) = 64 → 6 index bits, 6 offset bits, so tag = 40 − 12 = 28. Index + offset = 12 bits equals the page offset, so all index bits are untranslated and aliasing cannot occur.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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?
- A 16 KB, 4-way set-associative cache with 16-byte blocks uses 32-bit addresses. Its block size is doubled to 32 bytes and, at the same…