Question: 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
Get step-by-step solutions from verified subject matter experts
