1 of 33

Lesson 2:

Under the hood

Year 8 – Computing systems

2 of 33

Starter activity

Question .

What is the main task of a general-purpose computing system?

  1. The main task is to execute programs.
  2. There is no main task. It can perform any task prescribed by a program.
  3. The main task depends on the system. Different systems may perform a different main task.
  4. The main task depends on the user. Different users may need the system to perform a different main task.

3 of 33

Starter activity

A machine playing noughts and crosses

In the previous lesson,

a human executed a program for noughts and crosses.

Question What do you think it would take for a machine to be able to execute that program?

4 of 33

Starter activity

A machine playing noughts and crosses

In the previous lesson,

a human executed a program for noughts and crosses.

Question What do you think it would take for a machine to be able to execute that program?

It needs to ‘understand’ the program.

Language

It needs to ‘read’ the board and ‘write’ on it.

Input and output

Internally, it needs components that will allow the machine to follow the instructions.

Hardware

5 of 33

Starter activity

A machine playing noughts and crosses

The physical components of a computing system are called hardware.

Hardware is any component of a computing system that you can touch.

The programs of a computing system are called software.

6 of 33

Objectives

Lesson 2: Under the hood

In this lesson, you will:

  • Describe the hardware components used in computing systems and how they work together in order to execute programs
  • Highlight how all computing systems, regardless of form, are similar in structure (‘architecture’)

7 of 33

Activity 1

Check the specs

Specifications or ‘specs’: a table of hardware components and technical characteristics

Your handout contains specs for a range of modern computing devices.

Question .

What are the components that are present in every one of these computing systems?

They must be important, right?

8 of 33

Activity 1

Check the specs – Answers

Desktop

Laptop

Phone

Raspberry Pi 4

micro:bit

Rover

Processor

Memory

Storage

Communication

Graphics processor

Input and output

Connections

Weight

9 of 33

Activity 1

Check the specs – Answers

Answer . Computing systems need a processor, memory, and storage. Modern systems also rely heavily on communication between them.

Desktop

Laptop

Phone

Raspberry Pi 4

micro:bit

Rover

Processor

Memory

Storage

Communication

Graphics processor

Input and output

Connections

Weight

10 of 33

Activity 1

Check the specs – Answers

Systems without input/output devices can connect to such devices. Input and output is always present in computing systems.

Desktop

Laptop

Phone

Raspberry Pi 4

micro:bit

Rover

Processor

Memory

Storage

Communication

Graphics processor

Input and output

Connections

Weight

11 of 33

Activity 1

Insight

Diverse computing systems have strikingly similar components:

all computing systems are similar in structure (‘architecture’).

Let’s examine:

What the common components do

How they function together in order to execute programs

12 of 33

Activity 2

What does it do?

The storage (secondary memory) is the set of components that stores programs and data.

Storage is persistent: it retains its contents when the power is off.

Question . Name a few common storage devices.

Answer . Hard disk drives (HDD), solid-state drives (SSD), USB flash drives or USB sticks, SD cards

Storage technology evolves over time.

The concept of storage is a constant.

13 of 33

Activity 2

What does it do?

The storage (secondary memory) is the set of components that stores programs and data.

Storage is persistent: it retains its contents when the power is off.

Question . Name a few common storage devices.

Storage technology evolves over time.

The concept of storage is a constant.

Hard disk (HDD)

Solid-state drive (SSD)

Optical disc

SD card

USB stick

14 of 33

Activity 2

What does it do?

The storage (secondary memory) is the set of components that stores programs and data.

Storage is persistent: it retains its contents when the power is off.

storage

programs

data

stores

15 of 33

Activity 2

What does it do?

The main memory is the component that stores the programs and data currently in use.

Memory is volatile: its contents are lost when the power is off.

Terminology: The main memory is commonly referred to as RAM (random-access memory).

This is what the main memory looks like in desktops and laptops.

Sometimes, memory is integrated with other components, rather than being a separate component.

16 of 33

Activity 2

What does it do?

The main memory is the component that stores the programs and data currently in use.

Memory is volatile: its contents are lost when the power is off.

How it works with other components

When a program must be executed,

it is loaded from storage in memory, along with the data required.

Any new or modified data must be saved from memory to storage.

Terminology: The memory is commonly referred to as RAM (random-access memory).

17 of 33

Activity 2

What does it do?

The main memory is the component that stores the programs and data currently in use.

Memory is volatile: its contents are lost when the power is off.

Terminology: The memory is commonly referred to as RAM (random-access memory).

storage

programs

data

