Registers in Computer Notes | Basic Computer Engineering | RGPV BTech First Year

Registers in Computer Notes | Basic Computer Engineering | RGPV BTech First Year


Registers in Computer

Registers Computer Architecture рдХрд╛ рдПрдХ рдорд╣рддреНрд╡рдкреВрд░реНрдг рднрд╛рдЧ рд╣реИрдВред Registers CPU рдХреЗ рдЕрдВрджрд░ рд╕реНрдерд┐рдд High-Speed Storage Locations рд╣реЛрддреЗ рд╣реИрдВ рдЬрд┐рдирдХрд╛ рдЙрдкрдпреЛрдЧ Data, Instructions рддрдерд╛ Addresses рдХреЛ Temporary рд░реВрдк рд╕реЗ Store рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред CPU рдХреА Speed рдХрд╛рдлреА рд╣рдж рддрдХ Registers рдХреА Efficiency рдкрд░ рдирд┐рд░реНрднрд░ рдХрд░рддреА рд╣реИред


Introduction

рдЬрдм CPU рдХрд┐рд╕реА Program рдХреЛ Execute рдХрд░рддрд╛ рд╣реИ рддрдм рдЙрд╕реЗ рдмрд╛рд░-рдмрд╛рд░ Data рддрдерд╛ Instructions рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрддреА рд╣реИред рдпрджрд┐ рдкреНрд░рддреНрдпреЗрдХ рдмрд╛рд░ Main Memory рд╕реЗ Data рдкреНрд░рд╛рдкреНрдд рдХрд┐рдпрд╛ рдЬрд╛рдП рддреЛ Processing Speed рдХрдо рд╣реЛ рдЬрд╛рдПрдЧреАред рдЗрд╕ рд╕рдорд╕реНрдпрд╛ рдХреЛ рджреВрд░ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП CPU рдХреЗ рдЕрдВрджрд░ Registers рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред

Registers Computer System рдХреА рд╕рдмрд╕реЗ Fast Memory рд╣реЛрддреА рд╣реИрдВред рдЗрдирдХреА Access Time Main Memory рддрдерд╛ Cache Memory рд╕реЗ рднреА рдХрдо рд╣реЛрддреА рд╣реИред


Definition of Registers

Registers CPU рдХреЗ рдЕрдВрджрд░ рд╕реНрдерд┐рдд рдЫреЛрдЯреЗ High-Speed Storage Units рд╣реЛрддреЗ рд╣реИрдВ рдЬреЛ Instructions, Data рддрдерд╛ Memory Addresses рдХреЛ Temporary рд░реВрдк рд╕реЗ Store рдХрд░рддреЗ рд╣реИрдВред

Registers = Fastest Storage Locations Inside CPU


Need of Registers

  • Fast Data Access
  • Temporary Storage
  • Instruction Execution
  • Address Management
  • CPU Performance Improvement
  • Reduced Memory Access Time

Characteristics of Registers

  • Located Inside CPU
  • Very High Speed
  • Small Storage Capacity
  • Temporary Data Storage
  • Direct Access by Processor
  • Used During Instruction Execution

Types of Registers

CPU рдореЗрдВ рд╡рд┐рднрд┐рдиреНрди рдкреНрд░рдХрд╛рд░ рдХреЗ Registers рд╣реЛрддреЗ рд╣реИрдВ рдЬрд┐рдирдХрд╛ рдЙрдкрдпреЛрдЧ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдХрд╛рд░реНрдпреЛрдВ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред

  1. Accumulator Register
  2. Program Counter (PC)
  3. Instruction Register (IR)
  4. Memory Address Register (MAR)
  5. Memory Data Register (MDR)
  6. General Purpose Register (GPR)
  7. Status Register
  8. Stack Pointer (SP)

1. Accumulator Register

Accumulator Register Arithmetic рддрдерд╛ Logical Operations рдХреЗ Intermediate Results рдХреЛ Store рдХрд░рддрд╛ рд╣реИред

рдЙрджрд╛рд╣рд░рдг:

A + B = Result тЖТ Accumulator


2. Program Counter (PC)

Program Counter рдЕрдЧрд▓реЗ Execute рд╣реЛрдиреЗ рд╡рд╛рд▓реЗ Instruction рдХрд╛ Address Store рдХрд░рддрд╛ рд╣реИред

Instruction Execute рд╣реЛрдиреЗ рдХреЗ рдмрд╛рдж Program Counter Automatically рдЕрдЧрд▓реЗ Address рдкрд░ Move рдХрд░рддрд╛ рд╣реИред


3. Instruction Register (IR)

Instruction Register рд╡рд░реНрддрдорд╛рди рдореЗрдВ Execute рд╣реЛ рд░рд╣реЗ Instruction рдХреЛ Store рдХрд░рддрд╛ рд╣реИред

Control Unit рдЗрд╕реА Register рд╕реЗ Instruction рдкреНрд░рд╛рдкреНрдд рдХрд░рдХреЗ Decode рдХрд░рддреА рд╣реИред


4. Memory Address Register (MAR)

MAR рдЙрд╕ Memory Location рдХрд╛ Address Store рдХрд░рддрд╛ рд╣реИ рдЬрд╣рд╛рдБ рд╕реЗ Data Read рдпрд╛ Write рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рд╣реИред

MAR тЖТ Memory Address


5. Memory Data Register (MDR)

MDR Memory рд╕реЗ рдЖрдиреЗ рд╡рд╛рд▓реЗ Data рдпрд╛ Memory рдореЗрдВ рдЬрд╛рдиреЗ рд╡рд╛рд▓реЗ Data рдХреЛ Temporary рд░реВрдк рд╕реЗ Store рдХрд░рддрд╛ рд╣реИред

MDR тЖТ Actual Data Storage


6. General Purpose Register (GPR)

General Purpose Registers рд╕рд╛рдорд╛рдиреНрдп Data Storage рддрдерд╛ Processing рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧ рдХрд┐рдП рдЬрд╛рддреЗ рд╣реИрдВред

рдпреЗ Registers Programmer рджреНрд╡рд╛рд░рд╛ Directly рдЙрдкрдпреЛрдЧ рдХрд┐рдП рдЬрд╛ рд╕рдХрддреЗ рд╣реИрдВред


7. Status Register

Status Register CPU Operation рдХреА Current Status Information рдХреЛ Store рдХрд░рддрд╛ рд╣реИред

  • Zero Flag
  • Carry Flag
  • Overflow Flag
  • Sign Flag

8. Stack Pointer (SP)

Stack Pointer Stack рдХреА Top Location рдХрд╛ Address Store рдХрд░рддрд╛ рд╣реИред

Function Calls рддрдерд╛ Interrupt Handling рдореЗрдВ рдЗрд╕рдХрд╛ рдЙрдкрдпреЛрдЧ рд╣реЛрддрд╛ рд╣реИред


Register Organization

Register Purpose
Accumulator Stores Intermediate Results
PC Stores Next Instruction Address
IR Stores Current Instruction
MAR Stores Memory Address
MDR Stores Memory Data
SP Stores Stack Address

Working of Registers

  1. Instruction Memory рд╕реЗ Fetch рд╣реЛрддрд╛ рд╣реИред
  2. Instruction IR рдореЗрдВ Store рд╣реЛрддрд╛ рд╣реИред
  3. Program Counter рдЕрдЧрд▓рд╛ Address Store рдХрд░рддрд╛ рд╣реИред
  4. Data MDR рдореЗрдВ Load рд╣реЛрддрд╛ рд╣реИред
  5. ALU Operation Perform рдХрд░рддрд╛ рд╣реИред
  6. Result Accumulator рдореЗрдВ Store рд╣реЛрддрд╛ рд╣реИред

Advantages of Registers

  • Fastest Data Access
  • Improved CPU Performance
  • Reduced Memory Access Time
  • Efficient Instruction Execution
  • Better System Speed

Limitations of Registers

  • Limited Storage Capacity
  • High Cost Per Bit
  • Only Temporary Storage
  • Cannot Replace Main Memory

Applications of Registers

  • Instruction Execution
  • Address Calculation
  • Arithmetic Operations
  • Logical Operations
  • Interrupt Handling
  • Program Control
  • Memory Access Operations

Registers vs Memory

Feature Registers Main Memory
Speed Very High Lower
Capacity Very Small Large
Location Inside CPU Outside CPU
Cost High Lower

Industrial Importance

  • Processor Design
  • Embedded Systems
  • Mobile Computing
  • Cloud Servers
  • Supercomputers
  • Artificial Intelligence Systems

Viva Questions

  1. What is a Register?
  2. Why are Registers used?
  3. What is Program Counter?
  4. What is Instruction Register?
  5. What is MAR?
  6. What is MDR?
  7. What is Accumulator?
  8. What is Stack Pointer?
  9. Why are Registers faster than Memory?
  10. What is Status Register?

Exam Oriented Important Questions

  1. Define Registers in Computer.
  2. Explain various types of Registers.
  3. Differentiate between MAR and MDR.
  4. Explain the role of Program Counter.
  5. Describe Instruction Register and Accumulator.
  6. Compare Registers and Main Memory.
  7. Explain Register Organization.

Conclusion

Registers CPU рдХреА рд╕рдмрд╕реЗ рдорд╣рддреНрд╡рдкреВрд░реНрдг рддрдерд╛ рд╕рдмрд╕реЗ рддреЗрдЬ Storage Units рд╣реЛрддреА рд╣реИрдВред рдпреЗ Instruction Execution, Data Storage рддрдерд╛ Address Management рдореЗрдВ рдорд╣рддреНрд╡рдкреВрд░реНрдг рднреВрдорд┐рдХрд╛ рдирд┐рднрд╛рддреА рд╣реИрдВред Computer Architecture рдХреЛ рд╕рдордЭрдиреЗ рдХреЗ рд▓рд┐рдП Registers рдХрд╛ рдЬреНрдЮрд╛рди рдЕрддреНрдпрдВрдд рдЖрд╡рд╢реНрдпрдХ рд╣реИред

Related Articles

Manipulators in C++ Notes | endl, setw, setprecision, setfill | Basic Computer Engineering | RGPV BTech First Year

0...

Read More тЖТ

Type Conversion in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Type Co...

Read More тЖТ

Assignment Operator in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Assignm...

Read More тЖТ

Copy Constructor in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Copy Co...

Read More тЖТ

this Pointer in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

this Po...

Read More тЖТ