Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

[(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)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote