Difference between revisions of "Fetch Decode Execute Cycle"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Fetch Transfer Notation)
(Execute Transfer Notation (LOAD))
Line 28: Line 28:
  
 
==Execute Transfer Notation (LOAD)==
 
==Execute Transfer Notation (LOAD)==
 +
[CIRoperand] → MAR
 +
[Memory] → MBR
 +
[MBR] → A-reg
 +
===Explanation===
 +
The operand of the instruction in the Current Instruction Register is copied into the Memory Address Register.
  
===Explanation===
+
The contents of the Memory address are fetched into the Memory Buffer Register.
 +
 
 +
Because it is a LOAD the Memory Buffer Register is copied into the A-reg (Accumulator).
  
 
==Execute Transfer Notation (ADD)==
 
==Execute Transfer Notation (ADD)==

Revision as of 09:24, 16 June 2017

Fetch Decode Execute Cycle

Fetch Transfer Notation

[PC] → MAR

[Memory] → MBR

[PC] + 1 → PC

[MBR] → CIR


Explanation

The address of the next instruction to be executed is copied from the Program Counter to the Memory Address Register.

The instruction at that address is then copied to the Memory Buffer Register.

Simultaneously, the contents of the Program Counter are incremented by 1.

The contents of the Memory Buffer Register are copied to the Current Instruction Register.

Decode Transfer Notation

[CIRop-code] → CU

Explanation

The op code from the CIR is passed to the Control Unit

Execute Transfer Notation (LOAD)

[CIRoperand] → MAR [Memory] → MBR [MBR] → A-reg

Explanation

The operand of the instruction in the Current Instruction Register is copied into the Memory Address Register.

The contents of the Memory address are fetched into the Memory Buffer Register.

Because it is a LOAD the Memory Buffer Register is copied into the A-reg (Accumulator).

Execute Transfer Notation (ADD)

Explanation

Execute Transfer Notation (STORE)

Explanation