Registers, Buses and the Fetch-Execute Cycle in Detail
What each register holds during one cycle, from the program counter and the address and data registers through to the accumulator, and what travels on the address, data and control buses. A branch is just an instruction writing to the program counter.
What a learner can do afterwards
- Walk one instruction through the cycle, naming the register holding each value at each step
- Say what a branch does to the program counter and when that happens in the cycle
- Explain what a wider address bus or data bus changes about the machine
1 · Read
Every instruction takes the same three trip: fetch it from memory, decode what it asks, then execute it. The program counter holds the address of the next instruction to fetch, so the machine always knows where to look. Fetch copies that instruction into the CPU and moves the counter on to the following address.
Trace an add step by step. Fetch: the address register carries where to read from, and the data register receives what comes back. Decode: the control unit reads the instruction and lines up the arithmetic unit. Execute: the values add and the accumulator keeps the running result, ready for whatever comes next.
Three buses do the carrying. Addresses travel on the address bus, values travel on the data bus, and timing signals travel on the control bus. A branch is simply an instruction that writes a new address into the program counter during execute, so the next fetch jumps instead of stepping on.
Bus width sets what the machine can do. A wider address bus reaches more memory locations, while a wider data bus moves more bits per step. When asked what changes, point at reach for address width and chunk size for data width.
Fetch, decode, execute repeats, registers hold each value along the way, and a branch just rewrites the counter.
2 · Watch
Take it off screen
Where it sits
8 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.