GATE Computer ScienceHardGATE CS (PYQ pattern)
An 8 KB cache with 16-byte blocks and 32-bit addresses can be built fully associative or 4-way set-associative. How many more tag bits does the fully associative version store in total, and how many tag comparators does each version need per access?
- A. 3,584 more bits; 512 versus 128 comparators
- B. 3,584 more bits; 512 versus 4 comparators
- C. 4,096 more bits; 512 versus 4 comparators
- D. 2,048 more bits; 512 versus 4 comparators
Correct answer: B. 3,584 more bits; 512 versus 4 comparators
512 lines. Fully associative: tag = 32 − 4 = 28 bits. 4-way: 128 sets → 7 index bits, tag = 21. Difference 7 bits × 512 lines = 3,584. FA compares all 512 tags; 4-way compares the 4 tags of one set. 4,096 comes from taking 256 sets (8 bits).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Processor A runs a program at 3.0 GHz with CPI 1.6. Processor B, with the same ISA and the same compiled program, runs at 2.4 GHz. What is…
- A write-back cache has 64-byte blocks, 2 ns hit time and 5% miss rate. Over an 8-byte bus, memory delivers the first 8 bytes 60 ns after a…
- An 8 × 8 matrix is stored in 8 memory banks. A bank is busy for 6 cycles after an access starts (an access started in cycle t completes at…
- The IEEE 754 single-precision word 0xC1E80000 is multiplied by 2⁻¹³¹ (the result is exact). What is the bit pattern of the product?
- A radix-4 (modified) Booth multiplier handles an unsigned 32-bit multiplier. How many partial products must it generate in the worst case…
- Consider a classic in-order 5-stage pipeline in which registers are read in ID, written in WB, and every instruction passes through all…