3.2 The Fetch, Decode and Execute Stages Flashcards
1
Q
What is the funtion of the RAM?
A
All inputs are stored in the RAM. Data that needs to be accessed from secondary storage is fetched into the RAM which can be directly accessed by the CPU.
2
Q
What components are used during the fetch stage?
A
- RAM
- PC
- MAR
- MDR
- CU
- CIR
3
Q
What happens during the fetch stage?
A
- Input is made and instruction stored in RAM.
- Address of next instruction to be processed stored in PC.
- Address in PC copied to MAR via address bus.
- Address copied into RAM via address bus and data is located within the RAM.
- Data is copied to MDR via data bus.
- Data is copied to CIR via data bus.
4
Q
What happens during the Decode stage?
A
- The data is held in the CIR which is located inside the CU.
- The CU reads and decodes the data into a predetermined instruction set that is processable by the ALU.
5
Q
What happens during the Execute stage?
A
- The ALU computes any mathmatical and logical calculations.
- Output is made.