The following program counts the sum of even numbers inside a given array?: (a)
ID: 3690885 • Letter: T
Question
The following program counts the sum of even numbers inside a given array?:
(a) Load the program above into SPIM-CACHE. Configure the cache settings to be 256-B size, 16-B line size, and four-way set associative. Run the program and record the results (i.e. the status of each register).
(b) Write down the contents of data cache after the program is completed. Explain in details how the elements of Array_A are mapped to each slot in the data cache.
(c) Write down the contents of the instruction cache after the program is completed. Explain in detail how the contents are obtained through executing the program.
Explanation / Answer
(b.)
(c.)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.