Question: 3. docx Consider the following assembly code: Instruction Description Open with Google Docs LOAD RI, M1 Read data from memory address M1 and store in

 3. docx Consider the following assembly code: Instruction Description Open with

3. docx Consider the following assembly code: Instruction Description Open with Google Docs LOAD RI, M1 Read data from memory address M1 and store in Ri. LOAD R2, M2 Read data from memory address M2 and store in R2. OR RS, RI, R2 JUMP Target Target2: XOR R2, R1,RI Logical Ex-OR between contents of R1 with R1 and store result in R2 Target3: ADD R7, R1, RS Add contents of R1 and R5 and store to R7 OR R2, R4, R6 Logical OR between contents of R4 with R6 and store result in R2 OR R5, R3, R7 ADDR3, R7, R3 AND R1, R2, R3 Target1: SUB R3, R1, R2 Subtract content of R2 from Ri and save result in R3; here R1 = R2 BNEZ R3. Target2 Jump to Target2 if R3 is non-Zero BEZ R3, Target3 Jump to Target3 if R3 is Zero OR R2. R4, R6 Logical OR between contents of R4 with R6 and store result in R2 STORE M4, R2 Save contents of R2 to memory address M4 END Use five-stage pipeline containing Fetch, Decode, Memory read, Execute, Write-back units, show the execution of program (at least 20 time steps). Data dependencies and control hazards, if detected must be resolved by delaying the pipeline as required. Use the following format: Instructions /Time-step 1 2 3 4 5 LOAD RI, MI LOAD R2, M2 OR RS, R1, R2 JUMP Target1 Target2: XOR R2, RI, RI Target3: ADD R7, RI. RS OR R2, R4, R6 OR RS, R3, R7 ADD RS. R7, R3 AND R1, R2, R3 Target1: SUB R3, R1, R2 BNEZ R3, Target2 BEZ R3. Target3 OR R2, R4, R6 STORE M4, R2 ENPage +

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!