Central Processing Unit Q.11

0. A 5 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 stage it used,
WB - Register write back.
Consider the following sequence of instructions :
I1 : L RO, Loc 1; RO ⇐ M[Loc1]
I2 : A RO, RO; RO ⇐ RO + RO
I3 : A R2, RO, R2 ⇐R2 – RO
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 I1?

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 *