Skip to content
GATEiit

GATE CSE 2017 Session 2 Q63: Tag bits for a direct mapped cache with 512 lines

Syllabus topic: Memory interfacing and hierarchy: performance and cache memory mapping

Question

Consider a machine with a byte addressable main memory of 232 bytes divided into blocks of size 32 bytes. Assume that a direct mapped cache having 512 cache lines is used with this machine. The size of the tag field in bits is ________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 18 (official GATE 2017 final answer key)

Concept used: In a direct mapped cache the address splits into tag, line index and block offset bits.

Concept notes

Loading notes…

First step: Find the offset bits from the 32-byte block and the index bits from 512 lines, and subtract both from the 32-bit address.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Memory interfacing and hierarchy: performance and cache memory mapping

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key