Question: 1 . A cache has the following parameters: b , block size given in numbers of words; S , number of sets; N , number
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
A word cache has the parameters given in problem Consider the
following repeating sequence of w addresses given in hexadecimal:
C C C C C C
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 ie compulsory missesa direct
mapped cache, S b word
b fully associative cache, N b word
c twoway set associative cache, S b word
d direct mapped cache, S b words
Assume that main memory accesses take ns and that memory accesses
are of all instructions. The following table shows data for L caches
attached to each of two processors, P and P
L Size L Miss Rate L Hit Time
P KB ns
P KB ns
Assuming that the L hit time determines the cycle times for P and
P what are their respective clock rates?
What is the Average Memory Access Time for P and P
Assuming a base CPI of without any memory stalls, what is the
total CPI for P and P Which processor is faster? When we say a
base CPI of 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 L cache to P to presumably make up for its limited L cache
capacity. Use the L cache capacities and hit times from the previous
table when solving these problems. The L miss rate indicated is its
local miss rate.
L Size L Miss Rate L Hit Time
MB ns
What is the AMAT for P with the addition of an L cache? Is the
AMAT better or worse with the L cache?
Assuming a base CPI of without any memory stalls, what is the
total CPI for P with the addition of an L cache?
What would the L miss rate need to be in order for P with an L
cache to be faster than P without an L cache?
What would the L miss rate need to be in order for P with an L
cache to be faster than P without an L cache?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
