Question: 3 ) ( 3 0 pts ) In a hypothetical system with 2 5 6 bytes of main memory, 6 4 bytes of cache, blocks

3)(30 pts) In a hypothetical system with 256 bytes of main memory, 64 bytes of cache, blocks of 8-byte size, a 2-way associative placement policy and an LRU replacement policy for each set, determine, for each block in cache,
(a) the block address (in decimal representation) of the memory block stored in it, and
(b) the content of the age register (priority counter) of it, at the end of each memory access shown in the following address sequence generated by CPU (a very unlikely case, of course).
x4b x3f x36 x6d x24 x54 x70 x4d x8a x56 x90 x40 xae x4f x9a
Also determine the hit ratio from this sequence of accesses.
Note: in order to start finding the location to place into an empty set in cache, make sure that age registers of all blocks in each set are properly initialized; e.g., a 2-way set would have the 2 counters initialized as 0 and 1, whereas a 4-way set would have the 4 counters initialized as 0,12 and 3, and so on. Hint: the first address x 4 b would have its block address equal to "9" in decimal value to be placed into your target cache block in your solution.
Below is an example showing a cache of two sets with 4 blocks each (i.e.,\( S=4\)) and the format of information you need to provide in your solution (note: this is not conforming to the parameters for this problem). In this hypothetical example, the block that contains the first access with address x39 is found to have a block address of 17 and is placed into set 0.
3 ) ( 3 0 pts ) In a hypothetical system with 2 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!