OCR Computer Science 1.1 Notes Updated
OCR Computer Science 1.1 Notes Updated
1: Systems Architecture
Fetch-Decode-Execute Cycle
The Fetch-Decode-Execute (FDE) cycle is the core process that the CPU uses to run instructions.
First, during the Fetch stage, the CPU retrieves an instruction from memory. The Program Counter
(PC) holds the address of the instruction, which is sent to the Memory Address Register (MAR). The
data at that address is then fetched into the Memory Data Register (MDR) and copied into the
Current Instruction Register (CIR). Next comes the Decode stage, where the Control Unit (CU)
interprets the instruction and decides what actions are needed. Finally, during the Execute stage,
the instruction is carried out. This could involve calculations by the Arithmetic Logic Unit (ALU),
moving data between registers, or interacting with memory. Once the instruction is executed, the
cycle repeats with the next instruction, allowing the CPU to carry out complex tasks step by step.
Embedded Systems
- Computers built into devices for specific tasks
- Examples: Microwaves, washing machines
- Efficient, cheap, and task-specific
- Not general-purpose like a PC