CIE AS & A Level Computer Science, section 4.1 (Central Processing Unit (CPU) architecture)
What a bus is
A bus is a set of parallel wires (each carrying one bit) that carries data and signals between components. There are three main buses.
Address bus
- Carries the address of the memory location (or I/O device) to be accessed.
- Unidirectional (one way): from the processor to memory.
- Its width (number of wires) decides how much memory can be addressed. A 32-bit address bus can address locations.
Data bus
- Carries the data (and instructions) between the processor, memory and I/O devices.
- Bidirectional (both ways).
- Its width decides how many bits can be transferred at once. A wider bus transfers more data per cycle.
Control bus
- Carries control signals and timing signals from the control unit to the other components, and status signals back.
- Examples: memory read, memory write, clock signals, interrupt requests.
- Bidirectional.
Worked example: reading from memory
- The processor places the address on the address bus.
- The control unit sends a memory read signal on the control bus.
- The memory puts the data on the data bus.
- The processor reads the data from the data bus.
| Bus | Carries | Direction |
|---|---|---|
| Address | memory addresses | one way (CPU to memory) |
| Data | data and instructions | both ways |
| Control | control and timing signals | both ways |
Addressable memory
With an address bus of wires, the number of locations is . A 16-bit address bus gives locations.
Common mistake: saying the address bus is bidirectional. It carries addresses from the processor to memory only. Also, do not confuse the data bus width (data per transfer) with the address bus width (the amount of memory that can be addressed).
Exam tip: for each bus, state what it carries and the direction. Use a worked sequence (address, control signal, data) when asked how data is transferred.
Check yourself
Which bus is unidirectional?
The address bus.
How many memory locations can a 20-bit address bus address?
.
What does the control bus carry?
Control signals such as memory read, memory write, clock and interrupt signals.