Teachers' Portal  /  A-Level Computer Science 9618  /  Processor fundamentals  /  Buses, ports and processor performance
Lesson pack · A-Level Computer Science 9618 · 4.1 · AS Level

Buses, ports and processor performance

Wider, faster, more. Data moves around a computer along three buses, and the width of each one sets limits on what the system can do.

Student lesson Lab, full screen
At a glance

The shape of the lesson

Topic
Processor fundamentals
Syllabus reference
Cambridge International AS and A Level Computer Science 9618, 4.1
Level
AS Level
Duration
45 minutes, lab-led; stretches to a 60 minute block (see the contingency notes)
Position in topic
Lesson 2 of 8 in Processor fundamentals; follows The Von Neumann model and registers; leads into The fetch-execute cycle in register transfer notation
Central model
Fig. 1: the address, data and control buses that make up the system bus
Cooperative structure
Assessment
Stage 1 check and the exam-style plenary from the student lesson, plus the worksheet as the exit task
Learning objectives

By the end of the lesson, learners can

Section by section
  • Three buses: A bus is a set of parallel wires connecting the components of a computer.
  • What makes it fast: In the lab, change the number of cores, the cache size and the clock speed, and watch how long the same work takes.
  • Three ports: A port is the socket on a computer where a peripheral device is plugged in.
Key points to leave on the board
  • Address bus: one way; n lines address 2n locations.
  • Data bus: two way; wider means more bits per transfer.
  • Performance: processor type, cores, bus width, clock speed, cache; always give the reason.
  • Ports: USB (serial, power, auto-detect), HDMI (digital video and audio), VGA (analogue video only).
The core visual model

One picture every idea returns to

The address bus carries addresses one way, from the processor to memory; with n address lines it can address 2n locations. The data bus carries data and instructions both ways; a wider data bus moves more bits in each transfer. The control bus carries signals such as read, write, clock and interrupt, both ways. Performance depends on the processor type, the number of cores, the bus width, the clock speed and the size of the cache. Ports such as USB, HDMI and VGA connect peripheral devices.

CPU memory and I/O ports address bus: one way data bus: two way control bus: two way the system bus n address lines can address 2ⁿ locations a wider data bus moves more bits in each transfer
Fig. 1: the address, data and control buses that make up the system bus
Lesson sequence

Forty-five minutes, phase by phase

TimePhaseWhat happens in the roomGrouping
0 to 5 minHook: predictOpen with the question in the title, Wider, faster, more.. Data moves around a computer along three buses, and the width of each one sets limits on what the system can do. Put the figure on the board: it is the one picture every idea in the lesson returns to.Whole class, then pairs
5 to 13 minTeach and check: Three busesA bus is a set of parallel wires connecting the components of a computer. Model the worked example Address bus width on the board, one line at a time. Your turn: A data bus is increased from 32 bits to 64 bits. How many transfers are now needed to move 256 bytes, and how many were needed before?Whole class, then pairs
13 to 21 minTeach and check: What makes it fastIn the lab, change the number of cores, the cache size and the clock speed, and watch how long the same work takes. Project tab 3 of the lab (Cores, cache and clock speed) and let a student drive it while the class predicts.Pairs
21 to 30 minTeach and check: Three portsA port is the socket on a computer where a peripheral device is plugged in. Your turn: A school wants to connect a laptop to a projector and play a video with sound through the projector's speakers. Which port should it use, and why not VGA?Connect-Extend-Challenge
30 to 36 minCheckThe four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong.Individual, then whole class
36 to 43 minPlenaryThe exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording.Individual, random call
43 to 45 minExit and homeworkSet the worksheet below (6 questions, 16 marks). Learners self-assess against the objectives before they leave.Individual
Timing and contingency

Protect the parts that carry the learning

The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.

Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.

Cut first if the build overruns: the last check in Three ports, never the check or the plenary.

In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.

Running the cooperative task

Connect-Extend-Challenge

After the new idea, each student writes three lines: how it connects to what they knew, how it extends their thinking, and what still challenges them. Pairs compare, then the challenges become the plenary.

The full structure, with its variations and the other twelve, is on the cooperative-learning page.

Examiner traps to pre-empt

What to head off, and how

Trap learners fall intoTeaching move that pre-empts it
Widening the address bus does not make each transfer bigger: it increases how many memory locations can be addressed.It is the data bus width that sets how many bits move per transfer.
Doubling the cores does not double the speed.Say that some tasks cannot be split up to run in parallel, and that time is spent coordinating the cores.
Worksheet

Buses, ports and processor performance: worksheet

6 questions, 16 marks. Written in the style of the papers; no past paper question is reproduced.

NameClassDate
Q1 · recall[3 marks]

Describe the purpose of the address bus, the data bus and the control bus.

Q2 · calculate[2 marks]

A computer has a 20-bit address bus. Each memory location holds one byte. Calculate the maximum amount of memory that can be addressed. Give your answer in MiB.

Q3 · explain[4 marks]

Explain how increasing (a) the clock speed and (b) the size of the cache can improve the performance of a computer.

Q4 · explain[2 marks]

