If a 2-way set-associative cache has a total of 128 sets and a block size of 8 words, what is the total cache size?
Q1. If a 2-way set-associative cache has a total of 128 sets and a block size of 8 words, what is the total cache size?
Answer: 2048 words
Explanation: Total cache size = number of sets * associativity * block size = 128 * 2 * 8 = 2048 words.