GATEverse
← GATE CSE 2005

Q68

MCQ2 marks, −0.5

A 55 stage pipelined CPU has the following sequence of stages: IF – instruction fetch from instruction memory RD – Instruction decode and register read EX – Execute: ALU operation for data and address computation MA – Data memory access – for write access, the register read at RD state is used. WB – Register write back Consider the following sequence of instructions: I1I_1: LL R0,locR0, loc 11; R0⇐M[loc1]R0 \Leftarrow M[loc1] I2I_2: AA R0R0, R0R0; R0⇐R0+R0R0 \Leftarrow R0 +R0 I3I_3: SS R2R2, R0R0; R2⇐R2−R0R2 \Leftarrow R2-R0 Let each stage take one clock cycle. What is the number of clock cycles taken to complete the above sequence of instructions starting from the fetch of I1I_1?

Sign in to save attempts.

Loading…