13
The Central Processing Unit (CPU) Understanding computers 3 rd Edition

The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

  • Upload
    others

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)Understanding computers

3rd Edition

Page 2: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

• Draw a block diagram of the main components of a

computer: input, processor, output and storage

• Explain what RAM and ROM are used for

• Distinguish between main memory and permanent

storage devices

• Name the three stages in the Fetch Execute Cycle

• Define Hz, MHz and GHz and state how these relate

to the speed of the processor

Objectives

Page 4: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

The components of a computer

Central

Processing

Unit

(CPU)

Input

OutputMain

Memory

Storage

Page 5: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Fetch – Decode – Execute cycle

Decode

Execute

Fetch

Page 6: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Fetch – Decode – Execute cycle

• The computer has a list of instructions in memory to

carry out:

• CPU Fetches top instruction from the list

• Instructions are passed to Decoder to interpret

• Decoder passes on the instruction

• Each instruction is Executed or carried out

• CPU Fetches top instruction from the list…

Page 7: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Activity

• Pupil 1 – holds instructions in the order they are to

be processed

• Pupil 2 – fetches an instruction and gives to Pupil 3

• Pupil 3 – decodes instruction and tells Pupil 4 what

to do

• Pupil 4 – executes the instruction

Page 8: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Processor speed

• One cycle per second = 1 Hertz (Hz) = 1 instruction

carried out each second

• 1 Kilohertz (kHz) = 1000 cycles per second

• 1 Megahertz (MHz) = 1,000,000 cycles per second

• 1 Gigahertz (GHz) = 1,000,000,000 (1 Billion) cycles

per second

• How fast is your computer’s processor?

Page 9: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Worksheet 2

• Use the Internet to find answers to the questions on

the worksheet.

Page 10: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

RAM vs ROM

• RAM stands for Random Access Memory

• ROM stands for Read Only Memory

• Some data needs to be permanently held in

memory, even when the machine is switched off

• What does a computer do when you turn it on?

• Where are these instructions held?

Page 11: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Starting up a computer

• When you switch on a computer, a small program

held in ROM called the bootstrap loader is

automatically executed

• The program performs some self-tests, and loads

the operating system into memory

Page 12: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Plenary

• What is memory?

• What is the difference between a hard disk

and memory?

• What is a processor?

Page 13: The Central Processing Unit (CPU) - Weebly · 2020. 4. 10. · The Central Processing Unit (CPU) Understanding Computers Fetch –Decode –Execute cycle •The computer has a list

The Central Processing Unit (CPU)

Understanding Computers

Copyright

© 2017 PG Online Limited

The contents of this unit are protected by copyright.

This unit and all the worksheets, PowerPoint presentations, teaching guides and other associated files distributed

with it are supplied to you by PG Online Limited under licence and may be used and copied by you only in

accordance with the terms of the licence. Except as expressly permitted by the licence, no part of the materials

distributed with this unit may be used, reproduced, stored in a retrieval system, or transmitted, in any form or by

any means, electronic or otherwise, without the prior written permission of PG Online Limited.

Licence agreement

This is a legal agreement between you, the end user, and PG Online Limited. This unit and all the worksheets,

PowerPoint presentations, teaching guides and other associated files distributed with it is licensed, not sold, to

you by PG Online Limited for use under the terms of the licence.

The materials distributed with this unit may be freely copied and used by members of a single institution on a

single site only. You are not permitted to share in any way any of the materials or part of the materials with any

third party, including users on another site or individuals who are members of a separate institution. You

acknowledge that the materials must remain with you, the licencing institution, and no part of the materials may

be transferred to another institution. You also agree not to procure, authorise, encourage, facilitate or enable anythird party to reproduce these materials in whole or in part without the prior permission of PG Online Limited.