GATEverse
← GATE CSE 2021 Set 2

Q53

NAT2 marks

Consider a pipelined processor with 55 stages, Instruction Fetch(IF)\text{Instruction Fetch} (\textsf{IF}), Instruction Decode(ID)\text{Instruction Decode} \textsf{(ID)}, Execute (EX)\text{Execute } \textsf{(EX)}, Memory Access (MEM)\text{Memory Access } \textsf{(MEM)}, and Write Back (WB)\text{Write Back } \textsf{(WB)}. Each stage of the pipeline, except the EX\textsf{EX} stage, takes one cycle. Assume that the ID\textsf{ID} stage merely decodes the instruction and the register read is performed in the EX\textsf{EX} stage. The EX\textsf{EX} stage takes one cycle for ADD\textsf{ADD} instruction and two cycles for MUL\textsf{MUL} instruction. Ignore pipeline register latencies. Consider the following sequence of 88 instructions:

ADD, MUL, ADD, MUL, ADD, MUL, ADD, MUL\textsf{ADD, MUL, ADD, MUL, ADD, MUL, ADD, MUL}

Assume that every MUL\textsf{MUL} instruction is data-dependent on the ADD\textsf{ADD} instruction just before it and every ADD\textsf{ADD} instruction (except the first ADD\textsf{ADD}) is data-dependent on the MUL\textsf{MUL} instruction just before it. The speedup\textit{speedup} defined as follows.

Speedup=Execution time without operand forwardingExecution time with operand forearding\textit{Speedup} = \dfrac{\text{Execution time without operand forwarding}}{\text{Execution time with operand forearding}}

The Speedup\textit{Speedup} achieved in executing the given instruction sequence on the pipelined processor (rounded to 22 decimal places) is _____________

Sign in to save attempts.

Loading…