This module will cover:
For this topic, the specification states that you should know the following:
You are not required to know:
The purpose of the CPU is to interpret & process data, as well as interpreting, processing & executing instructions.
The CPU also controls the rest of the computer system.
The fetch-execute cycle (sometimes referred to as the fetch-decode-execute cycle) is a cycle followed by the CPU to process an instruction.
In its basic form, the cycle consists of three stages:
The CPU consists of many different components and registers, all with specific functions.
When the CPU executes instructions, it is often necessary to perform arithmetic calculations, or make logical decisions.
This is handled by the Arithmetic Logic Unit (the ALU)
The ALU performs:
The Control Unit controls how data moves around the CPU.
It provides these functions:
Cache is a small amount of high speed memory in the CPU.
It is quicker to transfer data to and from cache memory than to and from RAM.
Therefore, cache memory is used to temporarily hold data and instructions that the CPU is likely to need again.
More cache memory can result in increased performance.
Registers are also small amounts of high speed memory that are used by the CPU to store data to be processed.
Each register has a specific function and stores certain types of data.
They store things such as:
The registers are:
These will be explained in more detail in the Von Neumann Architecture section.
The Von Neumann Architecture is the stored program concept.
It is the idea that programs can be stored on the computer along with user data, allowing the functions of the program to be changed easily.
Without the Von Neumann Architecture, changing a program would involve modifying complex electrical wiring inside of the computer.
The main parts of the Von Neumann Architecture are:
The memory address register stores the address where instructions or data are to be fetched from, or the address where data is to be transferred to.
The memory data register stores the contents of the address in the MAR, or data to be transferred to primary memory.
The program counter stores the address of the next instruction to go through the fetch-execute cycle.
The accumulator stores the data being processed and the results from the arithmetic logic unit.
Hi! I'm Oliver, a Computer Science student in the UK. I created CourseNotes as a way to share my learning and knowledge with the world, and help other students to do their best in their exams.
I am currently studying Computer Science at GCSE level with the OCR exam board. All notes on this site will be exam board specific, but a lot of the concepts are similar across other exam boards.