If suppose I got a question like this then at what stage the branch instruction be executed?
Consider an instruction pipeline with five stages without any branch prediction: Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Execute (EX) and Operand Write (OW). The stage delays for IF, ID, OF, EX and OW are 5 nsec, 7 nsec, 10 nsec, 8 nsec and 6 nsec, respectively. There are intermediate storage buffers after each stage and the delay of each buffer is 1 nsec. A program consisting of 12 instructions I1, I2, …, I12 is executed in the pipelined processor. Instruction I4 is the only branch instruction and its branch target is I9. If the branch is taken during the execution of this program, the time needed to complete the program is
--
You received this message because you are subscribed to the Google Groups "Computer Organisation and Architecture" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archbooksaran...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archbooksarangi/ea0d2596-e1b6-42bf-adec-f094195a3659n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.