Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Text: Suppose that we have a processor with two levels of cache hierarchy. The L1 cache is direct mapped and contains two lines. The L2

Text:

Suppose that we have a processor with two levels of cache hierarchy. The L1 cache is direct mapped and contains two lines. The L2 cache is fully associative and has four lines. The L2 cache is inclusive of the L1 cache, and inclusion is enforced by a multi-level cache inclusion protocol. Both the L1 and L2 caches use LRU replacement policy. Assume that blocks A, B, C, D map to the first line in the L1 cache, while blocks U, V, W, X map to the second line in the L1 cache. Each block has either a Valid (V) or Invalid (I) state.

Show the outcome of each read access (H for Hit, M for Miss, MR-X for Miss and Replace block X) and show the final cache content (Write block name A,B,C,D etc. under 'Which Block?' column, and 'Valid' or 'Invalid' under 'What State?' column)

Since the L2 cache is fully associative, fill in its final cache contents in alphabetical order.

(Also show tables where 1.L2 uses a non-inclusive policy and 2.L2 uses an exclusive policy. Both use the same table format as the image shown below)

Image:

image text in transcribed

Invalid (1) state. Since the L2 cache is fully associative, fill in its final cache contents in alphabetical order. Final Cache Content

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_2

Step: 3

blur-text-image_3

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions