Fetch-Decode-Execute cycle Flashcards

1
Q

What are the 2 buses?

A

Address bus - takes the memory address to the RAM, finds the data that corresponds to the address and then the data is taken back on the data bus

Data bus - takes the data back to the memory address register from the RAM

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

What are the 5 steps of the fetch stage?

A

Step 1 - The program counter copies the address of the next instruction it contains into the memory address register
Step 2 - The memory address register places the address to be used on the address bus
Step 3 - The memory address register triggers a ‘read’ signal that causes main memory (RAM) to place the instruction being asked for onto the data bus
Step 4 - The instruction on the data bus is loaded into the memory data register (also called memory buffer register)
Step 5 - The memory data register copies the instruction into the instruction register

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

What happens during the decode stage?

A

The CPU decodes the instruction and prepares various areas within the chip in readiness of the next step

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

What happens during the execute stage?

A

Data processing takes place, The instruction is carried out upon the data (executed). The result of this processing is stored in yet another register.

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

What is the 1st step of the fetch stage?

A

Step 1 - The program counter copies the address of the next instruction it contains into the memory address register

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

What is the 2nd step of the fetch stage?

A

Step 2 - The memory address register places the address to be used on the address bus

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

What is the 3rd step of the fetch stage?

A

Step 3 - The memory address register triggers a ‘read’ signal that causes main memory (RAM) to place the instruction being asked for onto the data bus

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

What is the 4th step of the fetch stage?

A

Step 4 - The instruction on the data bus is loaded into the memory data register (also called memory buffer register)

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

What is the 5th step of the fetch stage?

A

Step 5 - The memory data register copies the instruction into the instruction register

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