Consider a computer with a byte-addressable memory. A 40-bit memory address is d
ID: 3814377 • Letter: C
Question
Consider a computer with a byte-addressable memory. A 40-bit memory address is divided as follows for cache processing. First, the 8 low-order bits are chopped off to expose the cache-line number. Second, the next 17 low-order bits are inspected to get the cache-container index. Third, the remaining 15 bits are used as the cache tag. a) What is the cache size in bytes? b) What is the cache-mapping scheme? c) For a given byte in the cache, how many different bytes in the main memory could possibly be mapped to it?Explanation / Answer
Given information is:
Main memory in address format = 40-bit addressable.
block-off = 8
Then block size will be = 2^8
Index= 17
tag= 15
Given that it is a direct mapped.
a) Cache size?
.............
The formula for no. of lines = cache size/block size.
In direct cache map no. of lines is equal to index.
Therefore, 2^17 = cachesize/(2^8)
=>(2^17)*(2^8) = cache size
therefore, cache size = 2^25.
b) cache mapping scheme is in the form of,
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.