Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the following assembly language code where there are 7 instructions numbered I0 to I6, consider a MIPS design: I0: ADD R4 = R1

1. Consider the following assembly language code where there are 7 instructions numbered I0 to I6, consider a MIPS design: I0: ADD R4 = R1 + R0; I1: SUB R9 = R3 - R4; I2: ADD R4 = R5 + R6; I3: LDW R2 = MEM[R3 + 100]; I4: LDW R2 = MEM[R2 + 0]; I5: STW MEM[R4 + 100] = R2; I6: AND R2 = R2 & R1;
  1. Assuming no data forwarding, draw the time sequence pipeline diagram and calculate the number of clock cycles needed to complete the whole sequence of instruction.
  2. Assuming forwarding, draw the time sequence pipeline diagram and calculate the number of clock cycles needed to complete the whole sequence of instruction.
  1. Rearrange the following code to avoid/reduce the stall clock cycles
add $3,$2,$1 lw $4,4($3) addi $6,$4,1 sub $8,$3,$1

 



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

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions