Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are given designs of 3 caches for a 16-bit address machine: D1: Direct-mapped cache. Each cache line is 1 byte. 10-bit index, 6-bit tag.
You are given designs of 3 caches for a 16-bit address machine:
D1:
Direct-mapped cache.
Each cache line is 1 byte.
10-bit index, 6-bit tag.
1 cycle hit time.
2-way set-associative cache.
Each cache line is 1 word (4 bytes).
7-bit index, 7-bit tag.
2 cycle hit time.
Each cache line is 1 word.
14-bit tag.
5 cycle hit time.
a) What is the size of each cache?
b) How much space does each cache need to store tags?
c) Which cache design has the most conflict misses? Which has the least?
d) The following information is given to you: hit rate for the 3 caches is 50%, 70% and 90% but did not tell you which hit rate corresponds to which cache, which cache would you guess corresponded to which hit rate? Why?
e) Assuming the miss time for each is 20 cycles, what is the average service time for each? (Service Time = (hit rate)*(hit time) + (miss rate)*(miss time)).
D1:
Direct-mapped cache.
Each cache line is 1 byte.
10-bit index, 6-bit tag.
1 cycle hit time.
2-way set-associative cache.
Each cache line is 1 word (4 bytes).
7-bit index, 7-bit tag.
2 cycle hit time.
Each cache line is 1 word.
14-bit tag.
5 cycle hit time.
a) What is the size of each cache?
b) How much space does each cache need to store tags?
c) Which cache design has the most conflict misses? Which has the least?
d) The following information is given to you: hit rate for the 3 caches is 50%, 70% and 90% but did not tell you which hit rate corresponds to which cache, which cache would you guess corresponded to which hit rate? Why?
e) Assuming the miss time for each is 20 cycles, what is the average service time for each? (Service Time = (hit rate)*(hit time) + (miss rate)*(miss time)).
Step by Step Solution
★★★★★
3.34 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
6 10 0 Index is 10 Size of cache D1 2101024B D2 7 7 2 2 Block size 4B Total number of blocks inside ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started