165k views
5 votes
Suppose we have a byte-addressable computer with a cache that holds 8 blocks of 4 bytes each. Assuming that each memory address has 8 bits, to which cache block would the hexadecimal address 0x09 map if the computer uses direct mapping?

User Jurjen
by
6.1k points

1 Answer

5 votes

Answer:

Block 2

Step-by-step explanation:

Cache mapping is a technique by which the contents of main memory are brought into the cache memory. we have three different types of cache mapping these are; direct, fully associative and k-way set associative mappings. In direct mapping such as the scenario above, the cache has one block in each set, so it is organized into X = Y sets, as such a particular block of main memory can map to only one particular line of the cache and the formula for determining the line number of cache to which a particular block can map is given by (main memory block address) %(number of lines in cache)

User Jacob Ritchie
by
5.7k points