CPU registers & Von Neumann architecture

Computer Science · Computer architecture & systems

Question 1 of 10

0

    What is the job of the system clock in a CPU?

    Stuck? Read the explanation

    Unlocks at a streak of 5 correct answers in a row.

    Print a free worksheet (PDF)

    Embed this practice on your site or class page

    Paste this HTML into your page. Students practise right there; it is free and needs no account.

    CPU registers & Von Neumann architecture explained

    The central processing unit (CPU) is the part of a computer that carries out instructions. It contains the arithmetic and logic unit (ALU) and the control unit, which fetches instructions and coordinates the other parts. Registers are tiny, very fast storage locations inside the CPU that hold the data and addresses being used right now.

    Key registers are the program counter (PC), which holds the address of the next instruction; the memory address register (MAR), which holds the address being accessed; the memory data register (MDR), which holds data being read or written; and the accumulator (ACC), which holds results.

    The Von Neumann architecture stores program instructions and data together in the same main memory and uses a single set of buses to move them. Its address bus carries memory addresses, its data bus carries the data itself, and its control bus carries signals such as read and write. Because instructions and data share one path, the CPU cannot fetch both at once, the Von Neumann bottleneck.

    The CPU repeats the fetch-decode-execute cycle: the address in the PC is copied to the MAR, the instruction is fetched into the MDR and then the current instruction register (CIR), the instruction is decoded, and it is executed. The PC is then incremented to point to the next instruction.

    Worked example

    A program is stored at memory address 200, and the PC currently holds 200. Which register is used first in the fetch step, and what happens to the PC?

    1. The address in the PC (200) is copied into the MAR, so the MAR now holds 200.
    2. The instruction at address 200 is read into the MDR, then the CIR for decoding.
    3. The PC is incremented to 201, ready for the next fetch.

    What you will practise

    92 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.

    Example questions

    • In the Von Neumann architecture, where are program instructions stored?
    • What does the program counter (PC) hold?
    • Which register holds the memory address that is about to be read from or written to?
    • Which register holds data that has just been read from memory, or is about to be written to memory?
    • Which register is most commonly used to store the result of an arithmetic or logic operation?
    • Which CPU component coordinates the fetch-decode-execute cycle by sending control signals?
    • What does the arithmetic logic unit (ALU) do?
    • Which bus carries memory addresses from the CPU to main memory?

    …and 84 more.