GATE CS 2026 Set 2 | Question 56

Computer Organization & Architecture › Memory Hierarchy · NAT · 2 marks · Answer: 128

  1. Question 56Computer Organization & Architecturenat2 marks
    Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0. The word with physical address 0xA2C28 is mapped to the cache block number . The maximum possible size of the cache (in KB) for this configuration is __________. (answer in integer) Note: , .

    Answer: 128

    Solution

    Physical address (20 bits). If the block size is bytes and the cache has lines, the line index is bits and must equal (8 bits). To maximize cache size , take the index field as the 8 bits immediately above the offset that read ; the largest consistent configuration gives KB. So the maximum cache size KB.

More GATE PYQ on Memory Hierarchy

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2026 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →