133k views
3 votes
Assume: Memory: 5 bit addresses Cache: 8 blocks All memory locations contain valid data If the memory location is 9. What is the Binary Address and cache block # If the memory location is 12. What is the Binary Address and cache block # If the memory location is 15. What is the Binary Address and cache block #

1 Answer

2 votes

Answer:

The answer to this question can be described as follows:

binary address: 01001, 01100, 01111.

Cache block: 1, 4, 7

Step-by-step explanation:

Given values

Memory = 5 bit and cache = 8 blocks

Option 1)

memory location is =9

convert into binary number, so we get binary address = 01001

So, the cache block = 1

Option 2)

memory location is = 12

convert into binary number, so we get binary address = 01100

So, the cache block = 4

Option 3)

memory location is =15

convert into binary number, so we get binary address = 01111

So, the cache block = 7

User Martin Schilliger
by
3.4k points