Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please explain step-by-step how to solve these kinds of questions 1w Consider the MIPS assembly code below: addi $t0,$t1,8 $t1,4 ($s0) bne $s0, $t2, next

image text in transcribed

Please explain step-by-step how to solve these kinds of questions

1w Consider the MIPS assembly code below: addi $t0,$t1,8 $t1,4 ($s0) bne $s0, $t2, next ori $s0, $0, 0x4 next: andi $t0, $t2, 0x33 Assume the code above is executed on a 5-stage pipelined MIPS processor with branch delay slots. Before the code is executed, assume that register $so contains value Ox100020ff and that register $t2 contains arbitrary value. Answer the following: i. What kind of hazard/hazards may occur in the code above? ii. Which value/values will register $so contain after that the above code has fin- ished executing? If the value is unknown based on the available information, answer unknown. iii. Is any hazard solved using forwarding? If yes, answer with the two instructions that are involved. If no, simply answer no. 1w Consider the MIPS assembly code below: addi $t0,$t1,8 $t1,4 ($s0) bne $s0, $t2, next ori $s0, $0, 0x4 next: andi $t0, $t2, 0x33 Assume the code above is executed on a 5-stage pipelined MIPS processor with branch delay slots. Before the code is executed, assume that register $so contains value Ox100020ff and that register $t2 contains arbitrary value. Answer the following: i. What kind of hazard/hazards may occur in the code above? ii. Which value/values will register $so contain after that the above code has fin- ished executing? If the value is unknown based on the available information, answer unknown. iii. Is any hazard solved using forwarding? If yes, answer with the two instructions that are involved. If no, simply answer no

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books