Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need solution for Question.1 on word file. please avoid handwriting. 1. Given two MIPS instructions: addi $s0, St0, 1 sub t1, $s0, $t2 a.
I need solution for Question.1 on word file. please avoid handwriting.
1. Given two MIPS instructions: addi $s0, St0, 1 sub t1, $s0, $t2 a. [10 points] Identify any data hazard(s) b. [10 points] Show how you can use "bubbles" to eliminate the hazard(s) c. [10 points] Are "bubbles" the only way to eliminate the hazard(s)? Why or why not? 2. Given two MIPS instructions: lw $s0, 48($t0) subi t1, $s0, 5 a. [10 points] Identify any data hazard(s) b. [10 points] Show how you can eliminate the hazard(s) with as few "bubbles" as possible 3. Given three MIPS instructions: add $s4, $s5, $s6 beq $s1, Ss2, L or s7, $s8, $s9 a. [10 points] Identify any control hazard(s) b. [10 points] Show how you can eliminate the hazard(s) with as few "bubbles" as possible 4. Given the following instruction sequence sub $2, $1,$3 and $12,$2,$5 or $13,$6,$2 add $14,$2,$2 sw $15,100($2) a. [10 points] Identify all the data dependencies and data hazard(s) b. [10 points] Show how you can eliminate the data hazard(s) with forwarding c. [5 points] Are the data dependencies the same as the data hazard(s)? Why or why not
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started