The Purpose of the CPU Flashcards

Card 1 of 5

All 5 cards in this deck

What is the purpose of the CPU?

To fetch, decode and execute program instructions.

True or false? The fetch-decode-execute cycle repeats continuously while the computer is running.

True. As soon as one instruction has been executed, the next one is fetched. The cycle only stops when the computer is switched off.

What happens in the fetch stage of the fetch-decode-execute cycle?

The address held in the program counter is used to copy the next instruction from main memory into the CPU. The program counter is then incremented so it points to the instruction after it.

What happens in the decode stage of the fetch-decode-execute cycle?

The control unit interprets the fetched instruction to work out what it means and what needs to happen to carry it out.

What happens in the execute stage of the fetch-decode-execute cycle?

The CPU carries out the decoded instruction, e.g. loading a value from memory, storing a value in memory, or the ALU doing a calculation or comparison.