Skip to main content

What is Central Processing Unit ?

Central Processing Unit

The processing unit or the Central Processing Unit is responsible for carrying out The processing job. The CPU is the 'brain' of the computer. It is where all the searching, sorting, calculating and decision making take place. The CPU is the control center for a computer. It guides, directs and controls a computer's performance.


The CPU is a single large scale semiconductor circuit chip and is also known as the microprocessor. It can be represented by a simple diagram as shown below






The processor is placed and secured into a compatible CPU socket found on the motherboard. Processors produce heat, so they are covered with a heat sink to keep them cool and running smoothly.





As you can see in the above picture, the chip are hundreds of connector pins that plug into each of the corresponding holes in the socket. Today, most CPU's resemble the picture shown above. However, Intel and AMD have also experimented with slot processors that were much larger and slid into a slot on the motherboard. Also, over the years, there have been dozens of different types of sockets on motherboards. Each socket only supports specific types of processors and each has its own pin layout.


CPU history

The CPU was first developed at Intel with the help of Ted Hoff and others in the early 1970's. The first processor released by Intel was the 4004 processor, shown in the picture to the right.




HOW a CPU works

The computer does its primary work in a part of the machine we cannot see, a control center that converts data input to information output. This control center, called the central processing unit (CPU), is a highly complex, extensive set of electronic circuitry that executes stored program instructions.


Broadly, a CPU has following three sub-units :


  • Arithmetic Logic Unit (ALU)
  • Register Unit (RU)
  • COntrol Unit(CU)

i. Arithmetic Logic Unit(ALU):


Arithmetic Logic Unit (ALU): A subunit within a computer's CENTRAL PROCESSING UNIT that performs mathematical operations such as addition, and logical shifts on the values held in the processors REGISTERS or its ACCUMULATOR.

The Arithmetic Logic Unitperforms arithmetic and logic operations. The arithmetic operation are addition(+),subtraction(-,) multiplication(x;* in computer),and division(/).The logic operations are comparision e.g. greater then (<),less then(>),greater then or equal(>=),less then or equal to (<=),equal(=), not equal<> etc.

So whenever an instruction contains an arithmetic or logic operator, the ALU will carry out that job for you.

For arithmetic operations the reasult of the arithmetic expression (e.g.5*4 reaults into 20) is stored in the memory. For logic operations, the logical result, which is either TRUE or FALSE, is stored in the memory.

The ALU has circuits to perform the basic arithmetic operation (add, subtract),logical operations. (and ,or, complement,exclusive-OR), register operations.(clear, shift,load ,move etc.), memory operations (store, read),program sequencing control operations (such as jump, conditional jump, jump to sumrouting) and input/output operations.




In addition,it usally has two registers Known as accumulator and temporary register. It also has a status register which typically has bits which are to 1 to indicate the reaults of ALU operations. The status bit are.

1. Negative result
2. Zero result
3. Overflow of result
4. Carry
5. Parity

Interrupt mask bits to enable interrupt from I/O devices. Fig. 2.6 givens the structure of microprocessor and its connection.

register Unit

This unit content several register meant for housing data during executing of any operations. Register act like a temporary data store. The data may either be stored in a register or may be called whenever required, by executing different commands. For the purpose of identification separate names are given to the registers. Some of the registers can be used by user with help of appropriate commonds and instructions.

The time required to retrieve data from registers and to store results in them is at east four times faster than that required to retrive and store data in the RAM. Thus some working registers are provided in the CPU store temporarily intermediate result obtained during computation. besides these, are two other registers Known as PC (program counter) and SP is a register which holds the address of the first location (also known as the top location) of the stack.

The number of working registers in the CPU has to be kept small as they should be addressable. As was pointed uot, the main memory in CPU,i.e. cache memory is used in the CPU to alleviate the speed mismach. The normal size of instruction and data caches are around 32KB each.

Control Unit:


As CPU referes to central processing unit of a system of which, The ALU is responsible for calculations and comparisions. And the control unit is the one which controls the entire processing. Actually, the necessory timing and control signals required for execution of any operation is also decided by this unit.


In other words, the entire processing is monitored and controlled by the control unit. Whenever an input reaches into memory, the control unit determines what type of instruction it is. And accordingly it (the control unit) instructs the ALU, or input/output devices. To understand the functioning of control unit, consider the following set of Instructions:

1. Read value A
2. Read value B
3. If A > B then
4. Set C = A * B
5. Print C
6. Otherwise
7. Set C = A - B
8. Print C
9. End

Comments

Popular posts from this blog

Blogger Welcome to Education Blog Education is the act of learning things around us. It helps us to easily understand and deal with any problem and makes balance throughout the whole life in every aspect. Education is the first and foremost rights of every human being. Without education we are incomplete and our lives are useless. Education helps us to set a goal and go ahead by working on that throughout the life. It improves our knowledge, skill, confidence level and personality. It empowers us intellectually to interact with others in our life. Education brings maturity and teaches us to live in society with changing environment. It is the way to social development, economic growth and technological development.Education plays a great role in everyone’s life by building personality, improving knowledge and skill and providing feeling of well being of a person. Education has been divided into three categories in our country as Primary education, Secondary education and Highe...
Inspirational Quotes on Education School may have been – or may currently be – boring, a killer of creativity or downright awful for you. But education is still important because it opens the mind and expands it. And if your years in school were bad or boring you can still educate yourself now. So in this post I’d like to share 54 timeless, thought-provoking and inspiring quotes on education. “It is impossible for a man to learn what he thinks he already knows.”                         Mark Zuckerberg. In this success story, we are going to share Mark Zuckerberg biography, the youngest billionaire on the planet who created the Facebook social network that now has 1 billion monthly active users. Thanks to Facebook people around the world can easily keep in touch with all their friends. Not long ago, society just did not have such opportunity, but now...

Use of statement in python

Use of statement of Python: Use of if – else statement:-if – else is the variation of if statement. We attach condition with if statement if given condition is true then if block code will executed and if the given condition is false then else block code will executed. The syntax of if – else statement is given below:- if condition: Statement 1 Statement 2 else: Statement 3 Statement 4 Write a program in python to check the given number is even or odd. n=input(“Enter a number : ”) if n%2==0: print “The number ”,n,”is even” else: print “The number”,n,”is odd” Use of if-else ladder:- In Python language the switch statement is not worked. In Python we use if-else ladder in spite of using switch. The syntax of if-else ladder is given below:- if condition1: Statement 1 elif condition 2: Statement 2 elif condition 3: Statement 3 >br> else: Statement 4 Write a program in python to find greatest number in three numbers. a=input(“Enter firs...