Consider the given code below and the clock cycles. Identify all RAW dependencies. loop : lw $ f0 , ( $t0 ) lw $ f2 , ( $t1 ) add.d $ f4 , $ f0 , $ f 2 mul.d $ f4 , $ f4 , $ f 6 sw $ f4 , ( $t2 ) addi...



Consider the given code below and the clock cycles.

Identify all RAW dependencies.


loop :


lw $ f0 , ( $t0 )


lw $ f2 , ( $t1 )


add.d $ f4 , $ f0 , $ f 2


mul.d $ f4 , $ f4 , $ f 6


sw $ f4 , ( $t2 )


addi $t0 , $t0 , 8


addi $t1 , $t1 , 8


subi $t3 , $t3 , 1


bnez $t3 , loop









Lw and store—takes 2 clock cycles


add.d  takes 4 clock cycles


mul.d takes 6 clock cycles


 addi and subi takes 0 clock cycles


bnez takes 1 clock cycles





Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here