Question: MIPS- Cache Please show work. A 2-way set-associative cache consists of four sets. Main memory contains 2K blocks of eight words each and word addressing

MIPS- Cache Please show work.
A 2-way set-associative cache consists of four sets. Main memory contains 2K blocks of eight words each and word addressing is used. 1. How many lines are in the cache? 2. Show the main memory address format that allows us to map addresses from main memory to cache. Be sure to include the fields as well as their sizes 3. Compute the hit ratio for a program that loops 3 times from locations 0x8 to 0x33 in main memory. You may leave the hit ratio in terms of a fraction. (Hint: What block contains the address? To which set does that block map? Is that block in cache or not? Answer these questions for each location to determine which entries result in a hit and which cause a miss.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
