Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 5 points 2 . For the given sequence of instructions, fill the table below with the pipeline stages for each instruction. IMPORTANT: ASSUME that

15 points
2. For the given sequence of instructions, fill the table below with the pipeline stages for each instruction.
IMPORTANT: ASSUME that due to a hardware defect ALU takes twice the time to MULT/DIV, also forwarding, that is the result of BUS is
available in the beginning of the next 2 clock cycles. If possible, try to reduce the number of cycles by changing the sequence of the code without
altering the output. How many cycles does it take to execute his piece of code?
*You might need more clock cycles.
Set of
Instruction 1234567891011121314151617181920212223242526272829303132333435
i
j
k
I
m
n
o
p
q
r
SW R0,0(R0)
LW R2,0(R0)
LW R3,4(R0)
ADD R2, R0,
R2
MULT R3, R1,
R3
SW R3,0(R4)
LW R5,4(R4)
DIV R2, R3,
R5
SW R2,4(R3)
LW R6,4(R3)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

2. Recognize students who are helpful.

Answered: 1 week ago