CPUs and architecture
What is the correct basic order in which a CPU processes an instruction?
- AExecute → decode → fetch
- BFetch → decode → execute
- CDecode → fetch → execute
Show answer and explanation
Answer: B. Fetch → decode → execute
A CPU fetches an instruction from memory, decodes it to determine what to do, executes it, and writes the result back to a register or memory if needed. The program counter indicates where to fetch, and decoding identifies the operation and registers involved. Pipelining overlaps these stages so that, ideally, one instruction completes every clock.
- A. An instruction cannot be executed before it is fetched.
- B. Correct. Fetch, decode, then execute.
- C. An instruction cannot be decoded before it is fetched.