Full Marks

A-level Computer Science Year 13 · Topic 11

Processors, input, output and storage devices

Processors, input, output and storage looks in depth at how a computer's hardware works and performs.

We will study the A L U, control unit, registers and buses, the fetch decode execute cycle, and pipelining.

Then we compare architectures, C I S C and R I S C, G P Us and parallel systems, storage technologies, and specialist input and output devices.

In this topic

  1. 11.1Structure of the processor: ALU, control unit, registers and busesFree below · 28 questions
  2. 11.2Fetch-decode-execute cycle and factors affecting processor performanceOpen in Full Marks · 32 questions
  3. 11.3Pipelining and its hazardsOpen in Full Marks · 25 questions
  4. 11.4Von Neumann, Harvard and contemporary processor architecturesOpen in Full Marks · 27 questions
  5. 11.5CISC and RISC, GPUs, multicore and parallel systemsOpen in Full Marks · 26 questions
  6. 11.6Primary and secondary storage: RAM, ROM, magnetic, flash, optical and virtual storageOpen in Full Marks · 73 questions
  7. 11.7Input and output devices and their specialist applicationsOpen in Full Marks · 48 questions

11.1 · Free notes

Structure of the processor: ALU, control unit, registers and buses

Diagram: Structure of the processor: ALU, control unit, registers and buses

Key points

In more detail

Practice

Structure of the processor: ALU, control unit, registers and buses: 10 questions

Pick an answer to check it, or open the answer for the explanation.

1. Which register holds the address of the next instruction to be fetched from memory?

  1. MAR
  2. CIR
  3. PC
  4. ACC
Show answer

C: PC. The program counter holds the address of the next instruction and is incremented after each fetch. The MAR holds the address currently being accessed, not the next instruction.

2. In a Von Neumann CPU, which bus carries memory addresses one way only, from the processor to memory?

  1. Instruction bus
  2. Data bus
  3. Address bus
  4. Control bus
Show answer

C: Address bus. The address bus is unidirectional: the CPU places an address on it and memory reads it. The data bus is bidirectional and the control bus carries signals.

3. A processor has a 20-bit address bus and byte-addressable memory. How many locations can it address?

  1. 20 locations
  2. 2 000 000 locations
  3. 40 000 locations
  4. 1 048 576 locations
Show answer

D: 1 048 576 locations. n address lines give 2^n locations. 2^20 = 1 048 576, which is 1 MiB if each location holds one byte.

4. Which component carries out the operations AND, OR and addition on binary values?

  1. MAR
  2. ALU
  3. Control unit
  4. Program counter
Show answer

B: ALU. The arithmetic logic unit performs arithmetic and logical operations. The control unit only decodes instructions and issues control signals.

5. Which statement about the Harvard architecture is correct?

  1. It has no registers
  2. It uses separate memories and buses for instructions and data
  3. It can only run one program ever
  4. Instructions and data share one memory
Show answer

B: It uses separate memories and buses for instructions and data. Harvard architecture separates instruction and data memory (and buses), so both can be accessed simultaneously. Von Neumann uses one shared memory.

6. During the decode stage, which component interprets the opcode and generates the control signals?

  1. Control unit
  2. ALU
  3. Data bus
  4. MDR
Show answer

A: Control unit. The control unit decodes the instruction in the CIR into opcode and operand and then sends control signals to other components.

7. A CPU has a 32-bit address bus with byte-addressable memory. What is the maximum memory it can address directly?

  1. 32 MiB
  2. 1 GiB
  3. 4 GiB
  4. 32 GiB
Show answer

C: 4 GiB. 2^32 bytes = 4 294 967 296 bytes = 4 GiB. Address bus width fixes the number of addressable locations, not the speed.

8. Which register temporarily holds data that has just been read from main memory?

  1. MDR
  2. PC
  3. MAR
  4. Status register
Show answer

A: MDR. The memory data register (MBR) holds the data or instruction transferred over the data bus from memory, or data about to be written to memory.

9. An ALU operation produces the result 0. Which status register flag is set?

  1. Interrupt flag
  2. Zero flag
  3. Negative flag
  4. Carry flag
Show answer

B: Zero flag. The zero flag is set when the result of an operation is zero. Branch instructions such as BEQ can then test it.

10. Why is accessing a register faster than accessing main memory?

  1. Registers are cheaper per byte
  2. Registers use the address bus only
  3. Registers are inside the CPU, so no bus transfer is needed
  4. Registers are bigger than RAM
Show answer

C: Registers are inside the CPU, so no bus transfer is needed. Registers sit inside the processor and are accessed directly, without bus transfers to RAM. They are fast but very small and expensive per byte.

Keep going in Full Marks

Full Marks has 28 questions on Structure of the processor: ALU, control unit, registers and buses (18 more than here), set out in practice levels. You also get notes and 3D models for all 7 subtopics of Processors, input, output and storage devices, plus games, timed exams and past papers.

On your exam board

All A-level Computer Science Year 13 topics