Ask Question

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?

+4
Answers (1)
  1. 6 May, 16:34
    0
    Block 2

    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)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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, ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers