Home » Computer Science Organization

Central Processing Unit (CPU) | Computer Science Organization



In this article, we will learn about the central processing unit with its subunits and registers.
Submitted by Shivangi Jain, on August 03, 2018

Central Processing Unit (CPU)

  • The CPU is the brain of the computer system. It works as an administrator of a system.
  • All the operations within the system are supervised and controlled by the CPU. It interprets and coordinates the instructions.
  • The data and the instructions are temporarily stored in its memory unit. After performing operations, the result of operations can be stored in this memory unit.
  • CPU

  • The results of the operations are sent towards the output unit for the user.
  • Thus, the CPU controls all internal and external devices, perform arithmetic and logical operations, controls memory usage and control the sequence of operations.
  • For performing all these operations, the CPU has three subunits:
    • Arithmetic and logic unit (ALU)
    • Control unit
    • Memory unit (CPU registers)

Arithmetic and Logic Unit (ALU)

  • Arithmetic and logic unit is the subunit of the central processing unit as it is given above.
  • It performs arithmetic operations like addition, subtraction, and logic operations like OR, AND, invert, exclusive – OR on binary words. The data stored in the memory unit is transferred to ALU. The ALU performs the operations that are the data is processed and the result is stored in an internal memory unit of the CPU. The result of a final operation is transferred from the memory unit to an output unit.
  • Arithmetic and logic operations performed by ALU sets flags to represent certain conditions such as equal to condition, zero condition, greater than the condition and so on. These conditions are checked by program instructions to change the sequence of program executions.

Control Unit

  • The control unit controls all the operations which internally take place within the CPU and also the operations of CPU related to input / output devices. The control unit directs the overall functioning of a computer system.
  • This unit also checks the correctness of sequence of operations. It fetches instructions in a program from the primary storage unit, interprets them and generates control signals to ensure correct execution of the program. The control signals generated by the control unit direct the overall functioning of the other units of the computer.

CPU Registers

  • A register is a group of flip-flops which can be used to store a word. It is a high-speed temporary storage space for holding data, addresses, and instructions during processing the instructions. Registers are not referenced by their addresses, however, they are directly accessed.
  • To perform execution of the instructions, the processor contains a number of registers used for temporary storage of data and some special function registers.
  • The special function registers include Program Counter (PC), Instruction Register (IR), Memory Address Register (MAR), and Memory Data Register (MDR).
CPU Registers in CSO

Program Counter (PC)

  • A program is a series of instruction stored in the memory. These instructions tell the CPU exactly how to get the desired result.
  • It is important that these instructions must be executed in a proper order to get the correct result.
  • The sequence of instructions executions is monitored by the program counter.
  • It keeps track of which instruction is being executed and what the next instruction will be.

Instruction Register (IR)

  • It is used to hold the instruction that is currently being executed.
  • The contents of IR are available to the control unit, which generate the timing signals that control the various processing elements involved in executing the instruction.

Memory Address Register (MAR) and Memory Data Register (MDR)

  • These registers are used to handle the data transfer between the main memory and the processor.
  • The MAR holds the address of the main memory to or from which the data is to be transferred.
  • The MDR sometimes also called MBR (Memory Buffer Register) contains the data to be written into or read from the addressed word of the main memory.

References:






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Quick links
Latest articles, Internship, Members
New...
Coding problems, Algorithms, Discrete Mathematics, Big data
Languages
C, C++, C++ STL, Java, Data Structure, C#.Net, Android, Kotlin, SQL
Web
PHP, Python, JavaScript, CSS, Ajax, Node.js, Web prog.
Programs
C, C++, DS, Java, C#, Python
Aptitude
C, C++, Java, DBMS
Interview
C, Embedded C, Java, SEO, HR
CS Subjects
CS Basics O.S. Networks DBMS Embedded Systems Cloud Computing Machine learning CS Organizations Linux DOS
More...
Articles, Puzzles, News/Updates


Recommended posts
C Tips & Tricks, C++ Tips & Tricks
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distros of 2018
C programming optimization techniques
Differences b/w C & Embedded C?
Embedded C Interview Q. & A.
C programming tips for Embedded Development
Basic rules of writing a C program
Important points (rules) to remember while writing C/C++ program
Top 5 Websites for solving programming challenges
Read more...


Others...
Computer G.K. (MCQ)
Most viewed pages...
Categories...



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.