Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started