Question: Consider the following code sequence lw $3, 0(S5) lw $4, 4(S5) add S7, $7, S3 add $8, $8, $4 add $10, $7, $8 sw $6,

 Consider the following code sequence lw $3, 0(S5) lw $4, 4(S5)

Consider the following code sequence lw $3, 0(S5) lw $4, 4(S5) add S7, $7, S3 add $8, $8, $4 add $10, $7, $8 sw $6, 0(S5) Assume that a register read and register write in the same clock cycle is possible a. Without any forwarding hardware in the pipelined datapath, how many cycles does this code sequence take to execute? b. With forwarding hardware in the pipelined datapath, how many cycles does it take to execute? c. With forwarding hardware in the pipelined datapath, reorder the instruction so that it takes the minimum number of clock cycles

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!