Question

How many clock cycles would be required to execute the following sequence of instructions? add $t1,...

How many clock cycles would be required to execute the following sequence of instructions? add $t1, $t2, $t3 #1 lw $t3, 0($t1) #2 add $t2, $t2, $t3 #3 add $t3, $t1, $t2 #4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

add $t1, $t2, $t3 #1

lw $t3, 0($t1) #2

add $t2, $t2, $t3 #3

add $t3, $t1, $t2 #4

1, 3 and 4 are R-type instructions which takes 4 cycles of execution.

#2 is load instruction which takes 5 cycles of execution.

Hence in total it takes 3*4 + 5 = 17 cycles.

Add a comment
Know the answer?
Add Answer to:
How many clock cycles would be required to execute the following sequence of instructions? add $t1,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT