Consider the instruction sequence in a fivestage pipeline IF

Consider the instruction sequence in a five-stage pipeline IF, OF, E, M, OS: ADD r0, r1, r2 ADD r3, r0, r5 STR r6, [r7] LDR r8, [r7] Instructions 1 and 2 will create a RAW hazard. What about instructions 3 and 4? Will they also create a RAW hazard? No, it will not create a hazard. It will not create a RAW hazard; but it will create a WAR hazard. It will not create a RAW hazard; but it will create a WAW hazard. Yes: it could create a RAW hazard.

Solution

Option 1,

Instructions 3 and 4 will not create a hazard because both the instructions perform only read operation on register r7 data

 Consider the instruction sequence in a five-stage pipeline IF, OF, E, M, OS: ADD r0, r1, r2 ADD r3, r0, r5 STR r6, [r7] LDR r8, [r7] Instructions 1 and 2 will

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site