The CPU is the “brain” of the computer. It repeatedly performs the fetch‑decode‑execute‑write‑back cycle, moving instructions from memory, interpreting them, carrying out the required operations and storing the results. All activities are synchronised by a system clock.
The IAS is the collection of registers that give the CPU its fastest access to data, addresses and control information.
| Register | Type | Primary Function |
|---|---|---|
| Accumulator (ACC) | Special‑purpose | Primary operand/result register for the ALU. |
| General‑purpose registers (R0–R7) | General‑purpose | Hold temporary data, intermediate results and address calculations. |
| Program Counter (PC) | Special‑purpose | Contains the address of the next instruction to fetch. |
| Instruction Register (IR) | Special‑purpose | Temporarily stores the fetched instruction for decoding. |
| Memory Address Register (MAR) | Special‑purpose | Holds the address of the memory location being accessed. |
| Memory Data Register (MDR) | Special‑purpose | Transfers data to/from memory. |
| Status Register (SR) – Flags | Special‑purpose | Zero, Carry, Overflow, Sign, etc.; set by the ALU after each operation. |
The ALU receives two operands from the IAS, performs the selected operation and returns the result to a register or memory location.
A crystal‑controlled oscillator produces a regular square‑wave of frequency fclk. The clock period is
\$T{clk}= \frac{1}{f{clk}}\$
Each rising (or falling) edge defines the start of a new micro‑step, ensuring that all CPU components operate in lock‑step.
Interrupts allow external devices to gain the CPU’s attention without polling.
RETI (return from interrupt) instruction restores the saved PC, allowing normal program flow to resume.Ports are the external “faces” of the computer; an I/O controller sits on the data and control buses and translates port‑level signals into the protocol used by the device.
| Port | Typical Use | Typical Data Rate | Typical I/O Controller |
|---|---|---|---|
| USB (Universal Serial Bus) | Keyboard, mouse, storage, printers | Up to 20 Gb/s (USB 3.2) | USB Host Controller (EHCI/xHCI) |
| HDMI (High‑Definition Multimedia Interface) | Video & audio output | Up to 48 Gb/s (HDMI 2.1) | HDMI Transmitter/Receiver IC |
| VGA (Video Graphics Array) | Analog video (legacy monitors) | ≈ 0.35 Gb/s | VGA Controller (DAC) |
| Ethernet | Network connectivity | 10 Mb/s – 10 Gb/s (and higher) | Ethernet MAC/PHY |
| Audio jack (3.5 mm) | Analog audio I/O | 44.1 kHz – 192 kHz sampling | Audio Codec |
Each assembly instruction corresponds to a machine‑code word that contains an opcode (identifying the operation) and operand fields (register numbers, address offsets, etc.). During the decode micro‑step the CU extracts the opcode, selects the appropriate ALU operation, and determines which registers or memory locations are involved. Understanding this mapping is essential for answering AO1 (knowledge) and AO2 (application) questions.
At A‑Level, students should be able to state that virtual memory allows a program to use more address space than physically available by mapping logical addresses to physical frames via a page‑table. The mapping is performed by the Memory Management Unit (MMU), which works in concert with the CPU’s control logic.
ADD R1, R2ADD R1,R2 instruction into IR.R1 + R2, updates Zero/Carry flags in SR.Each step is triggered by a successive clock edge, illustrating the tight coupling between the system clock, CU, ALU and IAS.
| Component | Primary Function | Typical Elements |
|---|---|---|
| Arithmetic & Logic Unit (ALU) | Performs arithmetic, logical, shift/rotate and bit‑manipulation operations on data from the IAS. | Add, Subtract, Multiply, Divide, AND, OR, NOT, XOR, Logical/Arithmetic shift, Rotate |
| Control Unit (CU) | Generates control signals, sequences the fetch‑execute cycle, manages program flow and interrupts. | Instruction decoder, micro‑sequencer, timing logic, interrupt controller |
| System Clock | Provides a regular timing pulse that defines the duration of each micro‑step. | Crystal oscillator, clock generator, frequency fclk |
| Immediate Access Store (IAS) | Fast internal registers for operands, results and control information. | Accumulator, general‑purpose registers (R0‑R7), PC, MAR, MDR, IR, Status Register |
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.