Gate2018 cs Q40

  • Option : A
  • Explanation :
    Given, total number of instructions (n) = 100
    Number of stages (k) = 5
    Since, if n instructions take c cycle, so (c-1) stalls will occur for these instructions.
    Therefore, the number of clock cycles required = Total number of cycles required in general case + Extra cycles required (here, in PO stage)
    = (n + k – 1) + Extra cycles
    = (100 + 5 -1) + 40*(3-1)+35*(2-1)+20*(1-1)
    = (100 + 4) + 40*2+35*1+20*0
    = 104 + 115
    = 219 cycles
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *