Question: Assume that on the multi - cycle data path all instructions listed below, except for the lw instruction, require 4 cycles to execute. The lw

Assume that on the multi-cycle data path all instructions listed below, except for the lw instruction, require 4 cycles to execute. The lw instruction takes 5 cycles on the multi-cycle data path. Consider the following instruction sequence:
lui $2,0x4004
ori $5, $0,50
lui $3,0x400C
lw $4,80($2)
addu $6, $5, $5
lw $7,0($3)
addiu $3, $3,4
addu $9, $4, $5
nop
sw $7,0($2)
a)(3) How many nano-seconds will this instruction sequence take to execute on the multi-cycle data path if the clock cycle time is 4 nano-seconds?
b)(5) How many nano-seconds will this instruction sequence take to execute on our 5-stage MIPS pipelined system if the clock cycle time is 4 nano-seconds? Assume that the pipelined system includes a data hazard unit as well as a data forwarding unit.

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 Programming Questions!