b) The Fetch-Decode-Execute Cycle

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

What is the fetch decode cycle?

It is the sequence of operations that are completed in order to execute an instruction.

2
New cards

What occurs in the fetch phase?

  • Address from the PC is copied to MAR

  • Instruction held at that address is copied to MDR by data bus

  • Simultaneously, the contents of the PC are incremented by 1

  • The value held in the MDR is copied to the CIR

3
New cards

What occurs in the decode phase?

The contents of CIR are split into the opcode and the operand.

4
New cards

What occurs in the execute phase?

The decoded instruction is executed.

5
New cards

What occurs before the FDE cycle is carried out?

The program instructions need to be translated into machine code, and loaded from secondary storage to main memory.

6
New cards

What occurs after an FDE cycle has been completed?

The processor checks the status register to see if an exception or interrupt needs to be handled.

7
New cards

What does the program counter do in the FDE cycle?

Its contents are copied to the MAR, which is connected to the address bus. Once the data of that address has reached the MAR, it is incremented by 1.

8
New cards

What does the control unit do once the address of the instruction is on the address bus?

It does a memory read to allow the contents of the memory location to be transferred to the processor via the data bus.

9
New cards

What does the MDR do in the FDE cycle?

Holds the data from the address stored in the MAR, which is then transferred to the CIR after the PC is incremented.

10
New cards

Why are both the CIR and MDR needed?

It ensures the current instruction is kept safe so that the MDR can be used in the execute stage.

11
New cards

How is the MAR used in the FDE cycle?

This stores the address from the PC, which is then accessed by the MDR.