Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 followAccessed Block Address LRU Pseudo-LRU FIFO Inverse MRU OPT AIB сID АE GІн FF ID Ic DE 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 A B C D A E G H F F D IC D E G H E LRU Pseudo-LRU FIFO Inverse MRU OPT

Step by Step Solution

3.48 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

ANSWER To solve this problem we need to keep track of the contents of the cach... 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

Introductory Statistics

Authors: Neil A. Weiss

10th Edition

321989171, 978-0321989178

More Books

Students also viewed these Accounting questions

Question

State the empirical rule as specialized to variables?

Answered: 1 week ago