Question: Question 3 ( 2 0 points ) . Assuming the following functional unit latencies: . What is the cycle time of a single - cycle

Question 3(20 points). Assuming the following functional unit latencies:
. What is the cycle time of a single-cycle implementation? What is the cycle time of a pipelined
implementation?
Given the program below:
lw a2)
subi $t0, $t1,1
addi $v0,$0,0
add $t0,$0,$0
add $t4, $a0, $a1
. The assembly code is executed using a 5-stage MIPS processor. Plot the pipeline diagram to
show the execution of these five instructions. [hint: The instruction sequence is shown vertically, from
top to bottom. Clock cycles are shown horizontally, from left to right. Each instruction is divided into its
component stages.].
. If the given program is run on the single-cycle implementation, how many cycle does it take to
execute these five instructions? How long does it take to complete execution (ns)?
. If the given program is run on the pipelined implementation, how many cycles does it take to
execute these five instructions? How long does it take to complete execution (ns)?Question 2(10 points). Given the program below,
li $t1,0
li $t2,10
beq t1,t2, Exit
addi t1,t1,1
j L
Exit:
. How many static instructions in the program? How many dynamic instructions in the program?
["Exit" is a label not an instruction]
. Compare the performance of the following two processors:
P1: 1 GHz , with a CPI of 1.2 for the given program
P2: 2 GHz , with a CPI of 1 for the same program
Calculate the CPU execution time of these two processors on the given program. Which processor is
faster in executing the given program? How much faster?
Question 3 ( 2 0 points ) . Assuming the

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!