Grade 10 Notes Printed - 11 - 2010 - Fetch Execute Cycle
Grade 10 Notes Printed - 11 - 2010 - Fetch Execute Cycle
Memory
CPU Unit
Key I/O
Control Bus device
Input
Data Bus
and
Address Bus
Output
I/O
device
Bus: It is a distinct set of conductors carrying data and control signals within a computer system,
to which pieces of equipment may be connected.
Registers/circuits involved
The circuits used in the CPU during the cycle are:
Program Counter (PC) - an incrementing counter that keeps track of the memory address of
which instruction is to be executed next.
Memory Address Register (MAR) - the address in main memory that is currently being read
or written
Memory Buffer / Data Register (MBR / MDR) - a two-way register that holds data fetched
from memory (and ready for the CPU to process) or data waiting to be stored in memory
Current Instruction register (CIR) - a temporary holding ground for the instruction that has
just been fetched from memory
Accumulator - a register used to contain the results of an arithmetical or logical operation.
Control Unit (CU) - decodes the instruction in the CIR, selecting machine resources such as a
data source register and a particular arithmetic operation, and coordinates activation of
those resources
Arithmetic logic unit (ALU) - performs mathematical and logical operations
This address is then copied from the PC to the memory address register (MAR), this is done using the address bus
The contents (instruction) at the memory location (address) contained in MAR are then copied temporarily into the
memory data register (MDR)
The contents (instructions) of the MDR are then copied and placed into the current instruction register (CIR)
The value in the PC is then incremented by 1 so that it now points to the next instruction which has to be fetched
The instruction is finally decoded and then executed by sending out signals (via the control bus) to the various
components of the computer system