Question: A multicore system contains two ( 2 ) RISC V processors, P 1 and P 2 . Each processor maintains a private data cache employing

A multicore system contains two (2) RISC V processors, P1 and P2. Each processor maintains a private data cache employing a write-back update scheme with the MESI snooping protocol (as shown in Fig. 1) to maintain coherence.
MESI_v1.png
Figure 1. State transition diagram for the MESI protocol.
Processors P1 and P2 execute a sequence of memory access operations on a shared memory address in the following order (the address is stored in register a0 on both P1 and P2):
a0: 0x123
P1: lw t0,0(a0)
P1: sw t0,0(a0)
P2: lw t1,0(a0)
P2: sw t1,0(a0)
P1: lw t0,0(a0)
P1: sw t0,0(a0)
Using the tabular format shown below, list the shared bus transactions (Bus Read, Bus Read Ex, Bus Write or Shared) and the state (Modified, Exclusive, Shared or Invalid) of the cache entry for Mem[a0] in the cache for both P1 and P2 after each instruction. If no shared bus transaction is issued, enter None.
Operation P1 Bus Transaction P2 Bus Transaction P1 Cache State P2 Cache State
Initial state Invalid Invalid
P1: lw t0,0(a0)
P1: sw t0,0(a0)
P2: lw t1,0(a0)
P2: sw t1,0(a0)
P1: lw t0,0(a0)
P1: sw t0,0(a0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!