There is a 32-bit addressed CPU sub-system with 4-KB, 4-way associative L1…

2017

There is a 32-bit addressed CPU sub-system with 4-KB, 4-way associative L1 cache; and 4-word cache line size. How many cache line entries would be present in each way?

  1. A.

    32-cache lines

  2. B.

    1024-cache lines

  3. C.

    64-cache lines

  4. D.

    256-cache lines

Attempted by 26 students.

Show answer & explanation

Correct answer: C

Cache size = 4 KB = 4096 bytes.

A 4-word line on a 32-bit system stores 4 x 4 = 16 bytes.

Total cache lines = 4096 / 16 = 256.

For a 4-way associative cache, lines per way = 256 / 4 = 64.

Explore the full course: Niacl Ao It Specialist