Question
4. Assume that perfect branch prediction is used that there are no delay slots, and that the pipeline has full forwarding support. Also assume that
4. Assume that perfect branch prediction is used that there are no delay slots, and that the pipeline has full forwarding support. Also assume that many instructions of this loop are executed before the loop exits. For the given code below, show a pipeline execution diagram for the third iteration of this loop, from the cycle in which we fetch the first instruction of that iteration up to (but not including) the cycle in which we can fetch the first instruction of the next iteration. Loop: ADD R1, R2, R1 LW R2, 0 (R1) LW R2, 16 (R2) SLT R1, R2, R4 BEQ R1, R9, Loop
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started