Computer System Architecture - Pipeline and Vector Processing

Avatto > > UGC NET COMPUTER SCIENCE > > PRACTICE QUESTIONS > > Computer System Architecture > > Pipeline and Vector Processing

16. Consider a 6-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 6-stage pipeline the speedup achieved with respect to non-pipelined execution if 25% of the instructions incur 2 pipeline stall cycles is ......

  • Option : D
  • Explanation : For 6 stages, non-pipelining takes 6 cycles There were 2 stall cycles for pipelining for 25% of the instructions
    So pipe line time = [1+(2 25/100)] = 3/2 = 1.5
    Speed up = Non– pipeline time/Pipeline time = 6/1.5
Cancel reply
Cancel reply

19. Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clcok speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is .......... .

  • Option : A
  • Explanation : Speedup = Execution Time Old/Execution Time New Execution Time Old = CPI Old * Cycle TimeOld
    [Here CPI is Cycles Per Instruction] = CPIOld * Cycle Time Old
    = 4 * 1/2.5 Nanoseconds
    = 1.6 ns
    Since there are no stalls, CPUnew can be assumed 1 on average.
    Execution Time New = CPInew
    * Cycle Timenew
    = 1 * 1/2
    = 0.5
    Speedup = 1.6/0.5 = 3.2
Cancel reply
Cancel reply