Question:
CPU fetches the instruction from memory according to the value of the:
CPU मेमोरी से अनुदेश किसके मान के अनुसार मानता है
Options:
- Program counter
- Status register
- Instruction register
- Program status word
- प्रोोग्रााम काउंटर
- स्थिति रजिस्टर
- निर्देश रजिस्टर
- प्रोोग्रााम स्थिति शब्द
Correct Answer: a)
Explanation:
Detailed Explanation:
The correct answer is a) Program Counter (प्रोग्राम काउंटर).
In computer architecture, the Program Counter (PC) (also called the Instruction Pointer in x86 architectures) is a dedicated CPU register that holds the memory address of the next instruction to be fetched and executed.
Instruction Fetch Cycle:
- At the start of the fetch cycle, the CPU places the address stored in the Program Counter onto the Address Bus.
- The memory subsystem reads the instruction located at that address and returns it via the Data Bus into the Instruction Register (IR).
- The Program Counter is then automatically incremented by the word size of the instruction (or updated to a branch target address) so that it points to the subsequent instruction in memory.
Why Other Options are Incorrect:
- Status Register / Program Status Word (PSW): Contains condition flags (such as Zero flag, Carry flag, Sign flag, Overflow flag) that record the status or outcome of recent arithmetic and logic operations.
- Instruction Register (IR): Holds the binary opcode and operands of the instruction currently being decoded and executed, rather than the address of the next instruction to fetch.
विस्तृत व्याख्या:
सही उत्तर a) प्रोग्राम काउंटर (Program Counter) है।
कंप्यूटर आर्किटेक्चर में, प्रोग्राम काउंटर (PC) सीपीयू का एक अत्यंत महत्वपूर्ण रजिस्टर होता है, जो मुख्य मेमोरी से निष्पादित (execute) किए जाने वाले अगले निर्देश (next instruction) का मेमोरी एड्रेस रखता है।
निर्देश फेच चक्र (Instruction Fetch Cycle):
- फेच चक्र के दौरान, सीपीयू प्रोग्राम काउंटर में मौजूद पते के आधार पर मेमोरी से निर्देश को प्राप्त करता है।
- निर्देश प्राप्त होने के बाद, उसे निर्देश रजिस्टर (Instruction Register – IR) में लोड किया जाता है।
- इसके साथ ही, प्रोग्राम काउंटर का मान स्वतः बढ़ (increment) जाता है ताकि वह अगले क्रमिक निर्देश के पते को इंगित कर सके।
अन्य विकल्पों का विश्लेषण:
- स्थिति रजिस्टर (Status Register) / प्रोग्राम स्थिति शब्द (PSW): यह अंकगणितीय और तार्किक संचालन (ALU operations) के परिणामों की स्थिति को दर्शाने वाले फ्लैग्स (जैसे Zero, Carry, Sign आदि) को संग्रहीत करता है।
- निर्देश रजिस्टर (Instruction Register): यह वर्तमान में डिकोड और निष्पादित हो रहे निर्देश को रखता है, न कि अगले निर्देश के पते को।