Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A system has Virtual Memory, L1 cache divided into Instruction and Data Cache, M

ID: 3581391 • Letter: A

Question

A system has Virtual Memory, L1 cache divided into Instruction and Data Cache, MMU, Page Table and TLB. Explain briefly the sequence of steps occurring for the event when the required data is in RAM but has not been used recently, in precise words (point form is suggested), or using a flowchart, or some sort of diagram. It is always good to learn something new, even during a test. You have been programming in ARM assembly language calling function and passing input parameters in registers. If you remember, it was briefly discussed in the lectures that a different strategy is to pass parameters on the stack (in fact, it is automatically done by a compiler when the number of parameters exceeds a fixed number). The question below uses parameter passing through the stack, placed there by the caller and retrieved by the called function. Moreover you will also team that local variables arc allocated in memory on the stack, such that than can be easily deallocated at the exit of the function. Follow the logic below with the explanation of some new concepts and answer the questions. The following ARM code is used to call the function Foo with three input parameters passed on the stack by the caller. STR R2, (SP, # - 4)! @ 1st parameter on stack STMFD SP!, {R3 - R4} @ 2nd and 3rd parameters BL Foo @Call int Foo(R2, R4, R3) Next:

Explanation / Answer

when ever an event occurs the data related to the even is first searched in the main memory, ie RAM.
If it is not found in the RAM, then the immediate search location is Cache memory.
It the data is found in the cache it is loaded into the memory. Else,
Finally MMU searches for the data in the physical memory and loads the data into the main memory page.
Now the data can be applied to the event and required manner.

In the given scenario as the data is resident in the RAM but not accesses since long time MMU will locate the data and access it get the required job done. No cache or virtual memory/ will be consulted for the data in the case.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote