Skip to content
TheCScience
TheCScience

Everything About Education

  • Pages
    • About US
    • Contact US
    • Privacy Policy
    • DMCA
  • Human values
  • NCERT SOLUTIONS
    • Class 12
    • Class 11
  • HackerRank solutions
    • HackerRank Algorithms Problems Solutions
    • HackerRank C solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
TheCScience
TheCScience

Everything About Education

Central Processing Unit (CPU) | Computer Architecture

YASH PAL, October 9, 2025November 8, 2025

CPU in Computer Architecture – The central processing unit (CPU) is an unit of a compute system which performs a variety of function given by the instructions. Those are incorporated in the computer. The central processing unit perform the bulk of data processing operations in the computer. It is made up of three major parts:

  1. Arithmetic Logic Unit (ALU)
  2. Register Array
  3. Control Unit

The ALU performs the required micro operations for executing an instruction. The register array stores the immediate data used during the execution of the given instruction. The control units is responsible to supervise the timing of information transfer between registers and ALU.

Arithmetic Logic Unit (ALU)

The ALU provides arithmetic and logic operations dictated by the incorporated instruction. In addition, the CPU can also be needed by the shift operations, the shifter circuit may be placed in the input of the ALU. In some cases shift operations are included with ALU.

Now this unit is named as arithmetic logic shift unit. The arithmetic, logic and shift circuits are introduced in pervious sections. There circuits are combined into one ALU with common section variables. One stage of an arithmetic logic shift units is shown in below figure. The subscript i designates a typical stage.

Arithmetic logic unit in central processing unit
Arithmetic Logic Unit

The inputs Ai and Bi are connected to both the arithmetic and logic circuits. An operation is selected by the selection lines S1 and S0. A 4:1 multiplexer at the output chooses between an arithmetic output, a logic output, previous input Ai-1, and next input Ai+1.

Two selection lines S2 and S3 are used to select the particular input at output of multiplexer. The circuit of Tri-state buffer based bus architecture must be repeated n times for an n-bit ALU. The function table for arithmetic logic shift unit is given in below table.

Selection
Line S3
Selection
Line S2
Selection
Line S1
Selection
Line S0
Carry
(Cin)
Register Transfer
(RTL)
Micro Operation
00000F ← ATransfer A
00001F ← A+1Increment A
00010F ← A+BAddition
00011F ← A+B+1Addition with carry
00100F ← A+BSubtraction with borrow
00101F ← A+B+1Subtraction
00110F ← A-1Decrement A
00111F ← A Transfer A
0100xF ← A ∧ BAND
0101xF ← A ∨ BOR
0110xF ← A ⊕ BEx-OR
0111xF ← AComplement A
10xxxF ← shr AShift right A
11xxxF ← shl AShift left A

Register Array

The central processing unit needs the memory locations for storing pointers, counters, returning addresses, temporary and partial results. For such applications, referring to the main memory is time consuming. It is more convenient and more efficient to store these intermediate values in processor itself.

This necessity develops the concepts of register array in CPU. A large number of registers are included in CPU. It is not efficient to connect them through a common bus. The registers communicate with each other not only for direct data transfer, but also to perform various micro operations.

Control Unit

Control unit of CPU controls the data flow through the register and ALU by selecting the various components in the system. There are two types of control units:

  1. Hard wired control unit
  2. Micro programmed control unit

In the hard wired control unit, the control logic is implemented with gates, flip flops, decoders, and other digital circuits. The hard wired control unit can produce a fast mode of operation. It is the major advantage of this type of control unit. The limitation of this control unit is that as the name implies, it requires changes in the wiring among the various components if the design has to be modified.

In micro programmed control unit the control information is stored in control memory. The control memory is programmed to initiate the required sequence of micro operations. In micro programmed control unit, any required changes or modification can be done by updating the micro program in control memory.

Related questions and answers

What are major parts of a central processing unit (CPU)?

The central processing unit is made up of three major parts:
(i) Arithmetic Logic Unit (ALU)
(ii) Register Array
(iii) Control Unit

Define computer organization.

The computer organization is defined by its internal registers, the timing and control structure and the set of instructions that it uses. These components are interconnected in some fashion to achieve the basic function of computer.

Computer System Architecture engineering subjects Computer System Architectureengineering subjects

Post navigation

Previous post
Next post
©2025 TheCScience | WordPress Theme by SuperbThemes