CPU Concepts: Registers and Buses

The internal parts of a CPU that carry out and coordinate every instruction.

CPU Concepts: Registers and Buses

Central Processing Unit (CPU) computer का मुख्य processing unit है। यह instructions को execute करता है, data पर operations करता है और computer के विभिन्न components के बीच coordination स्थापित करता है। CPU के अंदर Registers बहुत तेज temporary storage प्रदान करते हैं, जबकि Buses CPU, memory और अन्य components के बीच data, addresses और control signals के communication में सहायता करते हैं।

CPU Concepts: CPU → Registers + ALU + Control Unit + Buses के माध्यम से data और instructions को process करता है।

What is CPU?

CPU का पूरा नाम Central Processing Unit है। इसे computer का brain (मस्तिष्क) कहा जाता है क्योंकि यह program instructions को execute करता है और विभिन्न processing operations को control करता है।

जब कोई program run किया जाता है, तो CPU memory से instructions प्राप्त करता है, उन्हें interpret करता है और आवश्यक operation perform करता है।

Main Functions of CPU

CPU के प्रमुख functions निम्नलिखित हैं:

  • Instructions को fetch करना
  • Instructions को decode करना
  • Instructions को execute करना
  • Arithmetic और logical operations करना
  • Data को temporarily store करना
  • Computer के विभिन्न components के बीच operations को coordinate करना

Main Components of CPU

CPU के प्रमुख components हैं:

  1. Arithmetic Logic Unit (ALU)
  2. Control Unit (CU)
  3. Registers
Component Main Function
ALU Arithmetic और logical operations करना
Control Unit Instructions और operations को control करना
Registers Processing के दौरान data और instructions को temporarily store करना

What are Registers?

Registers CPU के अंदर स्थित बहुत छोटी और बहुत तेज memory locations हैं। इनका उपयोग processing के दौरान आवश्यक data, instructions, addresses और intermediate results को temporarily store करने के लिए किया जाता है।

Registers की capacity सामान्यतः बहुत कम होती है, लेकिन इनकी access speed computer की अन्य memory की तुलना में बहुत अधिक होती है।

याद रखें: Registers = CPU के अंदर स्थित बहुत तेज temporary storage locations.

Characteristics of Registers

  • Registers CPU के अंदर स्थित होते हैं।
  • इनकी access speed बहुत अधिक होती है।
  • इनकी storage capacity बहुत कम होती है।
  • इनका उपयोग temporary data और instructions को store करने के लिए किया जाता है।
  • Different registers का अलग-अलग specific function हो सकता है।

Types of Registers

CPU architecture के अनुसार registers के नाम और कार्य अलग-अलग हो सकते हैं। सामान्य computer organization में निम्नलिखित registers महत्वपूर्ण हैं:

  1. Accumulator (ACC)
  2. Program Counter (PC)
  3. Instruction Register (IR)
  4. Memory Address Register (MAR)
  5. Memory Data Register (MDR)
  6. General Purpose Registers

1. Accumulator (ACC)

Accumulator एक register है जिसका उपयोग arithmetic और logical operations के दौरान intermediate results को temporarily store करने के लिए किया जा सकता है।

Example: यदि CPU दो numbers को add कर रहा है, तो operation के दौरान प्राप्त intermediate या final result को accumulator में रखा जा सकता है।

Accumulator: Arithmetic और logical operations के results को temporarily hold करने में उपयोगी।

2. Program Counter (PC)

Program Counter एक special-purpose register है जो सामान्यतः उस next instruction का address रखता है जिसे CPU को execute करना है।

जब कोई instruction fetch किया जाता है, तो Program Counter आगे आने वाली instruction के address की ओर update हो सकता है।

Program Counter: Next instruction का address रखने वाला register.

3. Instruction Register (IR)

Instruction Register में वर्तमान में execute या decode की जा रही instruction को temporarily रखा जाता है। CPU instruction को memory से fetch करने के बाद उसे Instruction Register में रख सकता है।

Instruction Register: Current instruction को temporarily hold करता है।

4. Memory Address Register (MAR)

Memory Address Register में उस memory location का address रखा जाता है जिसे CPU access करना चाहता है। यह memory read या write operation के दौरान महत्वपूर्ण भूमिका निभाता है।

Example: यदि CPU को memory location 500 से data पढ़ना है, तो उस location का address MAR में रखा जा सकता है।

MAR: Memory location का address store करता है।

5. Memory Data Register (MDR)

Memory Data Register को कुछ systems में Memory Buffer Register (MBR) भी कहा जाता है। इसमें memory से पढ़ा गया data या memory में write किया जाने वाला data temporarily रखा जा सकता है।

