Computer architecture
A microprocessor is a specific type of CPU where all the essential components (Control Unit, ALU, registers, etc.) are integrated onto a single silicon chip. This integration allows for high speed and compact size.
| Description |
|---|
| Manages the flow of data and instructions. It decodes instructions and sends control signals to other components. |
| Carries out all arithmetic (e.g., addition) and logic (e.g., comparison) operations. |
| A register that stores the result of calculations performed by the ALU. It does not store the calculation itself, but the final outcome. |
| Stores the instruction currently being decoded or executed. It is built into the Control Unit. |
| Holds the address of the memory location that is to be accessed (read from or written to). |
| Holds the data that has been fetched from memory or is about to be sent to memory. |
| Stores the address of the next instruction to be fetched. It is incremented after each fetch. |
| Process |
|---|
|
| The Control Unit (CU) decodes the instruction in the CIR. It separates the instruction into an opcode (what to do) and an operand (where the data is). |
| The decoded instruction is executed. For example, if it is an arithmetic operation, the ALU performs the calculation, and the result is stored in the Accumulator. |
Correction: The CIR is built into the Control Unit (CU), not the ALU. The CU decodes the instruction; the ALU executes arithmetic operations.
Correction: The Accumulator stores the result of a calculation. It holds the final value after the ALU has processed the data.
Correction: The address goes to the MAR. The data/instruction comes from RAM into the MDR. Do not send the address to the MDR.
Why this is accepted: Vague descriptions like 'the CPU gets data' are rejected. You must specify which registers move what data via which bus.
Correct Phrasing: 'The address from the PC is sent to the MAR via the address bus. The instruction at that address is fetched into the MDR via the data bus, then copied to the CIR.'
Note on Pipelining: While modern CPUs use pipelining (overlapping stages), for exam purposes, describe the logical sequence of one complete fetch cycle as above.
| Explanation and Impact on Performance |
|---|
| Measured in Hertz (Hz). It determines the frequency at which the CPU can perform operations within each stage of the FDE cycle. Higher clock speeds allow stages to complete faster, increasing the overall rate of instruction processing. Note: In pipelined processors, higher clock speed means each stage advances more quickly, allowing more instructions to be processed per second. |
| A core is an independent processing unit within the CPU. Multiple cores allow for true parallel processing of different instructions or threads. Impact: This significantly improves performance in multitasking and multi-threaded applications, as different cores can work on different tasks simultaneously, unlike a single-core CPU which relies on rapid switching (time-slicing). |
| Cache is a small amount of very fast Static RAM (SRAM) located directly on the CPU die. It stores frequently used data and instructions. Levels: L1 cache is fastest/smallest/closest to the core; L2/L3 are larger but slightly slower. Impact: Without cache, the CPU would spend most of its time waiting for data from the much slower main RAM (DRAM). Larger cache reduces 'cache misses' and latency. |
Correction: Cache stores frequently used data and instructions. It is a subset of memory that the CPU accesses most often.
Correction: Clock speed determines how fast each stage completes. Multi-core processors allow simultaneous execution. Do not confuse speed (time) with cores (parallelism).
Why this is accepted: Examiners want to see the link between frequency and instruction processing rate.
Correct Phrasing: 'A higher clock speed means the CPU can perform more operations per second. This allows the FDE cycle stages to complete faster, increasing the number of instructions processed in a given time.'
For Cores: 'More cores allow the CPU to execute multiple instructions simultaneously (parallel processing), improving performance for multitasking.'
Key Point: Different CPUs have different instruction sets (e.g., x86 vs ARM). Software must be compiled into the specific instruction set of the target CPU.
Learning Objective 7: An embedded system is a computer system designed to perform a dedicated, single function within a larger system.
Characteristics:
- Dedicated Function: It does one specific task (e.g., washing machine control).
- Dedicated Hardware: The hardware is tailored for that specific function.
- Limited Resources: Often has limited memory and processing power compared to general-purpose computers.
- Real-time Operation: Must respond to inputs within strict time constraints.
Correction: Size and cost are not defining features. A supercomputer is large but not embedded. A smartwatch is small and embedded.
Correct Distinction: An embedded system has a dedicated/single function and dedicated hardware. A general-purpose computer can perform many different functions using the same hardware.
Why this is accepted: Examiners look for the concept of 'dedication' vs 'generality'.
Correct Phrasing: 'A calculator is an embedded system because it is designed to perform a single, dedicated function (calculations) using dedicated hardware. A laptop is not embedded because it can run many different applications.'
- It performs a dedicated/single function (calculations).
- It has dedicated hardware designed specifically for that function.
- It stores the address of the next instruction to be fetched.
- It is incremented after the address is sent to the MAR.
- Clock speed determines the frequency of operations/stages in the FDE cycle.
- Higher speed means stages complete faster.
- This allows more instructions to be processed per second.