Question: Consider the following code sequence: loop: add $t0, $t1 $t2 lw $t3, 10($t0) lw $t4, 14($t0) sub $t5, $t4, $t3 sw $t5, 18($t0) addi $t2,

 Consider the following code sequence: loop: add $t0, $t1 $t2 lw

Consider the following code sequence: loop: add $t0, $t1 $t2 lw $t3, 10($t0) lw $t4, 14($t0) sub $t5, $t4, $t3 sw $t5, 18($t0) addi $t2, $t2, 4 slti $t6, $t2, 200 bne $t6, $zero, loop Assume that each datapath stage requires the following minimum amount of time to complete: Instruction fetch (IF): 30 ns Instruction decode (ID): 20 ns Execute address calculation (EX): 25 ns Memory access (MEM): 30 ns Register write back (WB): 20 ns a. How long will one loop iteration take in a single-cycle datapath? b. How long will one loop iteration take in a multi-cycle datapath

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!