Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

sub $t0, $t2, $t3 addi $s0, $t0, -7 add $s1, $s0, $t5 Iw $t6, 6($s1) sub $s0, $16, $12 Consider the above code sequence, a)

sub $t0, $t2, $t3 addi $s0, $t0, -7 add $s1, $s0, $t5 Iw $t6, 6($s1) sub $s0, $16, $12 Consider the above code sequence, a) If you only use stall to overcome the data hazards in the above code sequence, how many stalls would be needed? Answer: b) If you use stall and code scheduling to overcome the data hazards, what will be the number of clock cycles? Answer: c) If you use stall and forwarding to overcome the data hazards, how many stalls would be reduced? Answer: d) What will be the CPI, if you use stall and forwarding to overcome the data hazards? Answer: e) Consider the clock period is 500ps. Consider, the Register Write takes 450ps and Register Read takes 350ps, how many stalls would be needed to overcome the data hazard if you use only stall as a solution? Answer: f) If the "lw $16, 6($s1)" instruction in the above code sequence is replaced with "sw $t6, 6($s1)", what will be the number of clock cycles If you use forwarding to overcome the data hazards? Answer: g) If the instruction "add $s7, $t2, $t3" is added at the end of the above code sequence, what will be the total number of clock cycles if only stall and forwarding is used to overcome the data hazards? Answer:

#kindly give all ans.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago