subject
Computers and Technology, 07.06.2021 05:10 jay8849

You have a direct mapped cache containing 128 bytes with a cache block size of 32 bytes. The cache uses LRU replacement and write-allocate and write-back policies. Assume i and j are stored in registers, and that the array happy starts at address 0x0. Give the hit rate (as a fraction or a%) for the following two loops. Assume the cache starts out empty. #define LEAP 4 #define SIZE 64 int happy[SIZE] ; // Assume happy has been initialized to contain values. // Assume the cache starts empty at this point. for (int i = 0; i < SIZE; i += LEAP) { 11 Loop 1 happy[i] = happy[i] + i * (i + 2); } for (int j = 1; j < SIZE; j += (LEAP * 2)) { // Loop 2 happy[j] = happy[j] + j * 5; } Hit Rate for Loop 1: Hit Rate for Loop 2: b) [8 pts] For each of the changes proposed below, indicate how it would affect the hit rate of each loop above in part c) assuming that all other factors remained the same as they were in the original problem. Circle one of: "increase", "no change", or "decrease" for each loop. Loop 1: increase / no change / decrease Change associativity from direct mapped to two-way: Loop 2: increase / no change 1 decrease Loop 1: increase Change LEAP from 4 to 8: / no change / decrease Loop 2: increase / no change 1 decrease Loop 1: increase / no change / decrease Change cache size from 128 bytes to 256 bytes: Loop 2: increase / no change 1 decrease Loop 1: increase / no change 1 decrease Change block size from 32 bytes to 16 bytes: Loop 2: increase / no change / decrease

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:30, kierafisher05
What is the most popular genre of video games?
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, jaueuxsn
Which component acts as a platform on which application software runs
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, Heyitsbrandi
Now you’re on your own. include a short summary of this section with plots in your lab report. write a matlab script file to do steps (a) through (d) below. include a listing of the script file with your report. 1 the soundsc(xx, fs) function requires two arguments: the first one (xx) contains the vector of data to be played, the second argument (fs) is the sampling rate for playing the samples. in addition, soundsc(xx, fs) does automatic scaling and then calls sound(xx, fs) to actually play the signal. mcclellan, schafer, and yoder, dsp first, 2e, isbn 0-13-065562-7. prentice hall, upper saddle river, nj 07458. c 2015 pearson education, inc. 4 mcclellan, schafer and yoder, signal processing first. prentice hall, upper saddle river, new jersey, 2003. c 2003 prentice hall. (a) generate a time vector (tt) to cover a range of t that will exhibit approximately two cycles of the 4000 hz sinusoids defined in the next part, part (b). use a definition for tt similar to part 2.2(d). if we use t to denote the period of the sinusoids, define the starting time of the vector tt to be equal to t , and the ending time as ct . then the two cycles will include t d 0. finally, make sure that you have at least 25 samples per period of the sinusoidal wave. in other words, when you use the colon operator to define the time vector, make the increment small enough to generate 25 samples per period. (b) generate two 4000 hz sinusoids with arbitrary amplitude and time-shift. x1.t / d a1 cos.2
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, BilliePaul95
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
You know the right answer?
You have a direct mapped cache containing 128 bytes with a cache block size of 32 bytes. The cache u...

Questions in other subjects:

Konu
Chemistry, 02.09.2019 08:00
Konu
Mathematics, 02.09.2019 08:00