Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SHOW ALL WORK, WILL RATE. Suppose that you have a 4-way associative cache. In one of the sets of the cache, there is a stream

image text in transcribed image text in transcribed SHOW ALL WORK, WILL RATE.

Suppose that you have a 4-way associative cache. In one of the sets of the cache, there is a stream of accesses to the following block addresses. Determine whether each of the access would result in a cache hit, a cache miss, or a cache miss and replacement. Show what block is replaced for each of the following replacement policies: LRU, OPT, FIFO, Pseudo-LRU, and Inverse MRU. Inverse MRU keeps track of which line is the most recently used within each set. On replacement, replace the block from the line that is bitwise inverse of the MRU (e.g., if the MRU is in line "10", then select block in line "01" for replacement). For the first few accesses, fill the cache starting from way/line 00, 01, 10, and then 11. For each cell, use the following notation: "H" for hit, M for miss, "MR-x" for miss and replace block x. For the Pseudo-LRU replacement, assume initially that the tree has 'O' in all nodes. For the OPT replacement, if future information is no longer available for one or more blocks, break the tie by choosing to replace block that is alphabetically earlier (e.g. replace A before B, etc.) Accessed Block Address LRU Pseudo-LRU FIFO Inverse MRU OPT A IB ID E G F F ID Ic D E G JE A Suppose that you have a 4-way associative cache. In one of the sets of the cache, there is a stream of accesses to the following block addresses. Determine whether each of the access would result in a cache hit, a cache miss, or a cache miss and replacement. Show what block is replaced for each of the following replacement policies: LRU, OPT, FIFO, Pseudo-LRU, and Inverse MRU. Inverse MRU keeps track of which line is the most recently used within each set. On replacement, replace the block from the line that is bitwise inverse of the MRU (e.g., if the MRU is in line "10", then select block in line "01" for replacement). For the first few accesses, fill the cache starting from way/line 00, 01, 10, and then 11. For each cell, use the following notation: "H" for hit, M for miss, "MR-x" for miss and replace block x. For the Pseudo-LRU replacement, assume initially that the tree has 'O' in all nodes. For the OPT replacement, if future information is no longer available for one or more blocks, break the tie by choosing to replace block that is alphabetically earlier (e.g. replace A before B, etc.) Accessed Block Address LRU Pseudo-LRU FIFO Inverse MRU OPT A IB ID E G F F ID Ic D E G JE A

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

Survey Of Accounting

Authors: James D. Stice, W. Steve Albrecht, Earl Kay Stice, K. Fred Skousen

1st Edition

0538846178, 978-0538846172

More Books

Students also viewed these Accounting questions

Question

What is the meaning and definition of E-Business?

Answered: 1 week ago

Question

How does teacher immediacy affect learning?

Answered: 1 week ago