Question: 7 . A processor has a 4 2 9 4 9 6 7 2 9 6 - byte data memory and a single data cache
A processor has a byte data memory and a single data cache cache
A Cache A is way set associative and contains lines each of which is
bytes in size. When the MIPS load byte instruction lb $$ is executed, CPU
register $ contains the address of the next to last byte within memory block
number
a Show the digit hex address contained in register $
b Suppose register $ contains some unspecified memory address. Write down
a sequence of MIPS trueop instructions that compute the cache line number to
which the address in register $ maps. The line number computed should be placed
into register $ Your instruction sequence may contain one or two MIPS trueop
instructions and should work for any memory address contained in $ without
changing $
c Cache B a different cache, contains a total of lines and is organized as
a way set associative cache. Each cache line is bytes in size. To what set within
this way set associative cache does the address xCFCDE map?
d If the reference to address xCFCDE causes a hit in Cache hit B what is the
tag for the cache line in which the hit occurs? Express your answer in hex.
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
