A-Level Computer Science / Unit 4: CPU Operation and Low-Level Processing

4.1.2 Inside the CPU: Components and Registers

🔒 Lesson slides are available to signed-in users. Sign in

Registers and Buses

A processor uses small storage locations called registers to hold information it needs immediately. It uses buses to carry addresses, data and control signals between the processor and other parts of the computer.

This page introduces the register roles used in the processor model, distinguishes an address from the contents at that address, and follows a read from memory through the registers and buses.

By the end of this page, you should be able to:

  • distinguish general-purpose registers from special-purpose registers;
  • describe the roles of ACC, PC, MAR, MDR, CIR, IX and the Status Register;
  • explain what the address bus, data bus and control bus carry;
  • trace a simple memory read and identify which register and bus carry each item.

1. A register is a small storage location inside the processor

A register is a small, fast storage location inside the CPU. It temporarily holds an address, an instruction, data, a result or status information while the processor works.

The register is the storage location. Its contents are the information stored there at a particular time. For example, if the MAR contains 384, the MAR is the register and 384 is its current content.

Type Purpose Registers in this processor model
General-purpose Holds working values for different operations. ACC (Accumulator)
Special-purpose Has a specific role in processing, memory access or status recording. PC, MAR, MDR, CIR, IX and Status Register
Important: In the simplified processor used here, the ACC is the only general-purpose register. A special-purpose register also stores a value, but its role is fixed.

2. Each named register has a defined role

Learn what each register holds and how that information is used. In particular, keep an address (the location to access) separate from the contents (the information stored at that location).

Register What it holds Why it is used
PC
Program Counter
The address of the next instruction to be fetched. Shows where the processor should get the next instruction.
MAR
Memory Address Register
The address of the memory location currently being accessed. Identifies the location involved in a memory read or write.
MDR
Memory Data Register
Data or an instruction being transferred to or from memory. Temporarily holds the contents that move between memory and the processor.
ACC
Accumulator
A working value or a result from an operation. Provides general-purpose storage for processing.
CIR
Current Instruction Register
The current instruction. Keeps the instruction available while the processor works with it.
IX
Index Register
An index value used with an address operand. Helps calculate an effective address when indexed addressing is used.
Status Register Flags that record conditions or results. Stores status information as individual bits.

Do not mix up PC, MAR and MDR

The PC holds the address of the next instruction. The MAR holds the address currently being accessed. The MDR holds the data or instruction transferred to or from that memory location.

Precise descriptions: say “the MAR holds the address” and “the MDR holds the data or instruction being transferred.” Avoid saying only that a register “stores information.”

3. Buses carry different kinds of information

A bus is a group of communication lines between computer components. The address, data and control buses have separate jobs. Their names help you decide what travels along each one.

Bus What it carries Direction in the processor model
Address bus An address that identifies a memory location. Unidirectional: processor → memory
Data bus Data or instructions being transferred. Bidirectional: processor ↔ memory
Control bus Control signals, such as a read or write signal. Bidirectional: signals can travel in either direction
Unidirectional means that information travels in one direction. Bidirectional means it can travel in either direction. During a memory read, the address travels towards memory and the returned data travels back to the processor.

Address is not data

The address bus carries the location number. The data bus carries the contents found at that location. For example, 384 could be an address, while 29 is the value stored at that address.

4. Follow a memory read through the registers and buses

Suppose the processor needs to read the value stored at memory address 384. That location contains 29. Follow the address and value separately:

  1. The MAR holds the address 384.
  2. The address bus carries 384 from the processor to memory.
  3. The CU sends a READ signal on the control bus.
  4. Memory returns its contents, 29, along the data bus.
  5. The MDR receives and holds 29.
End state: MAR contains the address 384; MDR contains the value 29 read from that address. The address bus carries the location, while the data bus carries the contents.

Interactive memory-read walkthrough

Select Next Step to highlight the register or bus used at each stage. Follow the address 384 to memory and the value 29 back to the MDR.

PCnext instruction address
MARaddress 384
MDRreceives 29
CIRcurrent instruction
CUsends READ signal
ALUarithmetic / logic
ACCworking value
IXindex value
Status Registercondition flags
Main memoryaddress 384 contains 29
Address bus: processor → memory
Data bus: memory → processor for this read
Control bus: READ signal → memory

The processor needs the value stored at address 384. Select “Next Step” to begin.

5. Check these important distinctions

Keep separate Difference
Register and contents The register is the storage location; its contents are the value currently held there.
Address and data An address identifies a location; data is the information stored at or transferred from it.
MAR and MDR MAR holds an address; MDR holds the data or instruction being transferred.
Address bus and data bus The address bus carries a location; the data bus carries the contents.
General-purpose and special-purpose ACC is the general-purpose register in this model; the other named registers have defined roles.

6. Check your understanding

Try each prompt before opening its suggested response.

  1. A processor is accessing address 615. The value at that location is 42. Which value belongs in the MAR, and which value is returned to the MDR?
    Suggested response

    The MAR holds address 615. The MDR receives the contents, 42.

  2. Which bus carries a memory address? State its direction during a processor read.
    Suggested response

    The unidirectional address bus carries the address from the processor to memory.

  3. Which bus carries the READ signal, and which bus carries the value returned by memory?
    Suggested response

    The control bus carries the READ signal. The data bus carries the returned value to the processor.

  4. In this processor model, which register can hold a general working value? Name one special-purpose register.
    Suggested response

    The ACC can hold a general working value. For example, MAR is special-purpose because it holds the address currently being accessed.

Final check

When you describe a memory read, name the address register, the control signal, the data transfer and the register that receives the contents. Keep the address and the data distinct.