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

Please help me understand these. Explanations would be helpful Thanks :) A 2-way

ID: 3770411 • Letter: P

Question

Please help me understand these. Explanations would be helpful

Thanks :)

A 2-way set associative cache consists of four sets. Main memory contains 2K blocks of eight words each. 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. Compute the hit ratio for a program that loops 3 times from locations 8 to 51 in main memory. You may leave the hit ratio in terms of a fraction. Suppose a computer using set associative cache has 2_16 words of main memory and a cache of 32 blocks, and each cache block contains 8 words. If this cache is 2-way set associative, what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, set, and word fields? If this cache is 4-way set associative, what is the format of a memory address as seen by the cache? Suppose a computer using set associative cache has 2_21 words of main memory and a cache of 64 blocks, where each cache block contains 4 words. If this cache is 2-way set associative, what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, set, and word fields? If this cache is 4-way set associative, what is the format of a memory address as seen by the cache?

Explanation / Answer

Ans. 6-

Ans.7-

Ans.8-