3.1 Computer Architecture
3.1 Computer Architecture
Page 1 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Step Example
Process If the instruction being executed is ADD, the inputted value is added to an existing value
Output The result of the calculation is outputted to the user via the monitor
Page 2 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
A diagram showing the input, process, output sequence followed by computer systems
Your notes
Page 3 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Registers
Extremely small, extremely fast memory located in the CPU
Hold small amounts of data needed as part of the fetch-execute cycle
Each register has its own specific purpose
It consists of 5 main registers
The Program Counter (PC)
The Memory Address Register (MAR)
The Memory Data Register (MDR)
The Accumulator (ACC)
Current Instruction Register (CIR)
For each of the registers you must know
The name of the register
Its acronym
The purpose of the register
Page 5 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Your notes
Memory Address MAR Holds the memory address of where data or instructions are
Registers to be fetched from memory
Memory Data Register MDR Stores the data or instruction which has been fetched from
memory
Current Instruction CIR Stores the instruction the CPU is currently decoding or
Register executing
Accumulator ACC Stores the results of any calculations that have taken place in
the Arithmetic Logic Unit (ALU)
Buses
Components within the CPU and wider computer system are connected by buses
A bus is a set of parallel wires through which data/signals are transmitted from one component to
another
There are 3 types of bus:
Address - unidirectional, carries location data (addresses), data is written to/read from
Data - bidirectional, carries data or instructions
Control - bidirectional, carries commands and control signals to tell components when they
should be receiving reads or writes etc..
Page 6 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Your notes
EXAM TIP
If asked to describe the purpose of the PC, MAR or the MDR make sure you explain how the data is
being fetched or written to memory
WORKED EXAMPLE
Describe the role of the control unit, the control bus, the data bus and the address bus when
fetching an instruction from memory [4]
Answer
The address of memory (holding instruction) is placed on the address bus (1)
The control unit sends a signal (1) on the control bus (to start a read operation) (1)
The instruction is/the contents of the memory are placed on the data bus (1)
Page 7 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Page 8 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
During the fetch stage of the cycle, the program counter holds the address of the next instruction to
be fetched from memory
The address of the next instruction or data to be fetched is copied into the memory address register
(MAR)
The address of the instruction or data is then sent along the address bus and awaits a signal from the
control bus
The signal sent along the control bus is sent from the control unit (CU) to the main memory
The data or instructions received from main memory is fetched to the memory data register (MDR) via
the data bus
A copy of the instruction or data is stored in the current instruction register (CIR)
The program counter (PC) increments by 1 so it is pointing to the next instruction to be executed
Decode stage
During the decode stage of the cycle, the CPU needs to work out what is required from the
instruction
This is done as the instruction is split into two parts:
Opcode - what the instruction is
Operand - what to do it to
This could be either data or an address where the data is stored
Execute stage
During the execute stage of the cycle, the CPU will carry out the instruction that was fetched
Some examples that would take place at this stage are
Performing a calculation
Storing a result or data back in main memory (RAM)
Going to main memory to fetch data from a different location
Page 9 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
EXAM TIP
Make sure you read the question carefully and look at the number of marks allocated to judge the
level of detail required. Often questions on the fetch-decode-execute cycle only require you to
describe the steps rather than explain how the registers and buses are used during each step
WORKED EXAMPLE
Explain how an instruction is fetched using Von Neumann architecture
[6]
Answer
The Program Counter (PC) holds the address/location of the next instruction to be fetched [1]
The address held in the PC is sent to the Memory Address Register (MAR) [1]
The memory address is sent using the address bus [1]
The Program Counter is incremented [1]
The instruction is sent from the address in memory to the Memory Data Register (MDR) [1]
The instruction is transferred using the data bus [1]
The instruction is sent to the Current Instruction Register (CIR) [1]
Page 10 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Page 11 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Number of cores
A core works like it is its own CPU
Multiple core processors mean they have multiple separate processing units that can fetch, decode
and execute instructions at the same time
For example, a dual-core processor would have 2 processing units, each with their own
Control Unit (CU)
Arithmetic Logic Unit (ALU)
Accumulator (ACC)
Registers
Multi-core processors can run more powerful programs with greater ease
Multiple cores increase the performance of the CPU by working with the clock speed
Example: A quad-core CPU (4 cores), running at a clock speed of 3Ghz
4 cores x 3GHz
4 x 3 billion instructions
12 billion instructions per second
Page 12 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Your notes
WORKED EXAMPLE
One computer has a single core processor and the other has a dual core processor.
Explain why having a dual core processor might improve the performance of the computer
[2]
Answer
Any 2 from:
The computer with the dual core processor has two cores/double the amount of cores [1]
Parallel processing can take place [1]
Each core can execute a separate instruction at the same time [1]
Each core can process instructions independently of each other [1]
Page 13 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Add ADD 10100001 Adds a value to the value currently stored in the accumulator
(ACC)
Subtract SUB 00100010 Subtract a value from the values stored in the accumulator
Load LDA 10111111 Load the value stored in a memory location into the
accumulator
Store STA 01100000 Store the value in the accumulator in a specific location in
memory
Page 14 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
A program created using one computer’s instruction set would not run on a computer containing a
processor made by a different manufacturer
Your notes
For example, a computer program created using Intel’s instruction set would not run on a device
containing an ARM processor
WORKED EXAMPLE
Using the instruction set in the table above what would be the operation if the instruction was
00100010 00000010?
[1]
Answer
Either of:
The operation would be SUB [1]
If the operand was raw data the complete instruction would be to subtract 2 from the value in
the accumulator [1]
Page 15 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Embedded Systems
Your notes
Embedded Systems
What is an embedded system?
An embedded system is a computer system which is used to perform a dedicated function, inside a
larger mechanical unit
Examples of embedded systems include
Heating thermostats
Hospital equipment
Washing machines
Dishwashers
Coffee machines
Satellite navigation systems
Factory equipment
Security systems
Traffic lights
Page 16 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Your notes
EXAM TIP
Always use key examples from the list above and don’t try to use different examples such as a fridge
or kettle as these will not appear on mark schemes because although they have a single purpose,
most fridges and kettles do not have a CPU.
WORKED EXAMPLE
1) Tick two boxes below to show which are an example of an embedded system
[2]
Laptop
Page 17 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers
Head to www.savemyexams.com for more awesome resources
Washing Machine
Laptop
Washing Machine ✓
Mobile Phone
Page 18 of 18
© 2015-2024 Save My Exams, Ltd. · Revision Notes, Topic Questions, Past Papers