GATE Computer ScienceVery hardGATE CS

A vector processor has one memory pipeline, one multiplier and one adder, 64-element vector registers and full chaining. Start-up latencies are 12 cycles (load/store), 7 (multiply) and 6 (add). The code is LV V1, A MULVS V2, V1, F0 LV V3, B ADDV V4, V2, V3 SV V4, C Instructions that can chain and use different units sit in the same convoy; a convoy takes (sum of start-ups of its instructions) + 64 cycles. How many cycles does the code take?

  1. A. 177
  2. B. 369
  3. C. 192
  4. D. 241

Correct answer: D. 241

Convoy 1: LV V1 with chained MULVS (12 + 7 + 64 = 83). The second LV needs the single memory pipe again, so convoy 2 is LV V3 with chained ADDV (12 + 6 + 64 = 82). SV needs the memory pipe once more: convoy 3 (12 + 64 = 76). Total 83 + 82 + 76 = 241.

More Computer Organization and Architecture questions

Exams that ask this topic