CPU

?

The CPU

The CPU is often known as the brain of the computer. it processes data and is where all the sorting, calculating and decision making is done.The CPU deals with all of the data and processing required to make tasks such as Checking emails or writing an essay possible.

The Fetch Decode Execute Cycle

The Fetch Decode Execute Cycle is the process that makes all this stuff possible. These are the main things that you need to remember.

Fetch

The CPU fetchs data and instructions from the main memory and then stores it in its internal memory areas (these are temporary). These are called registers. The CPU makes use of a vital hardware pass called the "Addess Bus". The CPU Places the addresses of the next item to be fetched on the address bus

1 of 9

Fetch Decode Execute continued

2 of 5

The Fetch Decode Execute Cycle Cont.

Fetch Cont:

Data from this address then moves main memory into the CPU by travelling along another hardware path called the "Data Bus".

Decode:

The next step is for the CPU to make sense of the instruction it has just fetched. This process is called "Decode".

The CPU is designed to understand a specific set of commands. these are called the "Instruction Set" of the CPU. Each make of the CPU has a different "Instruction Set". The CPU Decodes the instruction and prepares various areas within the chip in readiness of the next step

2 of 9

The Control Unit

TheThree Main parts of a CPU are:

  • Control Unit
  • Immediate Access Store (IAS)
  • Arithmetic And Logic Unit (ALU) 

The control unit has three main jobs:

1. It controls and monitors the hardware attached to the system to make sure that the commands given to it by the application software are used. For example, if you send something to print, the control unit will check that the instructions are sent to the printer.

2. It controls the input and output of data so that the signals go to the right place at the right time.

3. It controls the flow of data within the CPU - which is the "Fetch Execute Cycle". 

3 of 9

The Immediate Access Store (IAS)

The IAS holds the data and progras needed at that instant by the control unit. The CPU reads data and programs kept on the backing storage and stores them temporarily in the IAS's memory. 

The CPU needs to do this becasue backing storage (the hard disk) is too slow to be able to run applications directly. Data and programs are first loaded into the main memory and then the CPU fetches the part it needs and loads it into the internal registers as part of the "Fetch Execute Cycle".

4 of 9

The Aritmetic And Logic Unit (ALU)

This is where the computer processes data either by manipulating it or acting upon it. it consists of two main parts:

1. Aritmetic Part

This performs the calculations on the data E.g. 3+2 = 5

2. Logic Part

This deals with logic and comparisions. for example, it works out if one value is greater, less or equal to another.

5 of 9

Clock Speed

Computers can only do one thing at a time. It may appear that many things are happening simultaneously, for example you may be listening to music while writing an essay and also downloading some software in the background.

In reality, the computer can only process one instruction at a time. It is just that the machine is so fast, everything seems to happen at once.

A CPU processes digital data by taking each piece of data one-at-a-time and doing something with it. The amount of time that it has to process each piece of data is controlled by a quartz clock inside the CPU.

With every tick of the clock, the CPU is able to process one piece of data or execute one instruction.

The CPU clock speed is measured in cycles per second. 1 cycle per second is also known as 1 Hertz.

Clock speed higher Clock speed lower faster performance but runs hotter and consumes more power. lower performance, less costly, needs less power - so good for battery life in laptops.

6 of 9

Clock speed continued

Thus, if you wish to improve the performance of a computer, you could select a machine that has a faster CPU

Some people try to get the most extreme performance out of their existing CPU. They do this by 'overclocking'. This means they adjust the clock to run faster than the CPU was really designed for. However, this makes the CPU run hotter and so extra cooling fans also have to be purchased.

7 of 9

Number of cores

If the clock cannot be sped up any more for technical reasons. A sensible way forward is to use two CPUs at the same time. The job in hand is shared between the two CPUs.

by having more than one processor, you would certainly see an improved performance. however it will not double the performance. 

A modern processing device may contain two or even four CPUs. Some chip-making companies call these CPUs 'cores'. So a dual-core device means it contains two CPUs and a quad-core contains four.

8 of 9

The Cache

The cache is a special type of computer memory which can be accessed much faster than RAM. The CPU looks in the cache for the data it needs. If the data is there, it will retrieve it and process it. If the data is not there, then the CPU accesses the system memory and then puts a copy of the new data in the cache before processing it.

Cache memory is volatile i.e. when the computer is shut down, the data stored there is lost.

Thus, in order to improve the computer's performance, it is important to keep the local cache full at all times so that the CPU doesn't have to wait around with nothing to do.

The larger the cache size, the better the performance because you are able to store more data locally.

9 of 9

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Hardware resources »