Question: 1 . A cache has the following parameters: b , block size given in numbers of words; S , number of sets; N , number

1. A cache has the following parameters: b, block size given in numbers of
words; S, number of sets; N, number of ways; and A, number of address
bits. (a) In terms of the parameters described, what is the cache capacity,
C?
(b) In terms of the parameters described, what is the total number of bits
required to store the tags?
(c) What are S and N for a fully associative cache of capacity C words
with block size b ?
(d) What is S for a direct mapped cache of size C words and block size b
?
2. A 16-word cache has the parameters given in problem 1. Consider the
following repeating sequence of 1w addresses (given in hexadecimal):
4044484C 7074787C 8084888C 9094989C 048 C 1014181C 20
Assuming least recently used (LRU) replacement for associative caches,
determine the effective miss rate if the sequence is input to the following caches, ignoring startup effects (i.e., compulsory misses).(a) direct
mapped cache, S =16, b =1 word
(b) fully associative cache, N =16, b =1 word
(c) two-way set associative cache, S =8, b =1 word
(d) direct mapped cache, S =8, b =2 words
3. Assume that main memory accesses take 70 ns and that memory accesses
are 36% of all instructions. The following table shows data for L1 caches
attached to each of two processors, P1 and P2.
L1 Size L1 Miss Rate L1 Hit Time
P12 KB 8.0%0.66 ns
P24 KB 6.0%0.90 ns
Assuming that the L1 hit time determines the cycle times for P1 and
P2, what are their respective clock rates?
What is the Average Memory Access Time for P1 and P2?
Assuming a base CPI of 1.0 without any memory stalls, what is the
total CPI for P1 and P2? Which processor is faster? (When we say a
base CPI of 1.0, we mean that instructions complete in one cycle,
unless either the instruction access or the data access causes a cache
miss.) For the next three problems, we will consider the addition of
an L2 cache to P1 to presumably make up for its limited L1 cache
capacity. Use the L1 cache capacities and hit times from the previous
table when solving these problems. The L2 miss rate indicated is its
local miss rate.
L2 Size L2 Miss Rate L2 Hit Time
1MB 95%5.62 ns
What is the AMAT for P1 with the addition of an L2 cache? Is the
AMAT better or worse with the L2 cache?
Assuming a base CPI of 1.0 without any memory stalls, what is the
total CPI for P1 with the addition of an L2 cache?
What would the L2 miss rate need to be in order for P1 with an L2
cache to be faster than P1 without an L2 cache?
What would the L2 miss rate need to be in order for P1 with an L2
cache to be faster than P2 without an L2 cache?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!