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 рд╣реЛрддреЗ рд╣реИрдВ рдЬрд┐рдирдХрд╛ рдЙрдкрдпреЛрдЧ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдХрд╛рд░реНрдпреЛрдВ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред
- Accumulator Register
- Program Counter (PC)
- Instruction Register (IR)
- Memory Address Register (MAR)
- Memory Data Register (MDR)
- General Purpose Register (GPR)
- Status Register
- 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
- Instruction Memory рд╕реЗ Fetch рд╣реЛрддрд╛ рд╣реИред
- Instruction IR рдореЗрдВ Store рд╣реЛрддрд╛ рд╣реИред
- Program Counter рдЕрдЧрд▓рд╛ Address Store рдХрд░рддрд╛ рд╣реИред
- Data MDR рдореЗрдВ Load рд╣реЛрддрд╛ рд╣реИред
- ALU Operation Perform рдХрд░рддрд╛ рд╣реИред
- 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
- What is a Register?
- Why are Registers used?
- What is Program Counter?
- What is Instruction Register?
- What is MAR?
- What is MDR?
- What is Accumulator?
- What is Stack Pointer?
- Why are Registers faster than Memory?
- What is Status Register?
Exam Oriented Important Questions
- Define Registers in Computer.
- Explain various types of Registers.
- Differentiate between MAR and MDR.
- Explain the role of Program Counter.
- Describe Instruction Register and Accumulator.
- Compare Registers and Main Memory.
- 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 тЖТ