A 2-way set associative cache has 128 sets and a block size of 16 bytes. What is the total cache size?
Q1. A 2-way set associative cache has 128 sets and a block size of 16 bytes. What is the total cache size?
Answer: 4KB
Explanation: Total cache size = number of sets * associativity * block size = 128 * 2 * 16 = 4096 bytes = 4KB.