Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a cache of 4 lines of 16 bytes each.Main memory is divided into blocks of 16 bytes each.That is, block 0 has bytes with

Consider a cache of 4 lines of 16 bytes each.Main memory is divided into blocks of 16 bytes each.That is, block 0 has bytes with addresses 0 through 15, and so om. Now consider a program that accesses memory in the following sequence of addresses.

Once:63 through 70

Loop ten times: 15 through 32; 80 through 95

a. Suppose the cache is organized as direct mapped. Memory blocks 0,4 and so on are assigned to line 1; blocks 1,5, are so on. Compute the hit ratio.

b. Suppose the cache is organized as two-way set associative, with two sets of two lines each. Even-numbered blocks are assigned to set 0 and odd-numbered blocks are assigned to set . Compute the hit ratio for the two-way set-associative cache using the least recently used replacement scheme.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions