Vous êtes sur la page 1sur 13

CPU

What is it?

The CPU
This is the 'brain' of the computer. It is where all the searching, sorting, calculating and decision making takes place.
The CPU collects all of the raw data from various input devices (such a keyboard or mouse) and converts it into useful information by carrying out software instructions.

The result of all that work is then sent to output devices such as monitors and printers.

The Techie bits!


The CPU is a microprocessor - a silicon chip - composed of tiny electrical switches called 'transistors'.
The speed at which the processor carries out its operations is measured in megahertz (MHz) or Gigahertz (GHz). The higher the number of MHz the faster the computer can process information.

A common CPU today runs at around 3 GHz or more.

Examples of CPU
The Intel Pentium processor and the Athlon are examples of a CPU.
Hard disks (hard drives), floppy disks, CDROMs, and tapes all provide long-term storage for data. These are excellent storage devices but can take a long time to access. These devices all spin physically, just think about how long it takes for a floppy disk to start working. The CPU works millions of times faster than the speed at which it could get information from these devices, so it needs something else. The answer to this problem is RAM and ROM.

CPU Parts!

You need to know the role of each part of the CPU

The Control Unit (CU)


The CU co-ordinates the work of the whole computer system.
It has three main jobs: 1. It controls the hardware attached to the system. The Control Unit monitors the hardware to make sure that the commands given to it by the current program are activated. 2. It controls the input and output of data, so all the signals go to the right place at the right time. 3. It controls the flow of data within the CPU.

The Immediate Access Store (IAS)


The Immediate Access Store (IAS) holds the data and programs 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 because Backing Store is much too slow to be able to run data and programs from directly. For example, lets pretend that a modern CPU was slowed down to carry out one instruction in 1 second, then the hard disk (ie Backing Store) would take 3 months to supply the data it needs! So the trick is to call in enough of the data and programs into fast Immediate Access Store memory so as to keep the CPU busy.

ALU stands for Arithmetic and Logic Unit.


It is where the computer processes data by either manipulating it or acting upon it. It has two parts: 1. Arithmetic part - does exactly what you think it should - it does the calculations on data such as 3 + 2. 2. Logic part - This section deals with carrying out logic and comparison operations on data. For example working out if one data value is bigger than another data value.

So how does the computer work?


Through BINARY using binary digits aka bit
However, this is FAR too small for a PC which deals with 8 bits at a timeaka byte A byte which represents data in the form of:
a number a character or string of characters a computer instruction part of a picture the address of a location in store

All written in 0s or 1s

Bytes

11100101 is a byte, 10000111 is also a byte,


or any other combination you can think of which contains 8 zeros and ones.

Why does all this matter? We often need to process words, so the computer must be able to store letters and other keyboard characters. This is done by making up a code. Each number represents a character.

ASCIIeasier than binary!


One common code is A=65, B = 66 and so on. This is called ASCII code or American Standard Code for Information Interchange. Each ASCII character occupies just one byte. The eight bit binary code or byte which represents the letter A is

10000010

ASCII
128 0 64 1
64

32 0

16 0
+

8 0

4 0

2 0

1 1
1 = 65 letter A

The 1 means the binary is switched on Now to your worksheetusing the byte & ASCII codes

RAM
RAM can store millions of bytes.
So of course all that information needs to be accessed by the CPU.

It does this through a method called, 'addressing'. Every location in RAM has a unique address.

Vous aimerez peut-être aussi