MDR: Memory से आने वाले या memory में जाने वाले data को temporarily hold करता है।

6. General Purpose Registers

General Purpose Registers का उपयोग विभिन्न types के temporary data और intermediate results को store करने के लिए किया जाता है। इनका उपयोग processor architecture और instruction set के अनुसार अलग-अलग tasks में किया जा सकता है।

Important Registers at a Glance

Register Full Form / Meaning Main Function
ACC Accumulator Intermediate और operation results को hold करना
PC Program Counter Next instruction का address रखना
IR Instruction Register Current instruction को hold करना
MAR Memory Address Register Memory location का address रखना
MDR Memory Data Register Memory से आने या जाने वाले data को hold करना
General Purpose Register General temporary storage Temporary data और intermediate results store करना

What is a Bus?

Bus computer system में communication का एक common pathway है जिसका उपयोग CPU, memory और अन्य components के बीच data, addresses और control signals transfer करने के लिए किया जाता है।

Bus को एक प्रकार के communication channel के रूप में समझा जा सकता है। यह computer के विभिन्न components को आपस में communicate करने में सहायता करता है।

Bus: Computer components के बीच data, address और control information transfer करने वाला communication pathway.

Types of Buses

Computer organization में buses को मुख्य रूप से तीन प्रकारों में समझा जाता है:

  1. Data Bus
  2. Address Bus
  3. Control Bus

1. Data Bus

Data Bus का उपयोग computer के विभिन्न components के बीच actual data transfer करने के लिए किया जाता है। यह CPU, memory और input/output devices के बीच data को transfer करने में सहायता करता है।

Data bus सामान्यतः bidirectional होती है, अर्थात data दोनों दिशाओं में transfer हो सकता है, हालांकि exact behavior system architecture पर निर्भर करता है।

Example: CPU जब memory से कोई data read करता है, तो data bus उस data को CPU तक पहुँचाने में सहायता करती है।

Data Bus: Data transfer करती है।

2. Address Bus

Address Bus का उपयोग उस memory location या I/O location का address transfer करने के लिए किया जाता है जिसे CPU access करना चाहता है।

Traditional computer architecture में address bus सामान्यतः unidirectional होती है क्योंकि address CPU से memory या अन्य components की ओर भेजा जाता है।

Address Bus: किस location को access करना है, उसका address transfer करती है।

3. Control Bus

Control Bus का उपयोग control signals transfer करने के लिए किया जाता है। ये signals यह निर्धारित करने में सहायता करते हैं कि कौन-सा operation perform किया जाना है।

उदाहरण के लिए, Read, Write और अन्य control signals system components के बीच operation को coordinate करने में सहायता करते हैं।

Control Bus: Control और timing related signals transfer करती है।

Types of Buses at a Glance

Bus Function Typical Direction
Data Bus Data transfer करना Bidirectional
Address Bus Address transfer करना Generally unidirectional
Control Bus Control और timing signals transfer करना Depends on signal

How CPU, Registers and Buses Work Together

CPU के processing operation में registers और buses एक-दूसरे के साथ मिलकर कार्य करते हैं। CPU memory से instruction और data प्राप्त करता है। Address bus के माध्यम से required location का address दिया जा सकता है, data bus के माध्यम से data transfer किया जाता है और control bus read या write जैसे operations के लिए control signals उपलब्ध कराती है।

CPU प्राप्त data और instructions को registers में temporarily store कर सकता है और फिर ALU तथा अन्य internal units की सहायता से processing कर सकता है।

Simple Flow:
CPU → Address Bus → Memory Location
Memory → Data Bus → CPU Register
Control Unit → Control Bus → Control Signals

Example of Memory Read Operation

मान लीजिए CPU को memory से किसी data को पढ़ना है। यह operation simplified form में निम्न प्रकार समझा जा सकता है:

Step Operation
1 CPU required memory location का address निर्धारित करता है।
2 Address bus के माध्यम से address भेजा जाता है।
3 Control bus के माध्यम से Read signal दिया जाता है।
4 Memory requested data को data bus पर भेजती है।
5 CPU data को register में temporarily store कर सकता है।

Example of Memory Write Operation

जब CPU किसी data को memory में store करना चाहता है, तो address bus के माध्यम से target location का address और data bus के माध्यम से data भेजा जाता है। Control bus के माध्यम से Write signal operation को control करता है।

