Question

Consider the code sequence below in executing on an SMP system with 2 processors implemented with a snooping bus. The system uses MSI protocol. Assume R2 is initialized to 0x0200 on both processors in cycle C0. ISA format:

opcode <t> <src1> <src2 Cycle CO: C1: C2: C3: C4: С5: Ce: C7: C8: Processor0 Processor 1 nop ld R1, 0(R2) addi R1, 0x72 st R1

Fill in the status of the cache line for the address 0x0200 for each cycle for both processors. In MSI protocol, a cache line can be I (Invalid), S (Shared), or M (Modified) state.

Cache line status for 0x200 P1 Cycle# PO

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Invalid(I)->cache does not have a copy of data.

shared (S)->cache has a read only copy of data.

Modified(M)->cache has an only copy writable.

Id R1,0 (R2)

Id means instruction data.

This command used for memory read data from cache.so this command is specified by 's'.

Addi R1,0x72

addi means add immediate

This command is used to read data from the given location.

st R1,0 (R2)

Reset the data so we can represent with m.

mul r1,r3,r4

apply multiplication on 2 registers and stored in a another register.

so this command write data to the register so it is represented with m.

rop nop Cl ) nop C2. add: R, ,0メわ oddsp , ,0x72. no coch, mne stat, fo 0x200 6

Add a comment
Know the answer?
Add Answer to:
Consider the code sequence below in executing on an SMP system with 2 processors implemented with...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT