Question: ( Q . 3 ) For a direct - mapped cache design with a 3 2 - bit address, the following bits of the address
Q For a directmapped cache design with a bit address, the following bits of the address
are used to access the cache.
Section shows the typical method to index a directmapped
cache, specifically block address modulo number of blocks in the
cache Assuming a bit address and blocks in the cache, consider a
different indexing function, specifically Block address : XOR Block
address : Is it possible to use this to index a directmapped cache? If
so explain why and discuss any changes that might need to be made to the
cache. If it is not possible, explain why.
For a directmapped cache design with a bit address, the following
bits of the address are used to access the cache.
Tag Index Offset
What is the cache block size in words
How many entries does the cache have?
What is the ratio between total bits required for such a
cache implementation over the data storage bits?
Beginning from power on the following byteaddressed cache references are
recorded.
Address
Hex E AE C CC B
Dec
For each reference, list its tag, index, and offset,
whether it is a hit or a miss, and which bytes were replaced if any
What is the hit ratio?
a What is the cache block size in words
b How many entries does the cache have?
c What is the ratio between total bits required for such a cache implementation over
the data storage bits? Beginning from power on the following byteaddressed cache
references are recorded.
Generate a series of read requests that have a lower
miss rate on a KiB twoway set associative cache than on the cache
described in Exercise
Section shows the typical method to index a directmapped
cache, specifically block address modulo number of blocks in the
cache Assuming a bit address and blocks in the cache, consider a
different indexing function, specifically Block address : XOR Block
address : Is it possible to use this to index a directmapped cache? If
so explain why and discuss any changes that might need to be made to the
cache. If it is not possible, explain why.
For a directmapped cache design with a bit address, the following
bits of the address are used to access the cache.
Tag Index Offset
What is the cache block size in words
How many entries does the cache have?
What is the ratio between total bits required for such a
cache implementation over the data storage bits?
Beginning from power on the following byteaddressed cache references are
recorded.
Address
Hex E AE C CC B
Dec
For each reference, list its tag, index, and offset,
whether it is a hit or a miss, and which bytes were replaced if any
What is the hit ratio?
d For each reference, list its tag, index, and offset, whether it is a hit or a miss,
and which bytes were replaced if any
e What is the hit ratio?
f List the final state of cache, with each valid entry represented as a record of
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
