Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Very urgent. Please answer by 20 minutes. Subject: Computer Organization and Architecture 3. Consider the following assembly code: Instruction Description LOAD R1, M1 Read data

Very urgent. Please answer by 20 minutes. Subject: Computer Organization and Architectureimage text in transcribed

3. Consider the following assembly code: Instruction Description LOAD R1, M1 Read data from memory address M1 and store in R1. LOAD R2, M2 Read data from memory address M2 and store in R2. JUMP Target1 Target2: XOR R2, R1, R1 Logical Ex-OR between contents of R1 with R1 and store result in R2 Target3: ADD R7, R1, R5 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 ADD R5, R7, R3 AND R1, R2, R3 Target1: SUB R3, R1, R2 Subtract content of R2 from R1 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 OR R5, R3, R7 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 12345 LOAD R1, M1 LOAD R2, M2 JUMP Target-1 Target-2: XOR R2, R1, R1 Target-3: ADD R7, R1, R5 OR R2, R4, R6 OR R5, R3, R7 ADD R5, R7, R3 AND R1, R2, R3 Target-1: SUB R3, R1, R2 BNEZ R3, Target-2 BEZ R3, Target-3 OR R2, R4, R6 OR R5, R3, R7 STORE M4, R2 END

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_2

Step: 3

blur-text-image_3

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

Project management skills and/or experience desirable

Answered: 1 week ago