Question: ab Assignment 12+3 marks 1. Write a program that stores the ASCII printable characters to a memory location defined by the user and stores them


ab Assignment 12+3 marks 1. Write a program that stores the ASCII printable characters to a memory location defined by the user and stores them to a different memory location as decided by the user. [2] Simulate the program to show the memory data and the instruction cache performance with the the cache set as direct mapping having a block size of 4 and cache size of 16 . a. Show the effect on the performance of cache when we increase the block size to 8 keeping the cache size same i.e 16. [2] Explain the difference in result b. For the program in the question 1, fill in the table for the data cache, when the data from the memory location is retrieved into the registers. Assume the block size to be 8 and cache size to be 32; Show the result using simulation. Show it when the same data is retrieved four times in the same order as given in the table [3] Lab Assignment 12+3 marks 1. Write a program that stores the ASCII printable characters to a memory location defined by the user and stores them to a different memory location as decided by the user. [2] Simulate the program to show the memory data and the instruction cache performance with the the cache set as direct mapping having a block size of 4 and cache size of 16 . a. Show the effect on the performance of cache when we increase the block size to 8 keeping the cache size same i.e 16. [2] Explain the difference in result b. For the program in the question 1 , fill in the table for the data cache, when the data from the memory location is retrieved into the registers. Assume the block size to be 8 and cache size to be 32; Show the result using simulation. Show it when the same data is retrieved four times in the same order as given in the table [3] BITS Pilani Pilani | Dubai | Goa | Hyderabad c. Now change the cache configuration to 2 way associative maintaining the block size and the cache size the same and then complete the table and explain why there is no difference in the result. [3] d. Show the result taking the screen shot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
