GATE CS 2024 Set 2 — Question 58
NAT+2 / -0MediumSpeedup & EfficiencyInstruction PipeliningComputer Organization & ArchitectureData Hazards (RAW, WAR, WAW)Pipeline StallsControl Hazards
Computer Organization & Architecture → Instruction Pipelining → Control Hazards
Last updated
Question
A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-stage pipeline at 2 GHz. Assume that the ideal throughput of the pipelined unit is 1 instruction per cycle. In the execution of program P, 20% instructions incur an average of 2 cycles stall due to data hazards and 20% instructions incur an average of 3 cycles stall due to control hazards. The speedup (rounded off to one decimal place) obtained by the pipelined design over the non-pipelined design is _________
Correct answer
2.9 to 3.1
Solution
Given:
- Non-pipelined processor frequency .
- Non-pipelined CPI () = 6 cycles.
- Pipelined processor frequency .
- Ideal pipelined CPI = 1.
- Stalls:
- 20% of instructions cause 2 stall cycles.
- 20% of instructions cause 3 stall cycles.
More questions on Instruction Pipelining
2024 Set 2 Q11Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from…2024 Set 1 Q15Which one of the following statements is FALSE?2024 Set 1 Q30Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID),…2024 Set 2 Q31An instruction format has the following structure: Instruction Number: *Opcode destination reg,…2024 Set 2 Q53Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free