Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
An examination question asks you to describe the fetch stage of the fetch-decode-execute cycle. It is worth 5 marks.
Write your answer as a list of steps in order. Name each register and each bus that is used.
Fetch: the PC is copied to the MAR and the address goes along the address bus. The instruction comes back along the data bus to the MDR. It is copied to the CIR and the PC is incremented. Decode: the CU decodes the instruction in the CIR. Execute: the instruction is carried out. The MAR and MDR are used for any data, the ALU for any calculation and the ACC for the result.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. One mark for each correct step, in the right order.
Step 1. The address held in the program counter (PC) is copied to the memory address register (MAR).
Step 2. The address is sent from the MAR along the address bus to RAM. The control unit sends a read signal along the control bus.
Step 3. The instruction stored at that address is sent along the data bus to the memory data register (MDR).
Step 4. The instruction in the MDR is copied to the current instruction register (CIR).
Step 5. The PC is incremented by 1, so it holds the address of the next instruction.
Watch out. Decoding is not part of the fetch stage. If you write "the CU decodes the instruction", that mark belongs to the next stage.
Log in to join the discussion.
Loading…