GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 39

GATE CSE 2025 Set 2 Q39

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q39 2 marks · MCQ
Report issue

Cache Memory

Question 39, GATE 2025: A byte-addressable system has a direct-mapped cache. Addresses contain 4 tag bits and 12 cache-index bits; each cache block holds one byte. Choose main-memory address capacity and cache data capacity, respectively.
Options: A. 64 KB,4 KB; B. 128 KB,16 KB; C. 64 KB,8 KB; D. 128 KB,6 KB. Use KB=1024 bytes. The original wording says no other information is stored per block.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A one-byte block needs log2(1)=0 block-offset bits. Therefore each address has tag+index+offset=4+12+0=16 bits. With byte addressing it identifies 216 bytes, or 65536 bytes=64 KB of main memory.

The 12 index bits select one of 212=4096 cache lines. Each line holds one byte of data, so the cache data capacity is 4096 bytes=4 KB. This gives A.

Distinguish data capacity from total physical storage. The tag itself occupies 4 bits per line, so explicitly counting stored tags would add 4096·4 bits=2048 bytes=2 KB, making 6 KB before any other metadata. The offered correct option and standard cache-capacity convention use data bytes only. The original “no other information” wording does not turn the 4 tag bits into addressable data, and no option pairs the 64-KB address space with 6-KB physical storage. Answer: A under the stated data-capacity interpretation.

Original paper, page 30 · Answer key