The classic RISC instruction pipeline consists of five stages that an instruction must pass through to be completed by the CPU.
1. The Five Stages in Order:
• IF - Instruction Fetch (A): The CPU reads the instruction from the memory address stored in the Program Counter.
• ID - Instruction Decode (B): The control unit decodes the instruction to determine what operation to perform and reads required values from registers.
• EX - Execute (C): The ALU performs the actual operation (addition, bitwise logic, etc.) or calculates a memory address.
• MEM - Memory Access (D): If required (like in LOAD or STORE), the CPU accesses data memory.
• WB - Write Back (E): The final result is written back into the register file.
2. Conclusion:
The logical flow is Fetch $\to$ Decode $\to$ Execute $\to$ Memory $\to$ Write Back. This matches identifiers A, B, C, D, E.