Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a memory hierarchy consisting of a 128 byte cache and 1kB (i.e., 1024 byte) main memory. Block size is 32 bytes. Define blocks

  

Consider a memory hierarchy consisting of a 128 byte cache and 1kB (i.e., 1024 byte) main memory. Block size is 32 bytes. Define blocks in main memory as MO, M1, M2, .. and blocks in the cache as Co, C1, C2, .. a) How many blocks are in the cache? How many blocks are in main memory? b) If the cache is direct mapped, what cache blocks can M5 be placed into? c) If the cache is 2-way set associative, what cache blocks can M5 be placed into? d) Assume that the cache hit time is 1ns and the miss penalty is 5ns. What is the average memory access time for a program with 5% miss rate?

Step by Step Solution

3.40 Rating (162 Votes )

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

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Computer Network questions

Question

=+d. Let denote the proportion of defective items

Answered: 1 week ago