NTA UGC NET 2023 » NTA Study Materials » Computer Science » Central Processing Unit

Central Processing Unit

This article aims at explaining the various functions of the central processing unit and its components.

Definition: The Central Processing Unit (CPU) is the brain of a computer. It is the part of a computer that performs the instructions of a computer program by performing the basic operations such as addition, subtraction, and operations on data in memory. It interprets and executes instructions from a computer program to perform tasks such as controlling input/output devices, running applications, and handling data.

A CPU consists of two parts:

– The Control Unit directs and manages operation sequences.

– The Arithmetic Logic Unit carries out arithmetic and logical operations.

A CPU comprises four components: a control unit, an arithmetic logic unit, registers, and memory.

The control unit tells the other parts how to perform operations. The arithmetic logic unit performs mathematical operations on data in the registers. The registers hold data that needs to be processed by the CPU while working on the ALU. Memory stores programs and data to be accessed quickly by the CPU.

Components of a CPU and their functions: A Central Processing Unit (CPU) is the hardware within a computer that carries out the instructions and manipulates the data of a program. It consists of various components, such as Read-Only Memory, Arithmetic and Logic Unit, Floating Point Unit, Cache Memory, etc.

Central processing units vary from low-power devices like mobile phones to robust systems like supercomputers. 

There are many different processors with different speeds, capacity for multitasking, and power consumption. Over time, they have become trendy with the rise in computers, from small personal devices to large workstations used for computationally intensive applications.

The CPU is responsible for all critical tasks, such as processing data and instructions in a computer system. However, all this is possible only for the components present in the CPU to divide the work between them and process it quickly to achieve the desired result. 

1. Control unit (CU) 

Control units control how a computer’s input and output devices, arithmetic and logical units, and memory respond to instructions sent to the CPU. It takes the input, converts it to a decoded format, and then sends it to the computer’s processor for processing, where it performs the desired operation. There are two types of control units: hard-wired CU and micro-programmable CU. 

Function: 

  • It controls the order in which instructions enter and leave the processor and how the instructions are executed
  • It is responsible for taking the input, converting it into a signal, and storing it for further processing
  • It controls the functionality of other CPU components, such as ALUs and registers 

2. Arithmetic Logic Unit (ALU) 

Arithmetic logic units are responsible for arithmetic logic calculations and decisions in the system. This is also known as the mathematical brain of a computer. The ALU uses registers for calculations. It takes input from an input register, operates on the data, and stores the output in an output register. ALU 

Function: 

  • This is mainly used to make decisions
  • Performs arithmetic and logical operations
  • It acts as a bridge between your computer’s primary and secondary storage. All information exchanged between primary and secondary storage goes through the ALU

3. Register: 

Registers are part of the computer’s memory and temporarily store instructions to provide instructions to the processor when needed. These registers are also called processor registers because they play an essential role in processing data. These registers store data in the form of a memory address and, after processing the instruction that exists at that memory address, store the memory address of the next instruction. Different types of registers perform different functions. 

Function: 

  • Input registers are used to transfer inputs
  • The output register is used to transfer the output
  • Temporary registers store data temporarily
  • The address register stores the address in memory 
  • The program counter stores the address of the instruction
  • Data registers hold memory operands
  • The command register contains the command code

4. Cache :

 A cache is a random access memory that temporarily stores a small amount of data and instructions that can be reused when needed. Instructions can be fetched directly from the cache quickly instead of fetching them from RAM, reducing the time it takes to fetch instructions. 

Functions:

  •  These reduce the time it takes to fetch and execute statements
  •  Temporarily save the data for later use

5. Bus:

 Buses are connections between various components of a computer system and processors. These are used to send signals and data from the processor to various devices and vice versa. There are three types of buses. 

Functions:

  • Processes use the address bus to send memory addresses to other components
  • The processor uses the data bus to send the actual data to the component, and the processor uses the control bus to send control signals to other devices
  • Used to exchange data between different devices
  • Powers various components of the system
  1. Clock: As the name implies, the clock controls the timing and speed of the functions of various CPU components. It emits an electrical signal that adjusts the timing and speed of the function. 

Functions:

  •  Keeps computer system components in sync
  • Keep track of the current date and time

Conclusion

 These six major CPU components make the smooth processing of data in a computer system possible.

A CPU is one of the fundamental components of a computer, and its primary role is to interpret and execute the program code. The components that make up the CPU are

  • a few hundred billion transistors
  • millions of logic gates
  • millions of resistors

that can all be managed by a single processor.

A Central Processing Unit (CPU) function is to read data, interpret the code in the program or procedure, and then output the result. The CPU maintains its own memory space to store data from programs and other processes that are running simultaneously as it is processing other tasks. The term “Central Processing Unit” or “CPU” refers to both the device and its software.

faq

Frequently asked questions

Get answers to the most common queries related to the NTA Examination Preparation.

What does CPU stand for?

Ans : CPU stands for Central Processing Unit.

What are the primary functions of a CPU?

Ans : The primary function of the CPU is to control the input...Read full

What are the major components of the CPU?

Ans : There are six maj...Read full

What is RAM?

Ans : RAM stands for Random Access Memory. It is a short-term...Read full