Question: Problem 5 ( 2 8 points total, 7 points per part ) Suppose we are given a direct - mapped cache with 8 sets, 1
Problem points total, points per part
Suppose we are given a directmapped cache with sets, wordset and a byte offset of The byte offset essentially tells us to drop the lowest bits from the address before mapping the next bits to the proper set in the cache. The initial state of the cache and the program to use to answer the questions is shown here:
Set mov r #
mov r #
There is no
tall.
cmp r #
beq DONE
dr rr #x OOI
ldr rr #x OO
ldr rr #x OOI
sub r r #
b LOOP
DONE:
a How many cycles are required to run the program on the multicycle ARM processor? Assume that mov and cmp follow the standard rules of data processing instructions in terms of cycles used. What is the CPI of this processor for this program?
b How many cycles are required to run the program on the pipelined ARM processor equipped with a hazard control unit if we assume that we always predict to take the branch when encountering a binstruction? Also assume that mov and cmp follow the standard rules of data processing instructions in terms of cycles used. What is the CPI of this processor for this program?
c For the given program, what would be the miss rate for this particular cache? Provide both the total number of misses and the total number of opportunities as the two values that are used to calculate the rate. You may but are not required to fill in appropriate tag and data values to help you and to show your work.
d What is the average memory access time of a machine whose hit rate and miss rate can be found using the information from part c with a cache access time of ns and a main memory access time of ns
Reference table for different instruction types:
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
