Professional Documents
Culture Documents
OCR Unit 1
System architecture,
Computer Science memory and storage
J276
1
Objectives
• Understand the purpose of the CPU
• Explain the role and operation of the following CPU
registers used in Von Neumann architecture:
• MAR (Memory Address Register),
• MDR (Memory Data Register),
• Program Counter,
• Accumulator
The CPU
Unit 1 Systems architecture, memory and storage
What is this?
The CPU
Unit 1 Systems architecture, memory and storage
The CPU
The CPU
Unit 1 Systems architecture, memory and storage
SECONDARY
STORAGE
The CPU
Unit 1 Systems architecture, memory and storage
1 Program
2 Program
3 Program
5 Data
6 Data
7 Data
8 Data
The CPU
Unit 1 Systems architecture, memory and storage
Program
ALU
Counter
General
Control
Purpose
Unit
Registers
The CPU
Unit 1 Systems architecture, memory and storage
instruction to be executed
• General Purpose Registers:
Hold data, such as numbers during General
Purpose
arithmetic calculations Registers
Some architectures have just a
single register called the
Accumulator
The CPU
Unit 1 Systems architecture, memory and storage
Program Counter
1
• The Program Counter points 2
to the next instruction that 3
needs to be executed Program 4
Counter
• It is located in the Control Unit 5 LDA 28
7 STO 10
incremented after fetching
8
an instruction
9
executed 12
The CPU
Unit 1 Systems architecture, memory and storage
Accumulator
• The accumulator is where
arithmetic and logic results are
temporarily stored much like
the M+ function on a calculator
• Without the accumulator, it
would be necessary to write
the result of each calculation to
main memory
• The accumulator speeds up the
storage and retrieval of
calculations
The CPU
Unit 1 Systems architecture, memory and storage
Main ALU
Memory Accumulator
X = 3 ADD X, Y 8
Y = 5
The CPU
Unit 1 Systems architecture, memory and storage
Memory registers
• With the von Neumann architecture, both the
instructions and the data are stored together in RAM
• Two registers are required to implement this:
MAR MDR
(Memory (Memory
Address Data
Register) Register)
The CPU
Unit 1 Systems architecture, memory and storage
MAR
(Memory
Address
Register)
The CPU
Unit 1 Systems architecture, memory and storage
MDR
(Memory
Data
Register)
The CPU
Unit 1 Systems architecture, memory and storage
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
Memory Data
Address
Register) Register)
The CPU
Unit 1 Systems architecture, memory and storage
Control Unit
• The control unit coordinates all
of the activities taking place
within the CPU
• Much like the conductor of an
orchestra
The CPU
Unit 1 Systems architecture, memory and storage
Processor registers
ALU: Temporarily
stores arithmetic
and logic results
PC: Points to
the next MDR: Stores
instruction the actual data
9
• The value in location 10 is
10 8
passed from main memory to
11
the MDR
12 • 8 is loaded into the accumulator
The CPU
Unit 1 Systems architecture, memory and storage
Example – Step 2
1 • PC now points to next
2 instruction in location 6
3
• Instruction is passed to
4
the CIR and the PC is
5 LDA 10 Program
Counter incremented
6 ADD #4
11
12
The CPU
Unit 1 Systems architecture, memory and storage
Example – Step 3
1 • PC points to the next
2 instruction in location 7
3
• Instruction is passed to
4
the CIR
5 LDA 10
Worksheet
• Complete Tasks 1-3 on the worksheet
The CPU
Unit 1 Systems architecture, memory and storage
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.