Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape

ALU (Arithmetic Logic Unit)

ALU (Arithmetic Logic Unit)

ALU का full form Arithmetic Logic Unit है। यह CPU का एक important part है, जो arithmetic और logical operations perform करता है।

Simple words में, ALU computer के calculations और comparisons करने का काम करता है।

ALU क्या करता है?

जब computer को किसी number पर calculation करनी होती है या दो values की comparison करनी होती है, तो CPU का ALU उस operation को perform करने में मदद करता है।

1. Arithmetic Operations — गणितीय कार्य

ALU basic mathematical operations perform कर सकता है।

Examples:

  • Addition — जोड़
  • Subtraction — घटाव
  • Multiplication — गुणा
  • Division — भाग

Example:

25 + 15 = 40

यहाँ addition operation ALU द्वारा perform किया जाता है।

2. Logical Operations — तार्किक कार्य

ALU values को compare करने और logical operations perform करने में भी मदद करता है।

Examples:

  • Equal to =
  • Greater than >
  • Less than <
  • Greater than or equal to >=
  • Less than or equal to <=

Example:

50 > 30

Result: True

3. Comparison

ALU दो values की तुलना कर सकता है।

Example:

अगर:

A = 100
B = 80

तो ALU determine कर सकता है कि:

A > B

4. Logical Decision में Role

Computer programs में कई decisions comparisons पर depend करते हैं।

Example:

अगर marks >= 33 हैं, तो:

Result = Pass

अगर marks < 33 हैं, तो:

Result = Fail

इस तरह के comparison और logical operations में ALU महत्वपूर्ण भूमिका निभाता है।

ALU कैसे काम करता है?

Basic process:

Input Data → ALU → Operation → Result

Example:

10 + 20

ALU

Addition

30

See also  Introduction of Computers

ALU के साथ Control Unit (CU) और CPU के अन्य components मिलकर instruction execution को पूरा करते हैं।

ALU और CU में अंतर

ALUCU
Arithmetic और logical operations करता हैOperations को control और coordinate करता है
Calculation करता हैInstructions को direct करता है
Comparison करता हैControl signals provide करता है
CPU का functional part हैCPU का functional part है

Quick Revision

ALU = Arithmetic Logic Unit

Main Functions:

Arithmetic → Addition, Subtraction, Multiplication, Division

Logic → Comparison और Logical Operations

ALU CPU का वह important part है जो arithmetic calculations और logical operations perform करता है।

Leave a Reply

Your email address will not be published. Required fields are marked *