L1 Architecture of The CPU
L1 Architecture of The CPU
Accumulator
Understand the purpose
of the CPU and the Understand common CPU
fetch-execute cycle components including:
ALU (Arithmetic Logic Unit)
Understand the following CU (Control Unit)
registers in the Von Cache
Registers
Neumann architecture:
MAR (Memory Address Register)
MDR (Memory Data Register)
Program Counter
The Architecture of the CPU
Unit 1 Systems architecture
Starter
• A laptop and smartphone are both examples of
computer systems
• What are the input and output devices for these computer
systems?
• What component carries
out the processing of
the instructions?
The Architecture of the CPU
Unit 1 Systems architecture
Starter
• Input devices:
• Laptop: keyboard, buttons, trackpad, microphone
• Smartphone: microphone, buttons, GPS sensor, gyroscopic
sensor, touch part of the touchscreen
• Output devices:
• Laptop and smartphone: speakers, display
• Processing:
• CPU (Central Processing Unit)
The Architecture of the CPU
Unit 1 Systems architecture
SECONDARY
STORAGE
The Architecture of the CPU
Unit 1 Systems architecture
What is this?
The Architecture of the CPU
Unit 1 Systems architecture
The CPU
The Architecture of the CPU
Unit 1 Systems architecture
• Accumulator
holds the result of an instruction before it is transferred to
memory
The Architecture of the CPU
Unit 1 Systems architecture
Control Unit
• The control unit coordinates and controls
all of the activities taking place within
the CPU
• It decodes instructions and executes them
• It receives signals from the system clock
• It directs the timing and control of other
parts of the CPU, much like the conductor
of an orchestra
The Architecture of the CPU
Unit 1 Systems architecture
Main ALU
Memory ADD X, Accumulator
X = 3 Y 8
Y = 5
The Architecture of the CPU
Unit 1 Systems architecture
Worksheet 1
• Complete Task 1 on Worksheet 1
The Architecture of the CPU
Unit 1 Systems architecture
7 STO 12
been fetched
8
9
1
50
0
1
17
1
1
2
The Architecture of the CPU
Unit 1 Systems architecture
Accumulator
• The accumulator (ACC) is
where arithmetic and logic
results are temporarily stored,
much like the M+ function on
a calculator
The Architecture of the CPU
Unit 1 Systems architecture
Working together
MAR (Memory Address Register)
MDR (Memory Data Register)
The two work together; The MAR knows where to look
for data in RAM, the MDR keeps hold of that data until
it’s ready to be used by the CPU
MAR MDR
(Memory (Memory
Address Data
Register) Register)
The Architecture of the CPU
Unit 1 Systems architecture
Processor architecture
• What does each acronym stand for?
• What does each part do?
The Architecture of the CPU
Unit 1 Systems architecture
Processor architecture
PC: MAR:
Program Counter – points Memory Address Register – stores the
to the next instruction address of the instruction to be executed
ACC: RAM:
Accumulator – Random
Temporarily stores Access
arithmetic results Memory
ALU: MDR:
Arithmetic Logic Unit – performs Memory data register – Stores the
calculations and logic expressions data to be sent from memory
The Architecture of the CPU
Unit 1 Systems architecture
Processor architecture
8 – Cycle PC: MAR:
Repeats Program Counter – points Memory Address Register – stores the
to the next instruction address of the instruction to be executed
5 – Decodes
Instructions 1
ACC: RAM:
Accumulator – Random
Temporarily stores Access
arithmetic results
7 2
Memory
ALU: MDR:
Arithmetic Logic Unit – performs Memory data register – Stores the
calculations and logic expressions data to be sent from memory
The Architecture of the CPU
Unit 1 Systems architecture
Example – Step 2
1 • PC now points to next instruction in
location 6
2
Example – Step 3
1 • PC points to the next instruction in
location 7
2
Worksheet 1
• Complete Task 2 on Worksheet 1
The Architecture of the CPU
Unit 1 Systems architecture
Plenary
• In pairs, answer the following:
• What is the purpose of the CPU?
• What are two major components
of the CPU, and what is the
purpose of each?
• What is a register?
• Name four special
registers in the CPU
The Architecture of the CPU
Unit 1 Systems architecture
Plenary
• What is the purpose of the CPU?
• To fetch and execute instructions stored in memory
• What are two major components of the CPU, and
what is the purpose of each?
• The ALU, which carries out arithmetic and logic instructions
• The Control Unit, which coordinates the CPU activities
• What is a register?
• A special fast memory location in the CPU
• Name four special registers in the CPU
• PC, MAR, MDR, Accumulator
The Architecture of the CPU
Unit 1 Systems architecture
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 any
third party to reproduce these materials in whole or in part without the prior permission of PG Online Limited.