Computer Science · Theme A: Concepts of computer science
A1.1 — Computer hardware and operation
Computer Science · SL / HL · syllabus-mapped notes
CS_A1.1.1
Main CPU components
The ALU, control unit, registers and buses, and how they interact.
Full note — freeThe central processing unit (CPU) is the part of the computer that executes program instructions. You must be able to describe its main components and how they interact. Arithmetic logic unit (ALU) : performs arithmetic (add, subtract) and logic (AND, OR, comparisons) operations. Control unit (CU) : directs the operation of the CPU, fetching and decoding instructions and signalling the other components. Registers (tiny, very fast on-chip stores) IR instruction register (holds the current instruction), PC program counter (address of the next instruction), MAR memory address register (the address to read/write), MDR memory data register (the data read/written), AC accumulator (holds ALU results). Buses (the wires that carry signals) Address bus carries the memory address, data bus carries the data, control bus carries control signals. (Address and control buses are one-directional; the data bus is bi-directional.) Processors Single-core processor (one core), multi-core processor (several cores that work in parallel), co-processors (specialized helpers, for example a maths co-processor).
CS_A1.1.2
The role of a GPU
Why the GPU's architecture suits parallel, graphics and ML workloads.
Graphics processing unit (GPU) : a processor with many simple cores designed to run the same operation over large amounts of data at once (massively parallel). Its architecture (thousands of small cores) makes it far faster than a CPU for tasks that split into many …
CS_A1.1.3
CPU versus GPU
How their design philosophies differ and how they work together.
This card is HL only. You must be able to explain the differences between the CPU and the GPU. Design philosophy and usage CPU: a few powerful cores optimized for low-latency serial tasks and complex control flow. GPU: thousands of simple cores optimized for high-throughput …
CS_A1.1.4
Types of primary memory
RAM, ROM, cache and registers, and cache hits and misses.
Primary memory is directly accessible by the CPU. You must be able to explain the purpose of each type. RAM (random-access memory): fast, volatile working memory holding running programs and data; lost on power-off. ROM (read-only memory): non-volatile memory holding firmware (for example the boot …
CS_A1.1.5
The fetch, decode, execute cycle
How the CPU runs one machine instruction using memory, registers and buses.
The fetch, decode, execute cycle is the basic sequence the CPU repeats to run one machine-language instruction. Fetch The PC gives the address of the next instruction; it goes via the MAR onto the address bus; the instruction returns via the data bus into the …
CS_A1.1.6
Pipelining in multi-core architectures
Overlapping instruction stages across parallel cores to raise throughput.
This card is HL only. You must be able to describe pipelining : overlapping the stages of different instructions so the CPU works on several at once, like a production line. The stages fetch, decode, execute and write-back are overlapped: while one instruction is executing, …
CS_A1.1.7
Secondary storage
Internal and external drives and where each is used.
Secondary storage is non-volatile storage that is not directly accessed by the CPU. You must be able to describe internal and external types. Internal Solid state drive (SSD, no moving parts, fast), hard disk drive (HDD, spinning magnetic platters, cheaper per GB), embedded multimedia cards …
CS_A1.1.8
Compression
Lossy versus lossless, run-length encoding and transform coding.
Compression : reducing the number of bits used to represent data. Lossless compression lets the exact original be reconstructed (needed for text, code, archives). Lossy compression discards less-important detail for a much smaller size and cannot be perfectly reversed (used for images, audio, video). Named …