Step Operation
1 CPU target memory location का address निर्धारित करता है।
2 Address bus के माध्यम से address भेजा जाता है।
3 Data bus के माध्यम से data भेजा जाता है।
4 Control bus के माध्यम से Write signal दिया जाता है।
5 Memory data को specified location पर store करती है।

Bus Width

Bus Width का अर्थ है एक समय में bus द्वारा transfer किए जा सकने वाले bits की संख्या। उदाहरण के लिए, यदि किसी data bus की width 32 bits है, तो वह एक transfer में 32 bits data carry कर सकती है, system architecture और transfer mechanism की सीमाओं के अनुसार।

Bus width computer की data transfer capability को प्रभावित कर सकती है। सामान्यतः wider data bus एक transfer में अधिक bits carry कर सकती है।

Example: 32-bit Data Bus → एक transfer में 32 bits तक data carry कर सकती है।

Registers vs Main Memory

Registers Main Memory
CPU के अंदर स्थित होते हैं। CPU के बाहर main memory unit के रूप में स्थित होती है।
बहुत तेज होते हैं। Registers की तुलना में धीमी होती है।
Capacity बहुत कम होती है। Capacity अधिक होती है।
Immediate processing के लिए उपयोगी होते हैं। Programs और data को temporarily hold करती है।

Registers vs Cache Memory

Registers Cache Memory
CPU के अंदर specific storage locations होते हैं। High-speed memory होती है जो frequently used data और instructions रखती है।
बहुत छोटी capacity होती है। Registers से अधिक capacity होती है।
CPU instructions द्वारा directly उपयोग किए जाते हैं। CPU और main memory के बीच access को तेज करने में सहायता करती है।

Importance of Registers

Registers CPU की performance में महत्वपूर्ण भूमिका निभाते हैं क्योंकि CPU को processing के दौरान बार-बार आवश्यक data और addresses तक तेज access की आवश्यकता होती है। Registers ऐसे data को CPU के बहुत करीब उपलब्ध कराते हैं।

  • Intermediate results को hold करना
  • Current instruction को hold करना
  • Next instruction का address रखना
  • Memory addresses को temporarily store करना
  • Processing data को temporarily hold करना

Importance of Buses

Buses computer system के अलग-अलग components के बीच communication स्थापित करने में महत्वपूर्ण भूमिका निभाती हैं। इनके बिना CPU, memory और I/O devices के बीच data और control information का systematic transfer संभव नहीं होगा।

  • Data transfer में सहायता करना
  • Memory addresses transfer करना
  • Control signals transfer करना
  • CPU और memory के बीच communication कराना
  • Input/Output components के साथ communication में सहायता करना

Important Points

  • CPU computer का मुख्य processing unit है।
  • Registers CPU के अंदर स्थित बहुत तेज storage locations हैं।
  • Program Counter next instruction का address रखता है।
  • Instruction Register current instruction को hold करता है।
  • MAR memory location का address रखता है।
  • MDR memory से आने या memory में जाने वाले data को temporarily hold करता है।
  • Bus computer components के बीच communication pathway है।
  • Data Bus data transfer करती है।
  • Address Bus address transfer करती है।
  • Control Bus control signals transfer करती है।
  • Bus width एक transfer में carry किए जा सकने वाले bits की संख्या को प्रभावित करती है।

Board Focus

Exam के लिए याद रखें:
CPU → Central Processing Unit
Register → CPU के अंदर तेज temporary storage
PC → Next instruction का address
IR → Current instruction
MAR → Memory address
MDR → Memory data
Data Bus → Data transfer
Address Bus → Address transfer
Control Bus → Control signals transfer
Bus Width → एक transfer में carry किए जा सकने वाले bits की संख्या

Board Important Questions

Very Short Answer Questions

Q1. CPU का पूरा नाम क्या है?

Answer: Central Processing Unit.

Q2. Register क्या है?

Answer: Register CPU के अंदर स्थित एक बहुत तेज temporary storage location है।

Q3. Program Counter का क्या कार्य है?

Answer: Program Counter सामान्यतः next instruction का address रखता है।

Q4. Instruction Register का क्या कार्य है?

Answer: Instruction Register current instruction को temporarily hold करता है।

Q5. MAR का पूरा नाम क्या है?

Answer: Memory Address Register.

Q6. MDR का पूरा नाम क्या है?

Answer: Memory Data Register.

Q7. Data Bus का क्या कार्य है?

Answer: Data Bus computer components के बीच data transfer करती है।

Q8. Address Bus का क्या कार्य है?

Answer: Address Bus memory या I/O location का address transfer करती है।

Q9. Control Bus का क्या कार्य है?