A user replaces a dual-core processor with an eight-core processor, but one program runs no faster. Explain why.

Q5 · apply[3 marks]

For each device, identify the most suitable port and give a reason: (a) a smart TV used as a second screen for a film, (b) a USB flash drive, (c) an old projector with a 15-pin analogue input.

Q6 · analysis[2 marks]

A student writes: "Increasing the width of the address bus means more data is sent with each instruction." Explain why this is incorrect.

Answer key and marking notes
Q1 · 3 marks
  • Address bus: carries the address of the location to be accessed from the processor to memory (one way).
  • Data bus: carries data and instructions between the processor, memory and I/O (both ways).
  • Control bus: carries control and timing signals, such as read, write and clock, between components.
Q2 · 2 marks
  • 220 = 1 048 576 locations.
  • 1 048 576 bytes = 1 MiB.
Q3 · 4 marks
  • (a) The clock produces more pulses per second.
  • (a) So more fetch-execute cycles, and so more instructions, are completed per second.
  • (b) More frequently used instructions and data can be held in fast cache close to the processor.
  • (b) So fewer accesses to slower main memory are needed.
Q4 · 2 marks
  • The program may not be written to be split into tasks or threads that run in parallel.
  • So it can only use one core at a time (and the other cores are idle).
Q5 · 3 marks
  • (a) HDMI: carries high-definition digital video and audio together.
  • (b) USB: serial data, supplies power and is detected automatically.
  • (c) VGA: it carries the analogue video signal the projector expects.
Q6 · 2 marks
  • A wider address bus increases the number of memory locations that can be addressed.
  • It is a wider data bus that allows more bits to be transferred at once.
Quiz

6 multiple-choice questions on this lesson

From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.

Q11 mark

A processor has an 18-bit address bus. How many different memory locations can it address?

  • A262 144
  • B262 143
  • C36
  • D131 072
Q21 mark

Which bus carries signals in one direction only, and in which direction?

  • AThe address bus, from the processor to memory
  • BThe data bus, from memory to the processor
  • CThe control bus, from the processor to memory
  • DThe address bus, from memory to the processor
Q31 mark

A teacher must connect a laptop to an old projector whose only input is a 15-pin analogue video socket. Which port should be used?

  • AVGA
  • BHDMI
  • CUSB
  • DEthernet
Q41 mark

Why does increasing the size of the cache usually improve the performance of a processor?

  • AMore frequently used instructions and data can be kept close to the processor, so fewer slow accesses to main memory are needed
  • BThe clock can then produce more pulses each second, so more instructions are executed
  • CThe processor can then address a larger number of main memory locations
  • DEach core can then run two separate programs at exactly the same time
Q51 mark

A block of 512 bytes is to be moved between memory and the processor. The data bus is widened from 32 bits to 64 bits. How many transfers are needed now?

  • A64
  • B8
  • C16
  • D128
Q61 mark

A computer's address bus is widened from 16 lines to 20 lines. The data bus is unchanged. Which statement is correct?

  • AIt can address 16 times as many memory locations, but each transfer still moves the same number of bits
  • BEach transfer can now move 4 more bits of data, so programs run faster
  • CIt can address 4 more memory locations than before
  • DThe clock speed rises, because addresses reach memory more quickly
Quiz key
Q1: A

With 18 address lines there are 218 = 262 144 different addresses. 262 143 is the highest address (they are numbered from 0), not the number of locations. 36 comes from 18 × 2 instead of 218, and 131 072 is 217, one line short.

Q2: A

Only the processor sends addresses (from the MAR), so the address bus is one way, processor to memory. The data bus is two way, because data is both read and written. The control bus is also two way: for example, devices send interrupt requests to the processor. Memory never sends addresses back to the processor.

Q3: A

VGA carries an analogue video signal and uses a 15-pin connector, which is what the projector expects. HDMI is digital (video and audio), so it needs a matching digital input. USB is a general purpose serial port for peripherals such as keyboards and flash drives, and Ethernet connects to a network, not a display.

Q4: A

Cache holds copies of frequently used instructions and data, so the processor finds more of what it needs there and waits for slower main memory less often. Clock speed is a separate factor, not changed by the cache. The number of addressable locations depends on the width of the address bus, and running tasks in parallel depends on the number of cores.

Q5: A

512 bytes = 512 × 8 = 4096 bits, and 4096 / 64 = 64 transfers (it was 4096 / 32 = 128 before, so 128 is the old figure). 8 comes from dividing 512 by 64 without converting bytes to bits, and 16 divides 512 by 32, making the same mistake with the old bus width.

Q6: A

220 / 216 = 24 = 16, so 16 times as many locations can be addressed. The number of bits per transfer is set by the data bus, which has not changed. Adding 4 lines multiplies the number of locations by 16; it does not add 4. Bus width has no effect on the clock speed.

Lab and demo

What to project

The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.

Slides

Slides for this lesson

A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.

Also for this topic

Everything else you can use

Original work by the TheLucidSTEM team. The worksheet items are written in the style of the papers; no past paper question is reproduced.
Previous lessonThe Von Neumann model and registers