Ask Question
25 March, 01:03

A CPU has 32 KB cache, 2-way set associative, 16-byte block size. How many bits are required to use index each set in this cache?

+5
Answers (1)
  1. 25 March, 05:44
    0
    10 bits

    Explanation:

    Cache size = 32 KB

    We were also given that it is 2 way set associative

    Block size = 16 bytes = 2^4 = 4 bits for offset

    Number of blocks = cache size / block size = (32*2^10) / 16

    =2^11

    Hence, index = number of blocks / 2 (since 2 way associative)

    = (2^11) / 2 = 2^10 = 10 bits for index
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A CPU has 32 KB cache, 2-way set associative, 16-byte block size. How many bits are required to use index each set in this cache? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers