Question: Question : Use the following code fragment: Loop: ld x 1 , 0 ( x 2 ) ; load x 1 from address 0 +
Question :
Use the following code fragment:
Loop: ld xx; load x from address x
addi xx; xx
sd xx; store x at address x
addi xx; xx
sub xxx; xxx
bnez xLoop; branch to Loop if x
Assume that the initial value of is
Show the timing of this instruction sequence for the stage RISC pipeline without any forwarding or
bypassing hardware but assuming that a register read and a write in the same clock cycle "forwards" through
the register file, as between the add and or shown in Figure C of Appendix C Use a pipeline timing chart like
that in Figure C of Appendix C
Assume that the branch is handled by flushing the pipeline. If all memory references take cycle, how many
cycles does this loop take to execute?
Book to refer: Morgan Kaufman Introduction to Computer Architecture Principles
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
