Arithmetic Logic Unit (ALU) in Computer - Definition, Functions and Working
What is Arithmetic Logic Unit (ALU)?
The Arithmetic Logic Unit (ALU) is an important component of the Central Processing Unit (CPU). It performs arithmetic operations and logical operations on data. The ALU is responsible for calculations and logical comparisons required during program execution.
अंकगणितीय एवं तार्किक इकाई (Arithmetic Logic Unit – ALU), Central Processing Unit (CPU) का एक महत्वपूर्ण भाग है। यह डेटा पर अंकगणितीय (Arithmetic) और तार्किक (Logical) क्रियाएँ करता है। किसी प्रोग्राम को चलाते समय आवश्यक गणनाएँ और तार्किक तुलनाएँ ALU द्वारा की जाती हैं।
Full Form of ALU
ALU stands for Arithmetic Logic Unit.
ALU का पूरा नाम Arithmetic Logic Unit (अंकगणितीय एवं तार्किक इकाई) है।
Main Functions of ALU
The ALU performs two major categories of operations:
ALU मुख्य रूप से दो प्रकार के कार्य करता है:
A. Arithmetic Operations
Arithmetic operations are mathematical calculations performed on data.
Arithmetic Operations का अर्थ है डेटा पर गणितीय गणनाएँ करना।
Common arithmetic operations include:
| Operation | Symbol | Example |
|---|---|---|
| Addition | + | 10 + 5 = 15 |
| Subtraction | − | 10 − 5 = 5 |
| Multiplication | × | 10 × 5 = 50 |
| Division | ÷ | 10 ÷ 5 = 2 |
| Increment | ++ | 5 → 6 |
| Decrement | −− | 5 → 4 |
B. Logical Operations
Logical operations compare values or perform logical calculations. Their results are generally represented using binary values (0 and 1).
Logical Operations में डेटा की तुलना करना या तार्किक गणनाएँ करना शामिल है। इनके परिणाम सामान्यतः Binary Values (0 और 1) के रूप में दर्शाए जाते हैं।
Common logical operations include:
| Operation | Meaning | Example |
|---|---|---|
| AND | True when both bits are 1 | 1 AND 1 = 1 |
| OR | True when at least one bit is 1 | 1 OR 0 = 1 |
| NOT | Reverses the bit | NOT 1 = 0 |
| XOR | True when bits are different | 1 XOR 0 = 1 |
| Comparison | Compares two values | 10 > 5 |
How Does ALU Work?
The ALU works under the control of the Control Unit (CU). Data and instructions are supplied to the CPU, and the Control Unit coordinates the execution of instructions. When an arithmetic or logical operation is required, the ALU processes the input data and produces a result.
ALU, Control Unit (CU) के नियंत्रण में कार्य करता है। CPU को डेटा और निर्देश प्राप्त होते हैं तथा Control Unit निर्देशों के निष्पादन का समन्वय करती है। जब किसी अंकगणितीय या तार्किक क्रिया की आवश्यकता होती है, तब ALU इनपुट डेटा पर प्रक्रिया करके परिणाम देता है।
Example:
Suppose a program needs to calculate:
A = 10 + 20
The ALU performs the addition operation and produces the result 30.
उदाहरण:
मान लीजिए किसी प्रोग्राम में निम्न गणना करनी है:
A = 10 + 20
ALU जोड़ की क्रिया करके परिणाम 30 देता है।
ALU, Control Unit and Registers
The ALU, Control Unit and Registers are important components associated with CPU operation.
ALU, Control Unit और Registers, CPU के कार्य करने में महत्वपूर्ण भूमिका निभाते हैं।
| Component | Main Function |
|---|---|
| ALU | Performs arithmetic and logical operations |
| Control Unit (CU) | Controls and coordinates instruction execution |
| Registers | Temporarily hold data, instructions or results |
| घटक | मुख्य कार्य |
|---|---|
| ALU | अंकगणितीय एवं तार्किक क्रियाएँ करना |
| Control Unit (CU) | निर्देशों के निष्पादन को नियंत्रित करना |
| Registers | डेटा, निर्देश या परिणाम को अस्थायी रूप से रखना |
What is the Result of an ALU Operation?
After performing an operation, the ALU produces a result. Depending on the CPU architecture, the result may be stored in a register or sent to another part of the computer system. The ALU may also update status flags, such as zero, carry, sign or overflow flags.
किसी क्रिया को पूरा करने के बाद ALU परिणाम उत्पन्न करता है। CPU की संरचना के अनुसार यह परिणाम किसी Register में रखा जा सकता है या कंप्यूटर के अन्य भाग को भेजा जा सकता है। ALU कुछ Status Flags भी अपडेट कर सकता है, जैसे Zero, Carry, Sign और Overflow Flags।
Importance of ALU
Performs mathematical calculations.
Executes logical operations and comparisons.
Helps the CPU execute program instructions.
Supports data processing in computers.
गणितीय गणनाएँ करता है।
तार्किक क्रियाएँ और तुलनाएँ करता है।
CPU को प्रोग्राम निर्देशों का निष्पादन करने में सहायता करता है।
कंप्यूटर में डेटा प्रोसेसिंग में महत्वपूर्ण भूमिका निभाता है।
Frequently Asked Questions (FAQs)
Q1. What is the full form of ALU?
ALU stands for Arithmetic Logic Unit.
ALU का पूरा नाम क्या है?
ALU का पूरा नाम Arithmetic Logic Unit है।
Q2. Which part of the computer performs arithmetic and logical operations?
The Arithmetic Logic Unit (ALU) performs arithmetic and logical operations.
कंप्यूटर में अंकगणितीय एवं तार्किक क्रियाएँ कौन करता है?
Arithmetic Logic Unit (ALU) अंकगणितीय एवं तार्किक क्रियाएँ करता है।
Q3. Is ALU a part of the CPU?
Yes, ALU is an important component of the CPU.
क्या ALU, CPU का भाग है?
हाँ, ALU, CPU का एक महत्वपूर्ण भाग है।
Q4. What are the two main types of operations performed by ALU?
Arithmetic operations and logical operations.
ALU द्वारा की जाने वाली दो मुख्य क्रियाएँ कौन-सी हैं?
Arithmetic Operations और Logical Operations।
Q5. Which unit controls the operation of ALU?
The Control Unit (CU) coordinates and controls instruction execution, including ALU operations.
ALU के कार्य को कौन नियंत्रित करता है?
Control Unit (CU), निर्देशों के निष्पादन का समन्वय और नियंत्रण करती है।
Practice MCQs for CPCT
These are educational practice questions for revision, not official CPCT examination questions.
ये प्रश्न शैक्षणिक अभ्यास और पुनरावृत्ति के लिए हैं, आधिकारिक CPCT परीक्षा के प्रश्न होने का दावा नहीं करते।
Q1. What is the full form of ALU?
Answer: B. Arithmetic Logic Unit
Q2. Which component performs arithmetic operations in a CPU?
Answer: C. ALU
Q3. Which of the following is a logical operation?
Answer: D. AND
Q4. Which unit coordinates the execution of instructions in the CPU?
Answer: A. Control Unit
Q5. What is the result of 15 + 10?
Answer: B. 25
The Arithmetic Logic Unit (ALU) is an essential part of the CPU. It performs arithmetic calculations, logical operations and comparisons that help a computer process data and execute instructions.
Arithmetic Logic Unit (ALU), CPU का एक आवश्यक भाग है। यह अंकगणितीय गणनाएँ, तार्किक क्रियाएँ और तुलनाएँ करता है, जिससे कंप्यूटर डेटा प्रोसेस करने और निर्देशों का निष्पादन करने में सक्षम होता है.
Comments
Post a Comment