GATE Computer ScienceModerateGATE CS (PYQ pattern)
A 32 KB cache with 64-byte blocks and 36-bit physical addresses is 4-way set-associative. If the associativity is doubled (8-way) while the cache size and block size stay fixed, which statement about the address breakdown and hardware is correct?
- A. The index loses one bit, the tag gains one bit, and 8 tag comparators are needed per access
- B. The offset loses one bit, the tag gains one bit, and 4 comparators remain enough
- C. The index and tag stay the same; only the replacement logic grows
- D. The index gains one bit, the tag loses one bit, and 8 tag comparators are needed per access
Correct answer: A. The index loses one bit, the tag gains one bit, and 8 tag comparators are needed per access
Number of sets = size/(block·ways) halves, so the index shrinks by one bit and the tag grows by one; all 8 ways of the selected set are compared in parallel. The offset depends only on the block size.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A stack machine evaluates the sum of 16 distinct variables arranged as a perfectly balanced binary tree of additions (addition is…
- A program has three disjoint parts: 20% not improvable, 30% sped up 5× by a vector unit, and 50% sped up 2× by a faster memory. What is…
- In IEEE 754 single precision with round-to-nearest-even, let x = 2²³ = 8,388,608. What are the results of (x + 0.5) + 0.5 and x + (0.5 +…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) runs: I1: ADD R1, R1, R2; I2: ADD R3, R1, R4; I3: ADD R5, R3, R1; I4: LW R6, 0(R5); I5…
- A direct-mapped cache of 128 bytes with 32-byte blocks (4 lines) is used while a program reads the 4-byte words at byte addresses 0, 4, 8…
- A non-pipelined processor takes 180 + 120 + 200 + 260 + 100 ps per instruction. Its 5-stage pipelined version adds a 20 ps latch after…