All mock tests are FREE till 31 December — register to save your progress
Unit 2 · Computer System Architecture Paper 2 CS · November 2020

A machine has a byte-addressable main memory of 2¹⁶ bytes and a block size of 8 bytes. A direct-mapped cache with 32 lines is used. How many bits are in the tag, line and word fields of the address?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. 8, 5, 3

Explanation

Word = log₂ 8 = 3 bits; line = log₂ 32 = 5 bits; tag = 16 − 5 − 3 = 8 bits.

More Computer System Architecture questions