Assume the code below is executed on a computer with a clock rate of 2GHz . assume that add takes one clock cycle to execute, lw requires 2 clock cycles to execute, sub requires one clock cycle and sw...



Assume the code below is executed on a computer with a clock rate of

2GHz
.





assume that
add
takes
one
clock cycle to execute,
lw
requires
2
clock


cycles to execute,
sub
requires
one
clock cycle and
sw
requires
3
clock cycles to execute.



  1. What is the average CPI?








  1. How long will it take the code sequence to complete?




ماتنسي تكتبي القاعدة عند الاجابة على السؤالين


















add $t0 , $t1 , $t2


lw   $s0 , 12( $t0)


add $t0 , $t3 , $t4


lw   $s1 , 20( $t0)


sub $s3 , $s0 , $s1


sub $t0 , $t5 , $t6


sw  $s3 , 24( $t0)


sw  $s3 , 48( $t0)








Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here