Consider the following portion of a VeSPA assembly language program:
add r14, r15, r16 ; instruction 1
sub r16, r17, r15 ; instruction 2
or r14, r16, r17 ; instruction 3
-
Identify any flow dependences, anti-dependences and output dependences
that exist amongst these instructions.
(In each case, specify the register that is involved.)
-
Suppose that instruction 1 is in the instruction fetch (IF) stage
of the 5-stage pipelined VeSPA implementation during cycle 21.
Determine which cycles instructions 1, 2 and 3 will be in the
write back (WB) stage of the pipeline.
(Include a table that shows the instructions moving through the pipeline
as part of your answer.)