Skip to topic
    ← Back to course topics

    Structure and function of the processor — OCR A-Level Computer Science

    Test yourself on Structure and function of the processor with OCR A-Level practice questions.

    Start free

    7 days Premium · Then free forever · No card, no charge

    Structure and function of the processor explained

    This topic covers the fundamental architecture and internal operations of the Central Processing Unit (CPU).

    Read the full explanation

    It examines the roles of specific registers, the function of the Arithmetic and Logic Unit (ALU) and Control Unit, and the mechanics of the Fetch-Decode-Execute cycle, including how these relate to assembly language and processor performance.

    What to demonstrate

    1. Identification and function of ALU, Control Unit, and specific registers (PC, ACC, MAR, MDR, CIR).
    2. Explanation of the data, address, and control buses and their relationship to assembly language.
    3. Detailed description of the Fetch-Decode-Execute cycle and its impact on register states.
    Show all 6 objectives
    1. Factors influencing CPU performance: clock speed, number of cores, and cache memory.
    2. Explanation of pipelining as a method to improve processor efficiency.
    3. Comparison of Von Neumann and Harvard architectures, including contemporary processor designs.

    Structure and function of the processor exam tips

    Topic Overview

    The structure and function of the processor is a foundational topic in computer science that explores how the central processing unit (CPU) executes instructions. The processor is the brain of the computer, responsible for fetching, decoding, and executing instructions stored in memory. Understanding its internal components—such as the control unit (CU), arithmetic logic unit (ALU), registers, and buses—is essential for grasping how software controls hardware. This topic also covers the fetch-execute cycle, pipelining, and the role of the program counter (PC), memory address register (MAR), memory data register (MDR), and accumulator (ACC).

    In the OCR A-Level specification, this topic appears in Component 1 (Computer Systems) and is assessed through both multiple-choice and extended-response questions. Mastery of the processor's architecture enables students to analyse performance factors like clock speed, cache size, and core count. It also provides a foundation for understanding more advanced concepts such as parallel processing, RISC vs. CISC architectures, and the impact of the Harvard and von Neumann architectures. Without a solid grasp of the processor's inner workings, students will struggle with later topics like assembly language programming and memory management.

    This topic is not just about memorising component names; it requires understanding how data flows between components during instruction execution. For example, the fetch-execute cycle involves the PC sending an address to the MAR, the CU initiating a read from memory to the MDR, and then the instruction being decoded and executed by the ALU or CU. Students should be able to trace this cycle step-by-step and explain how pipelining improves throughput by overlapping fetch, decode, and execute stages. Real-world relevance includes understanding why a 3.0 GHz quad-core processor outperforms a 3.0 GHz single-core processor for multitasking.

    Key Concepts
    • →The fetch-execute cycle: fetch instruction from memory, decode it, then execute it using the ALU or CU.
    • →Processor components: CU (controls execution), ALU (performs arithmetic/logic), registers (PC, MAR, MDR, ACC, CIR), and buses (data, address, control).
    • →Pipelining: overlapping fetch, decode, and execute stages to improve instruction throughput, though hazards (data, control, structural) can reduce efficiency.
    • →Von Neumann vs. Harvard architecture: von Neumann uses a single memory for data and instructions (bottleneck), while Harvard uses separate memories for parallel access.
    • →Factors affecting performance: clock speed, number of cores, cache size/levels (L1, L2, L3), and word length.
    Marking Points
    • Identification and function of ALU, Control Unit, and specific registers (PC, ACC, MAR, MDR, CIR).
    • Explanation of the data, address, and control buses and their relationship to assembly language.
    • Detailed description of the Fetch-Decode-Execute cycle and its impact on register states.
    • Factors influencing CPU performance: clock speed, number of cores, and cache memory.
    • Explanation of pipelining as a method to improve processor efficiency.
    • Comparison of Von Neumann and Harvard architectures, including contemporary processor designs.
    Examiner Tips
    • 💡Use clear, technical terminology when describing register operations during the Fetch-Decode-Execute cycle.
    • 💡When discussing performance, always link the factor (e.g., cache size) to the reduction in time spent waiting for data from slower main memory.
    • 💡Be prepared to draw or label diagrams of the CPU architecture.
    • 💡Ensure you can explain how assembly language instructions map directly to the movement of data between registers and memory.
    • 💡When describing the fetch-execute cycle, use precise register names (e.g., MAR, MDR) and explain the role of the control unit. Avoid vague terms like 'the CPU gets the instruction'—instead say 'the address in the PC is copied to the MAR via the address bus.'
    • 💡For performance questions, always discuss multiple factors: clock speed, cache, cores, and pipelining. A one-factor answer loses marks. Use comparative phrases like 'a larger cache reduces the need to access slower main memory.'
    • 💡In extended-response questions, draw a clear diagram of the processor's internal components and label buses. Then annotate the flow of data during the fetch-execute cycle. This shows the examiner you understand the interconnections.
    Common Mistakes
    • Confusing the roles of the Memory Address Register (MAR) and Memory Data Register (MDR).
    • Failing to explain how the Control Unit manages the flow of data through the buses.
    • Inaccurately describing the impact of increasing clock speed without considering thermal or physical constraints.
    • Confusing the purpose of cache memory with main memory (RAM).
    • Misunderstanding the difference between Von Neumann and Harvard architectures regarding memory access.
    • Misconception: The ALU is responsible for fetching instructions. Correction: The control unit (CU) manages the fetch-execute cycle; the ALU only performs calculations and logical operations.
    • Misconception: Increasing clock speed always improves performance. Correction: Clock speed is limited by heat and power; other factors like cache size and pipelining efficiency also matter. A higher clock speed may cause overheating or require more voltage.
    • Misconception: The program counter (PC) stores the current instruction being executed. Correction: The PC holds the address of the next instruction to be fetched; the current instruction is stored in the current instruction register (CIR).
    Frequently Asked Questions
    What is the difference between the MAR and MDR?
    The Memory Address Register (MAR) holds the address of the memory location being accessed, while the Memory Data Register (MDR) holds the actual data being read from or written to that location. During a fetch, the address from the PC is copied to the MAR, then the data from that address is loaded into the MDR. They work together but serve distinct roles: MAR for addressing, MDR for data.
    How does pipelining improve CPU performance?
    Pipelining allows the CPU to overlap the fetch, decode, and execute stages of multiple instructions. Instead of waiting for one instruction to complete before starting the next, the CPU can fetch instruction N+1 while decoding instruction N and executing instruction N-1. This increases instruction throughput (instructions per clock cycle). However, hazards like data dependencies or branch instructions can cause pipeline stalls, reducing efficiency.
    What is the role of the control unit in the CPU?
    The control unit (CU) coordinates all CPU operations. It decodes instructions, generates control signals to direct data flow between the ALU, registers, and memory, and manages the fetch-execute cycle. The CU does not perform calculations; it tells other components what to do. For example, during a fetch, the CU sends a read signal to memory and controls the timing of data transfers.
    Why does increasing cache size improve performance?
    Cache is a small, fast memory located close to the CPU that stores frequently used data and instructions. A larger cache can hold more data, reducing the number of times the CPU must access slower main memory (RAM). This reduces the average memory access time, speeding up execution. However, larger caches have slightly higher latency, so there is a trade-off; modern CPUs use multiple cache levels (L1, L2, L3) to balance speed and size.
    What is the difference between RISC and CISC architectures?
    RISC (Reduced Instruction Set Computer) uses a small set of simple, fixed-length instructions that execute in one clock cycle, relying on software for complex operations. CISC (Complex Instruction Set Computer) has a larger set of complex, variable-length instructions that can perform multiple operations per instruction, but may take several cycles. RISC is simpler and more power-efficient (common in mobile devices), while CISC is more powerful per instruction (common in desktop CPUs like x86).
    How does the program counter work during the fetch-execute cycle?
    The program counter (PC) holds the memory address of the next instruction to be fetched. At the start of the fetch cycle, the PC's address is copied to the MAR. Then the PC is incremented (or updated) to point to the next instruction. The instruction at the address in the MAR is fetched from memory into the MDR, then moved to the CIR for decoding. The PC ensures sequential execution unless a branch instruction changes it.