The GATE Grind

GATE 2016 CS (CS2) – Question 42

Computer Organization and Architecture · Memory Interfacing and Hierarchy · 2 marks · Numerical answer

Physical addresses are 40 bits. A 512 KB cache is eight-way set-associative. Find tag width in bits.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 24.0 to 24.0

Explanation

Cache capacity is $2^{19}$ bytes and associativity $2^3$, so each way covers $2^{16}$ bytes. Set-index and block-offset widths together are 16 bits, irrespective of block size. Hence tag width is 40−16=24 bits.

More Memory Interfacing and Hierarchy questions

All Memory Interfacing and Hierarchy questions →