Answer: Control Bus control और timing related signals transfer करती है।

Short Answer Questions

Q10. Registers क्या हैं? इनके महत्व को समझाइए।

Answer: Registers CPU के अंदर स्थित बहुत तेज temporary storage locations हैं। इनमें processing के दौरान data, instructions, addresses और intermediate results को temporarily store किया जाता है। इनकी speed बहुत अधिक होती है, इसलिए CPU को आवश्यक information जल्दी उपलब्ध हो जाती है।

Q11. Data Bus, Address Bus और Control Bus को समझाइए।

Answer: Data Bus का उपयोग actual data transfer करने के लिए किया जाता है। Address Bus उस memory या I/O location का address transfer करती है जिसे CPU access करना चाहता है। Control Bus read, write और अन्य control signals को transfer करके operations को coordinate करने में सहायता करती है।

Q12. MAR और MDR में अंतर बताइए।

MAR MDR
Memory Address Register Memory Data Register
Memory location का address store करता है। Memory से आने या memory में जाने वाला data store करता है।
Address से संबंधित information रखता है। Data से संबंधित information रखता है।

Q13. Program Counter और Instruction Register में अंतर बताइए।

Program Counter Instruction Register
Next instruction का address रखता है। Current instruction को hold करता है।
Instruction sequence को track करने में सहायता करता है। Current instruction के execution/decode में सहायता करता है।

Long Answer Questions

Q14. CPU में registers की भूमिका को विस्तार से समझाइए।

Answer: Registers CPU के अंदर स्थित high-speed storage locations हैं। ये processing के दौरान CPU को आवश्यक data और instructions तुरंत उपलब्ध कराने में सहायता करते हैं। Program Counter next instruction का address रखता है, Instruction Register current instruction को hold करता है, Memory Address Register memory location का address रखता है और Memory Data Register memory से आने या जाने वाले data को temporarily hold करता है। Accumulator arithmetic और logical operations के intermediate results को store करने में उपयोगी हो सकता है। इस प्रकार registers CPU की fast processing में महत्वपूर्ण भूमिका निभाते हैं।

Q15. Computer system में buses के प्रकार और उनके कार्य समझाइए।

Answer: Computer system में buses CPU, memory और अन्य components के बीच communication का माध्यम हैं। Data Bus actual data को transfer करती है। Address Bus उस location का address transfer करती है जिसे access करना है। Control Bus read, write और अन्य control signals transfer करती है। इन तीनों के माध्यम से computer system के विभिन्न components के बीच systematic communication और data transfer संभव होता है।

Q16. CPU और memory के बीच data transfer को buses की सहायता से समझाइए।

Answer: जब CPU memory से data read करना चाहता है, तो required memory location का address Address Bus के माध्यम से भेजा जाता है। Control Bus के माध्यम से Read signal दिया जाता है। Memory requested data को Data Bus के माध्यम से CPU की ओर भेजती है। CPU उस data को किसी appropriate register में temporarily store करके processing कर सकता है। इसी प्रकार write operation में CPU address bus पर address, data bus पर data और control bus पर Write signal प्रदान करता है।

Quick Revision

  • CPU: Central Processing Unit
  • Register: CPU की high-speed temporary storage
  • PC: Next instruction का address
  • IR: Current instruction
  • MAR: Memory address
  • MDR: Memory data
  • Data Bus: Data transfer
  • Address Bus: Address transfer
  • Control Bus: Control signals transfer
  • Bus Width: Transfer किए जाने वाले bits की संख्या
One-Line Revision: CPU instructions को execute करता है, registers processing के दौरान आवश्यक information को तेजी से hold करते हैं और buses CPU, memory तथा अन्य components के बीच data, address और control signals का communication कराती हैं।

Practice Questions

  1. CPU क्या है और इसका मुख्य कार्य क्या है?
  2. Registers क्या हैं?
  3. CPU के प्रमुख components के नाम लिखिए।
  4. Program Counter का कार्य समझाइए।
  5. Instruction Register क्या है?
  6. MAR और MDR में अंतर बताइए।
  7. Bus क्या है?
  8. Data Bus, Address Bus और Control Bus को समझाइए।
  9. Data Bus और Address Bus में अंतर बताइए।
  10. Bus Width से क्या समझते हैं?
  11. CPU और memory के बीच read operation को समझाइए।
  12. CPU और memory के बीच write operation को समझाइए।
  13. Registers और main memory में अंतर बताइए।
  14. Registers और cache memory में अंतर बताइए।
  15. Computer system में buses की भूमिका समझाइए।
Lesson 36 of 39
On This Page