stores

loaded into

memory

programs

under execution

data

under processing

stores

18 of 33

Activity 2

What does it do?

The main memory is the component that stores the programs and data currently in use.

Memory is volatile: its contents are lost when the power is off.

Terminology: The memory is commonly referred to as RAM (random-access memory).

saved into

storage

programs

data

memory

programs

under execution

data

under processing

stores

stores

19 of 33

Activity 2

What does it do?

The processor is the component that executes program instructions.

An instruction may:

  • Perform arithmetic or logic operations on data
  • Perform input/output of data
  • Control program flow

Terminology: The processor is commonly referred to as the CPU (central processing unit).

This is what the processor looks like in desktops and laptops.

Sometimes, the processor is integrated with other components, rather than being a separate component.

20 of 33

Activity 2

What does it do?

The processor is the component that executes program instructions.

An instruction may:

  • Perform arithmetic or logic operations on data
  • Perform input/output of data
  • Control program flow

Terminology: The processor is commonly referred to as the CPU (central processing unit).

How it works with other components

Instructions are fetched one by one from memory into the processor, along with any required data.

The processor decodes and executes each instruction.

Any resulting data is moved into memory.

21 of 33

Activity 2

What does it do?

The processor is the component that executes program instructions.

An instruction may:

  • Perform arithmetic or logic operations on data
  • Perform input/output of data
  • Control program flow

Terminology: The processor is commonly referred to as the CPU (central processing unit).

memory

programs

under execution

data

under processing

stores

fetched into

processor

program instructions

instruction

data

decodesexecutes

operate on

22 of 33

Activity 2

What does it do?

The processor is the component that executes program instructions.

An instruction may:

  • Perform arithmetic or logic operations on data
  • Perform input/output of data
  • Control program flow

Terminology: The processor is commonly referred to as the CPU (central processing unit).

moved into

memory

programs

under execution

data

under processing

processor

program instructions

resulting

data

stores

decodes

executes

generate

23 of 33

Activity 2

An analogy

Knitting patterns, yarn supplies, half-finished and finished projects are kept on the shelves.

This is the storage for programs and data.

24 of 33

Activity 2

An analogy

When the knitter works on a project, the knitting pattern and materials are transferred to the work area, where they can be kept handy for quick access.

This is the memory, where the program under execution is stored temporarily, along with the required data under processing.

25 of 33

Activity 2

An analogy

The knitter reads from the knitting pattern, one instruction at a time, and carries out the instruction, operating on the material at hand.

The knitter is the processor.

26 of 33

Activity 2

What does it do?

Computing systems exchange information and form networks using communication components.

Programs and data are transferred between computing systems, when required.

This allows:

  • Input to be obtained remotely
  • Data to be stored on remote systems
  • Programs to be executed remotely

27 of 33

Activity 2

What does it do?

Computing systems exchange information and form networks using communication components.

storage

transfer

programs

data

communication components

other systems

connect to

stores

28 of 33

Activity 2

What does it do?

Computing systems exchange information and form networks using communication components.

Question . Name different ways for computing systems to communicate.

Hint: Think about networks

29 of 33

Activity 2

What does it do?

Computing systems interact with the user and their surroundings through devices for input and output .

Input: data received by a system

Output: data transmitted from a system

transfer

user

memory

data

input/output devices

interact with

stores

surroundings

30 of 33

Activity 2

What does it do?

Computing systems interact with the user and their surroundings through devices for input and output .

Question . Name a few common input devices.

Input: data received by a system

Output: data transmitted from a system

Input and output devices evolve over time.

The concepts of input and output are constants.

Keyboard

Mouse

Sensors

Camera

Microphone

31 of 33

Activity 2

What does it do?

Computing systems interact with the user and their surroundings through devices for input and output .

Question . Name a few common output devices.

Input: data received by a system

Output: data transmitted from a system

Input and output devices evolve over time.

The concepts of input and output are constants.

Screen

Speakers

Motors

Projector

LEDs

Printer

32 of 33

Plenary

Wearable computing

Google Glass is a wearable computing system. Use the worksheet to label its components.

Input

Output

Program execution

Program & data

(volatile storage)

Program & data (persistent storage)

Data exchange with other systems

33 of 33

Summary

In this lesson, you...

Next lesson, you will...

Explore how the processor, memory, and storage interact to execute programs in real scenarios

Define what an operating system is, and provide an overview of what it does

Described the hardware components used in computing systems and how they work together in order to execute programs

Highlighted how all computing systems, regardless of form, are similar in structure (‘architecture’)