Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

Recognize the causes and symptoms of stress.

Answered: 1 week ago

Question

1. What is the difference between exempt and nonexempt jobs?pg 87

Answered: 1 week ago