759 views
0 votes
0 votes

Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are 5 ns, 17 ns, 10 ns, 8 ns and 6 ns, respectively. There are intermediate storage buffers after each stage and the delay of each buffer is 1 ns. A program consisting of 100 instructions I1, I2, I3, …, I100 is executed in this pipelined processor. Instruction I17 is the only branch instruction and its branch target is I91. If the branch is taken during the execution of this program, the time (in ns) needed to complete the program is ________ .
(A) 612
(B) 1854
(C) 1133
(D) 578

2 Answers

0 votes
0 votes
It should be 612. A
I1 to I16   18*5 + 18*15 +
I91 to I100 18*5 + 18*9
i think previously it is 1000 instruction.
edited by

Related questions