CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider a 5-stage instruction pipeline which can execute 3 types of instructions:

Each load & store type instructions take 8 cycles to execute in pipeline. Each ALU type instruction take 6 cycles to execute in pipeline and each other type instruction take 5 cycles to execute in pipeline. There are 20 load & store type, 30 ALU type and 10 other type instructions to execute in the pipeline minimum. How many cycles are needed to execute all instructions if all instructions can be overlapped?

A
154
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
149
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
140
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
150
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 154
option (a)

Assuming only one stage takes extra cycles for each of the instructions.
Total number of instructions(n)
=20+30+10=60
Number of stages (k) =5
without extra cycles, number of cycles needed to execute 60 instruction
=(k+n1)=5+601=64
without extra cycle each type of instruction take k(5) cycles to execute.
Extra cycles:
(85)=33×20=60(65)=11×30=3090

Total cycles =64+90=154

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Instruction Pipeline 3
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon