Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following sequence of 8 instructions for the pipelined MIPS. Assume the pipeline is initially empty. There is an enlarged figure on the

  1.   

Consider the following sequence of 8 instructions for the pipelined MIPS. Assume the pipeline is initially empty. There is an enlarged figure on the last page which you will have to use for some of the questions. lw $t0, 0($sp) lw $t1, 4($sp) lw $t2, 8($sp) addi $t2, $t0, 1 add $t1, $t1, $t2 add $to, $to, $t1 sw $t0, 0($sp) sw $t1, 4($sp) 2. List all hazards and their types in this code, if any. For each hazard, say how it will be addressed/fixed (i.e. forwarding, stalling, something else, etc...). 3. Given your answer in part 2 above, how many actual clock cycles are needed to push these instructions through the CPU?

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_2

Step: 3

blur-text-image_3

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

Computer organization and architecture designing for performance

Authors: william stallings

8th edition

136073735, 978-0136073734

More Books

Students also viewed these Programming questions