Question: The following assembly language program is being run on a 3 2 bit ARM processor that uses an 8 word cache with a 2 word
The following assembly language program is being run on a bit ARM processor that uses
an word cache with a word block size. You can assume that the contents of r are zero
and r is xffffffff
r #x
str r r #xa
str r r #xac
r #xcc
r #x
Main memory contents are as follows:a For each line of the assembly language program, draw a picture of the cache contents
including entries to the tag, valid and dirty bits associated with each set.
b Indicate which lines in the assembly language program result in a main memory write
for both the writethough and writeback cache managment strategies.
c Determine the average memory access time for this program under the writethrough
and writeback schemes.
Note:
Hint: For part c you can't just apply the equation from the notes but will instead
need to calculate it based on the memory accesses performed for each line of code.
For part c you can assume a main memory readwrite requires clock cycles
regardless of how many words are readwritten A cache readwrite requires clock
cycle. A read and write performed for the same command must be accounted for
separately.
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
