Answered step by step
Verified Expert Solution
Link Copied!

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 32 bit ARM processor that uses
an 8 word cache with a 2 word block size. You can assume that the contents of r0 are zero
and r6 is 0xffffffff.
1drr5,[ r0, #0x00094]
str r6,[ r0, #0x000a8]
str r6,[ r0, #0x000ac ]
1drr7,[ r0, #0x000cc ]
1drr8,[ r0, #0x00090]
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 write-though and write-back cache managment strategies.
c) Determine the average memory access time for this program under the write-through
and write-back 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 read/write requires 100 clock cycles
regardless of how many words are read/written. A cache read/write requires 1 clock
cycle. A read and write performed for the same command must be accounted for
separately.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago