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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How long does each Fetch-Execute cycle take?

A

It depends on the processing power but usually, it takes multiple clock cycles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens in the FETCH instruction of the cycle?

A
  1. The Control Unit reads the memory address of the next CPU instruction
  2. The instruction stored in that address is copied from memory to one of the registers
  3. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens in the DECODE instruction of the cycle?

A
  1. The instruction that was copied from memory, is decoded by the Control Unit
  2. The Control Unit prepares for the next step - e.g loading other values into the registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens in the EXECUTE instruction?

A

The instruction is performed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly