Computer Systems - Fetch-Execute Cycle Flashcards
1
Q
What does a CPU do?
A
Carries out instructions - the Fetch-Execute cycle describes how it does it
2
Q
How long does each Fetch-Execute cycle take?
A
It depends on the processing power but usually, it takes multiple clock cycles
3
Q
What happens in the FETCH instruction of the cycle?
A
- The Control Unit reads the memory address of the next CPU instruction
- The instruction stored in that address is copied from memory to one of the registers
- The memory address in the control unit is incremented to point to the address of the next instruction - so it gets ready for the next cycle
4
Q
What happens in the DECODE instruction of the cycle?
A
- The instruction that was copied from memory, is decoded by the Control Unit
- The Control Unit prepares for the next step - e.g loading other values into the registers
5
Q
What happens in the EXECUTE instruction?
A
The instruction is performed
6
Q
What are the different instructions that could be executed?
A
Load data from memory
Write data to memory
Do a calculation or logic operation (using the ALU)
Change the address in the control unit
Halt the program