A direct-mapped cache has a total size of 1 KB with a block size of 16 bytes.…
2025
A direct-mapped cache has a total size of 1 KB with a block size of 16 bytes. The number of cache lines is:
- A.
32
- B.
64
- C.
128
- D.
256
Attempted by 53 students.
Show answer & explanation
Correct answer: B
The number of cache lines is total cache size divided by block size: 1 KB / 16 bytes = 1024 / 16 = 64.