Full Marks

A-level Computer Science Year 12 · Topic 11

Processor architectures and assembly language

Processor architectures and assembly language looks inside the C P U and at the instructions it actually runs.

We will compare Von Neumann, Harvard and modern architectures, and the factors that affect performance.

Then we study pipelining, C I S C and R I S C, G P Us and parallel systems, assembly language and the Little Man Computer, and addressing modes.

In this topic

  1. 11.1Von Neumann, Harvard and contemporary architecturesFree below · 19 questions
  2. 11.2Factors affecting processor performance: clock speed, cores, cache, word length and bus widthOpen in Full Marks · 30 questions
  3. 11.3Pipelining in the fetch-decode-execute cycleOpen in Full Marks · 20 questions
  4. 11.4CISC and RISC processorsOpen in Full Marks · 18 questions
  5. 11.5GPUs, multicore and parallel systemsOpen in Full Marks · 30 questions
  6. 11.6Assembly language and the Little Man ComputerOpen in Full Marks · 32 questions
  7. 11.7Machine code instruction formats and addressing modesOpen in Full Marks · 20 questions

11.1 · Free notes

Von Neumann, Harvard and contemporary architectures

Diagram: Von Neumann, Harvard and contemporary architectures

Key points

In more detail

Practice

Von Neumann, Harvard and contemporary architectures: 10 questions

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

1. Which feature defines the Von Neumann architecture?

  1. Each core has its own main memory
  2. Instructions are held only in ROM
  3. Instructions and data share one memory and bus
  4. Separate buses for instructions and data
Show answer

C: Instructions and data share one memory and bus. Von Neumann uses a single memory and a single set of buses for both instructions and data (the stored program concept). Separate memories and buses describe Harvard.

2. What is the Von Neumann bottleneck?

  1. Instructions and data compete for one shared bus
  2. The ALU is too slow to execute instructions
  3. Main memory cannot store programs
  4. The clock cannot exceed 1 GHz
Show answer

A: Instructions and data compete for one shared bus. Because one bus carries both instructions and data, the CPU cannot fetch an instruction and access data at once. This limits throughput.

3. Which is a key advantage of the Harvard architecture?

  1. It needs no cache memory
  2. An instruction and a data item can be fetched simultaneously
  3. Programs can easily modify themselves
  4. It needs fewer buses and less hardware
Show answer

B: An instruction and a data item can be fetched simultaneously. Separate instruction and data memories, each with its own bus, allow parallel access. The cost is more complex and expensive hardware.

4. A washing machine controller has its program in ROM and its sensor data in RAM. Which architecture suits it best?

  1. Von Neumann with a single shared memory
  2. Neither, because it has no memory
  3. Quantum
  4. Harvard
Show answer

D: Harvard. Embedded devices with a fixed program in ROM and working data in RAM suit Harvard. It protects the program and gives parallel fetches.

5. What does the stored program concept mean?

  1. Programs run without a processor
  2. Instructions are held in memory as binary, like data
  3. Programs are kept on the hard disk only
  4. The CPU stores data in the ALU
Show answer

B: Instructions are held in memory as binary, like data. The stored program concept means instructions are stored in main memory in binary alongside data. The CPU fetches them one at a time to execute.

6. A CPU has separate L1 instruction and data caches but one unified main memory. This is best described as:

  1. A pure Harvard design
  2. A modified Harvard design
  3. A pure Von Neumann design
  4. A non-stored-program design
Show answer

B: A modified Harvard design. Contemporary CPUs split the L1 cache (Harvard-style) but use unified main memory (Von Neumann-style). This is called a modified Harvard architecture.

7. Each instruction needs one bus transfer to fetch it and one to read data. Over 100 such instructions, how many bus transfers are needed on a single-bus Von Neumann machine?

  1. 400
  2. 200
  3. 150
  4. 100
Show answer

B: 200. Each instruction needs 2 transfers, so 100 × 2 = 200 on a single shared bus. A Harvard machine could overlap the pair, needing about 100 transfer times.

8. Which statement about Harvard architecture is correct?

  1. Instruction and data memories may have different word widths
  2. It always has fewer buses than Von Neumann
  3. It cannot be used in microcontrollers
  4. Instruction and data share one address space
Show answer

A: Instruction and data memories may have different word widths. Separate memories can differ in size and word width. Harvard needs more buses and has separate address spaces, and it is common in microcontrollers.

9. Why is read-only instruction memory in a Harvard system a security benefit?

  1. It removes the need for an operating system
  2. The CPU runs at a higher clock speed
  3. Faulty or malicious data writes cannot overwrite the program
  4. Data cannot be stored at all
Show answer

C: Faulty or malicious data writes cannot overwrite the program. Because instructions are in a separate, often read-only, memory, data writes cannot corrupt or replace the program code.

10. Which pair of components is part of the Von Neumann model?

  1. Two separate instruction buses
  2. Dual instruction and data memories
  3. A dedicated graphics bus only
  4. Control unit and ALU
Show answer

D: Control unit and ALU. The Von Neumann model includes an ALU, control unit, registers, main memory, I/O and buses. Separate instruction and data memories belong to Harvard.

Keep going in Full Marks

Full Marks has 19 questions on Von Neumann, Harvard and contemporary architectures (9 more than here), set out in practice levels. You also get notes and 3D models for all 7 subtopics of Processor architectures and assembly language, plus games, timed exams and past papers.

On your exam board

All A-level Computer Science Year 12 topics