Question: 1 . To execute the following assembly code using a direct mapped cache with a larger block ( block size ( = 4
To execute the following assembly code using a direct mapped cache with a larger block block size as shown in the figure.
What is the HitMiss rate?
li $tO
loop: beq $t $ done
lw $tx$
lw $tOxC$
addi $to $to
j loop
done:
A cache has the following parameters: b block size given in numbers of words ; mathrmS number of sets ; mathrmN number of ways ; and A number of memory address bits
a In terms of the parameters described, what is the cache capacity in numbers of words?
b In terms of the parameters described, what is the number of bits required to represent each tag?
c If mathrmbmathrm~Smathrm~Ndirect mapped cachemathrmA What is the number of bits required to represent each tag?
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
