Question: Exercise 1. Write a program using MIPS instructions to calculate either the volume of a cube or a sphere. Give the user the option to
Exercise 1. Write a program using MIPS instructions to calculate either the volume of a cube or a sphere. Give the user the option to decide and ask either for the radius of the sphere or the side length of the cube. For the sphere you need to use floating point operations, do the same in the case of the cube. Exercise 2. Under tools use the Data Cache Simulator (see image
02) to simulate and illustrate data cache performance. Connect that simulator to your MIPS program (see image 03) and run your program. Analyze your cache performance running your program one step at a time (see image 04 and 05). By default there are 8 blocks with a cache block size of 4 words. Double these values (16 blocks of 8 words) and run your program again. Analyze your cache performance and compare it with the previous one. Explain what happened. Exercise
3. Use the Instruction Counter and the Instruction Statistics from the Tools Menu and explain and report the data that you get (see image 06).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
