IF Corner Blog mahasiswa Universitas Brawijaya

17Oct/10Off

What is CPU?

If you’re in the market for a new computer, it’s necessary to understand the function of a Control Processing Unit(CPU). Also known as the Central Processing Unit or processor, the CPU is essentially the “brains” of your computer. Without the CPU, you wouldn’t be able to play games, type research papers, or surf the Internet. Your computer would basically be a very expensive paperweight.

Sometimes people mistakenly believe the case or chassis of a computer is the CPU. However, a CPU is an internal component of the computer. You can’t see it from the outside of the system; you’d have to peek inside and remove both the CPU heatsink and fan to get a good look.

The first CPUs were used in the early 1960s. They were custom designed as part of a larger computer, making them prohibitively expensive. Once engineers figured out how to mass produce the CPU, personal computers became more affordable for the average American. With the introduction of the integrated circuit in the late 1970s, it became possible for smaller CPUs to be manufactured as well. This helped transform computers from large, bulky devices that took up entire rooms to more manageable desktop and laptop models.

CPU is responsible for handling all instructions and calculation it receives from other hardware components in the computer and software programs running on the computer.

Below is an important component of the CPU.

Control Unit
The control unit is a part of the processor that be able to regulate the course of the program. This component is present in all CPU. CPU charge of controlling a computer so that synchronization occurs between the components work in carrying out operations functions. Included in the control unit is the responsibility of taking instructions-instructions from main memory and determine the type of instruction. If there are instructions for arithmetic or logic comparison, the control unit will send instructions to the ALU (Aritmathic Logic Unit). Results of processing data carried by the control unit to the main memory again to be saved, and in time will be presented to the output device. Thus the task of the control unit are:

  • Regulate and control the means of input and output
  • Taking instructions from main memory
  • Retrieve data from main memory (if needed) for processing
  • Send the instruction to the ALU if any arithmetic or logical comparisons
  • Overseeing the work of the ALU
  • Save the results of the process to the main memory

Register
Register is a small storage devices that have high enough access speed, which is used to store data and instructions that are processed. This memory is temporary, usually used to store data if or when the data for further processing. If the analogy, these registers can be likened to a memory in the brain when we do data processing manually, so the brain can be likened to a CPU, which contains the memories, the control unit that regulates all activities of the body and have a place to perform calculations and logical comparisons.

Aritmathic Logic Unit(ALU)
ALU is a part of the CPU assigned to perform arithmetic operations and logic operations defined by instructions. ALU often called machine language for this section ALU consists of two parts, the units of arithmetic and boolean logic units, each of which has its own task specification. The main task of the ALU is to perform all arithmetic calculations (math), which occurs in accordance with the instructions of the program. ALU perform all arithmetic operations on the basis of the sum so that the electronic circuitry used is called adder.

How CPU Work?
When data and processing-instruction is inserted into the devices, once placed first in the RAM (via Input-storage), if the instruction form fit to the Control Unit in-storage program, but if the form of data accommodated in the Working-storage). If the register is ready to accept work on execution, then the Control Unit would take instructions from the program-storage be submitted to the Instruction Register, while the memory address that contains the instructions are stored in the Program Counter. While the data taken by the Control Unit of Working-storage to be accommodated in General-purpose registers (in this case on Operand-register). If the workmanship is done based instruction is arithmatika and logic, the ALU will take over the operation to do based instruction set. The result is stored in the Accumulator. If the result of processing has been completed, the Control Unit will retrieve the results of processing in the accumulator to fit back into the working-storage. If progress overall has been completed, the Control Unit will pick up the processing of the Working-storage to fit into the Output-storage. Then the rest of Output-storage, processing results will be displayed to the output devices.