Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a 16-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and an unbounded backing memory. The cache is 2- way

Consider a 16-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and an unbounded backing memory. The cache is 2- way set associative, 4-byte cache lines, and a capacity of 32 bytes. Consider also the following sequence of memory word addresses.

8, 3, 9, 7, 15, 20, 22, 2, 6, 0

(a) Determine, in binary notation, the set index and block offset for each address in the above sequence. Include the byte offset as part of the block offset. Assume the cache is initially empty. During the sequence of address accesses above, determine if each reference results in a cache hit or a cache miss. If the reference results in a cache miss, which type of cache miss occurs (cold, conflict, or capacity). Use the below table to help answer this question.

image text in transcribed

(b) Create a table which resembles this caches configuration. Fill that table such that it corresponds to the caches contents after all addresses in the above sequence have been referenced.

\begin{tabular}{|r|l|l|l|l|} \hline Address & Index & Block Offset & Hit or Miss & Type of Miss \\ \hline 8 & & & & \\ \hline 3 & & & & \\ \hline 9 & & & & \\ \hline 7 & & & & \\ \hline 15 & & & & \\ \hline 20 & & & & \\ \hline 22 & & & & \\ \hline 2 & & & & \\ \hline 6 & & & & \\ \hline 0 & & & & \\ \hline \end{tabular}

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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

What is a buffer overflow, and how is it used against a Web server?

Answered: 1 week ago

Question

4. Support and enliven your speech with effective research

Answered: 1 week ago

Question

3. Choose an appropriate topic and develop it

Answered: 1 week ago