Question
Given the following sequence of instructions to be executed on a 5-stage pipelined datapath as described in our textbook: a. List true dependencies in the
Given the following sequence of instructions to be executed on a 5-stage pipelined datapath as described in our textbook: a. List true dependencies in the given sequence in the format of (register_involved. producer_instruction, consumer_instruction). Use labels to indicate instructions. For example: ($0, I10, I11) means a true dependence between instruction no and Ill: value of register $0 is generated by I10 and used by I11. Do NOT list output or anti-dependences.
b. If there is no forwarding or hazard detection, no reordering allowed, insert nops to ensure correct execution.
c. Repeat b. but allow instruction reordering -- nops should be inserted only when a hazard cannot be avoided by reordering instructions. Hint: You could use $1 for register renaming if needed to help reordering instructions; but you must ensure the same values are stored in the relevant memory locations before and after the reordering.
I1: add 12: SW 13: lw and SW 14: 15: $8,$12, $10 $9,0 ($8) $8,4 ($9) $12, $12, $8 $8,0 ($9)
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
Step: 1
a Dependencies list I1 1210 I2 8 I3 9...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