[(Must Use MATLAB)]Consider the following list of 32-bit memory references, give
ID: 3767037 • Letter: #
Question
[(Must Use MATLAB)]Consider the following list of 32-bit memory references, given as word addresses: 21, 166, 201, 143, 61, 166, 62, 133, 198, 197, 22, 111. We would like to use a program to compare hit rates for different direct mapped cache configurations. Write a program that takes three inputs (an array of references, the number of blocks in the cache, the number of words per cache) and return the one output (the hit rate). Each word is 32- bit long. Test your program and submit your result for:
a) Direct-mapped cache with 16 one-word cache
b) Direct-mapped cache with 8 two-word cache
c) Direct-mapped cache with 4 four-word cache.
Explanation / Answer
a)
b)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.