Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this question, we assume a write-back and write-allocate cache with 16 byte long cache blocks. The following sequence is repeated N times (that is

image text in transcribed

For this question, we assume a write-back and write-allocate cache with 16 byte long cache blocks. The following sequence is repeated N times (that is total 6'N accesses) 1. READ 0x04CF 2. READ 0xF3C7 3. WRITE 0x0423 4. WRITE 0x0433 5. WRITE 0x2BC4 6. READ 0x04BF Assume that the cache is empty initially and the entire block is fetched on a miss. a. What is the total number of misses (read misses plus write misses) for a 64B direct- mapped cache? b. What is the total number of writebacks of dirty blocks for the same cache in (a)? c. Find the smallest size for a direct-mapped cache such that there are no misses besides compulsory misses. d. Find the smallest size for a 2-way set associative cache such that there are no misses besides compulsory misses. For this question, we assume a write-back and write-allocate cache with 16 byte long cache blocks. The following sequence is repeated N times (that is total 6'N accesses) 1. READ 0x04CF 2. READ 0xF3C7 3. WRITE 0x0423 4. WRITE 0x0433 5. WRITE 0x2BC4 6. READ 0x04BF Assume that the cache is empty initially and the entire block is fetched on a miss. a. What is the total number of misses (read misses plus write misses) for a 64B direct- mapped cache? b. What is the total number of writebacks of dirty blocks for the same cache in (a)? c. Find the smallest size for a direct-mapped cache such that there are no misses besides compulsory misses. d. Find the smallest size for a 2-way set associative cache such that there are no misses besides compulsory misses

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago