Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(12 pts) Show the pipeline timing diagram for one iteration of the loop using the classic five-stage MIPS Architecture. For all parts, assume that register

image text in transcribed

(12 pts) Show the pipeline timing diagram for one iteration of the loop using the classic five-stage MIPS Architecture. For all parts, assume that register read and register write can be done in the same clock cycle and branches are resolved in EX stage(i.e, the branch target address will be known at the end of EX stage and the target instruction can be fetched in the next clock cycle). There is no branch prediction mechanism employed 8. loop: lw s1, 0 (s2) addi sl, s1 SW addi s2, s2 sub bne 1, 0(s2) s4, s3, s s4, zero, loop (6 pts) Show the pipeline timing diagram of this instruction sequence assuming forwarding is not supported by the architecture a. Clock Cycle | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10| 11 | 12:13 | 14| 15| 16 | 17/ 18 addi sl, sl, 1 sl, 0 (s2) addi s2, s2, 4 SW sub s4, s3, s2 bne s4, zero,loop s1, 0 (s2) b. (6 pts) Do the same work in part (a) assuming forwarding is fully supported by the architecture lw addi SW addi sub bne s4, zero,loop lw sl, sl,1 s1, 0 (s2) s2, s2, 4 s4, s3, s2 s1, 0(s2)

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions