Question: 2. Consider the following assembly program for the 4-cycle pipelined microMIPS CPU: lw $t0, A ($zero) add $t3, $t1, $t0 add $t4, $t3, $t2

 2. Consider the following assembly program for the 4-cycle pipelined microMIPS CPU: 

2. Consider the following assembly program for the 4-cycle pipelined microMIPS CPU: lw $t0, A ($zero) add $t3, $t1, $t0 add $t4, $t3, $t2 sub $t7, $t8, $t9 beq $t5, $t6, skip xor $t3, $t0, $t1 (a) Show the task-time diagram for this program for the pipelined CPU. Insert bubbles as appropriate to ensure proper program execution. (b) Describe any ways to minimize the number of bubbles required to execute the program. This may take the form of modifications to the CPU architecture or changes to the program (while ensuring that it still performs the same task). Assume that the beq instruction will evaluate to false.

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!