1.1 Fetch-decode-execute cycle 2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Describe the fetch-decode-execute sequence of registers

A
  • the PC holds the address of the next location in memory (e.g. 1)
  • this is passed to the MAR (e.g. 1)
  • the data in the address is then fetched and passed to the MDR (e.g. load address 5)
  • the PC is incremented (2) , and a copy of the data is stored in the cache incase it is needed again soon (load address 5)
  • the CU decodes the instruction (the MAR now holds address 5 instead of 2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens if a calculation needs to be performed?

A
  • the next instruction is executed (e.g. 23 is loaded)
  • the number is stored in the ACC (23)
  • any calculations are done in the ALU (e.g. 10 is added to 23)
  • the results are stored in the ACC (33)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens if data needs to be stored in memory?

A

-if something needs to be stored, the data is passed from the ACC to the MDR which then stores it in the memory (e.g. 33 in address 6)

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

State the role of the following registers in the fetch-decode execute cycle.

a) the program counter [1]
b) the memory data register [1]

A

a) the PC holds the memory address of the next instruction to be processed
b) the memory data register holds an instruction or data that has been fetched from the memory before it is used

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

State the role of these registers in the fetch-decode-execute cycle.

a) the memory address register
b) the accumulator [2]

A

a) the MDR acts as a temporary storage (buffer) for anything that is copied from memory ready for the CPU to use
b) the ACC stores data as it is being manipulated

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