wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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, 7 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 12 instruction I1,I2,I3,.....I12 is execute in this 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 (in ns) needed to complete the program is

A
165
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
132
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
C
176
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
D
328
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
Open in App
Solution

The correct option is A 165
Number of stages = 5

Stage maximum delay = 10 + 1 = 11 ns

I4 instruction 4th stage output is a target address.

So, number of instruction in pipeline = 11

So, ETpipe=(K+n1) tp

=(5+111)× 11 ns=165 ns

flag
Suggest Corrections
thumbs-up
4
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Importance of Planning
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon