SlideShare uma empresa Scribd logo
1 de 15
Topic : Arithmetic Logic operation (ALU)
Prepared by Group Unpredictable
Group Members:
ID NAME
13203015
Mustafa kamal
13203021 Ashikuzzaman
13203065 Towhedul Islam
13203061 Md Monem Rafat Hussain
Arithmetic logic unit
• An arithmetic logic unit (ALU) is a digital electronic circuit
that performs arithmetic and bitwise logical operations on
integer binary numbers.
• This is in contrast to a floating-point unit (FPU), which
operates on floating point numbers. It is a fundamental
building block of many types of computing circuits, including
the central processing unit (CPU) of computers, FPUs, and
graphics processing units.
• A single CPU, FPU or GPU may contain multiple ALUs.
History Of ALU
• Mathematician John von Neumann proposed the ALU concept in
1945 in a report on the foundations for a new computer called the
EDVAC(Electronic Discrete Variable Automatic Computer).
Typical Schematic Symbol of an ALU
A and B: the inputs to the ALU
R: Output or Result
F: Code or Instruction from the
Control Unit
D: Output status; it indicates cases
Circuit operation
• An ALU is a combinational logic circuit
• Its outputs will change asynchronously in
response to input changes
• The external circuitry connected to the ALU is
responsible for ensuring the stability of ALU
input signals throughout the operation.
ALU Operations
• 1. Fixed point operations
• 2. Floating point operations
Fixed Point (Integer) ALU Operations
• Add
• Add with carry AND
• Subtract
• Multiply
• Subtract with Borrow
• Divide Unsigned Divide
• OR
• XOR
• NOT
• L-Shift
• R-Shift
Floating Point ALU Operations
• F add
• F sub
• F Mul
• F Div
Functions
• 3 types of functions-
Arithmetic operations
Bitwise logical operations
Bit shift operations
Complex operations
• ALU can be designed to perform complex functions
• MAC(Multiply–accumulate operation)
the multiply–accumulate operation is a common
step that computes the product of two numbers and adds
that product to an accumulator
The MAC operation modifies an accumulator a:
• FMA
• FMAC
• VLIW operations
A 1-Bit ALU
The logical operations are easiest, because they map directly onto
the hardware components.
The 1-bit logical unit for AND and OR looks like figure
below. The multiplexor on the right then selects a AND b or a
OR b, depending on whether the value of Operation is 0 or 1.
The line that controls the multiplexor is shown in color to
distinguish it from the lines containing data. In the figure
below control and output lines of the multiplexor were
renamed to names that reflect the function of the ALU.
A 32-Bit ALU
• 32-bit ALU is created by connecting adjacent “black boxes.” Using xi to mean the
ith bit of x, figure below shows a 32-bit ALU. The adder created by directly linking
the carries of 1-bit adders is called a ripple carry adder.
Numerical systems
• An ALU must process numbers using the same format as the
rest of the digital circuit. For modern processors, that almost
always is the two's complement binary number representation.
Early computers used a wide variety of number systems,
including one's complement, sign-magnitude format, and even
true decimal systems, with ten tubes per digit.
• ALUs for each one of these numeric systems had different
designs, and that influenced the current preference for two's
complement, as this is the representation that makes it easier
for the ALUs to calculate additions and subtractions.
Practical overview
• Most of a processor's operations are performed
by one or more ALU. An ALU loads data from
input registers, executes, and stores the result
into an output register. A Control Unit tells the
ALU what operation to perform on the data.
Other mechanisms move data between these
registers and memory.

Mais conteúdo relacionado

Mais procurados

Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationSAMIR NAIK
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Computer organization
Computer organizationComputer organization
Computer organizationishapadhy
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computerZTE Nepal
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adderGaditek
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)ISMT College
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann ArchitectureZahid Rajeel
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital ElectronicsPaurav Shah
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexerEstiak Khan
 
Arithmetic logic shift unit
Arithmetic logic shift unitArithmetic logic shift unit
Arithmetic logic shift unitrishi ram khanal
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adderSanjuktaBanik
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 

Mais procurados (20)

Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
K - Map
  K - Map    K - Map
K - Map
 
Registers
RegistersRegisters
Registers
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computer
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
Control unit
Control  unitControl  unit
Control unit
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
 
Arithmetic logic shift unit
Arithmetic logic shift unitArithmetic logic shift unit
Arithmetic logic shift unit
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 

Semelhante a Arithmetic Logic Unit (ALU)

Semelhante a Arithmetic Logic Unit (ALU) (20)

Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1
 
Computer project
Computer projectComputer project
Computer project
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 
COA Chapter 1.pdf
COA Chapter 1.pdfCOA Chapter 1.pdf
COA Chapter 1.pdf
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Unit 3 The processor
Unit 3 The processorUnit 3 The processor
Unit 3 The processor
 
abc
abcabc
abc
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Ch5_MorrisMano.pptx
Ch5_MorrisMano.pptxCh5_MorrisMano.pptx
Ch5_MorrisMano.pptx
 
THE PROCESSOR
THE PROCESSORTHE PROCESSOR
THE PROCESSOR
 
Co ppt
Co pptCo ppt
Co ppt
 
COA (Unit_2.pptx)
COA (Unit_2.pptx)COA (Unit_2.pptx)
COA (Unit_2.pptx)
 
Material Architecture and organization of computer
Material Architecture and organization of computerMaterial Architecture and organization of computer
Material Architecture and organization of computer
 
Digital logic and microprocessors
Digital logic and microprocessorsDigital logic and microprocessors
Digital logic and microprocessors
 
Csa chapter 2
Csa  chapter 2Csa  chapter 2
Csa chapter 2
 
Plc
PlcPlc
Plc
 
0.0 Introduction to a computer programming.pptx
0.0 Introduction to a computer programming.pptx0.0 Introduction to a computer programming.pptx
0.0 Introduction to a computer programming.pptx
 

Último

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 

Último (20)

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

Arithmetic Logic Unit (ALU)

  • 1.
  • 2. Topic : Arithmetic Logic operation (ALU) Prepared by Group Unpredictable Group Members: ID NAME 13203015 Mustafa kamal 13203021 Ashikuzzaman 13203065 Towhedul Islam 13203061 Md Monem Rafat Hussain
  • 3. Arithmetic logic unit • An arithmetic logic unit (ALU) is a digital electronic circuit that performs arithmetic and bitwise logical operations on integer binary numbers. • This is in contrast to a floating-point unit (FPU), which operates on floating point numbers. It is a fundamental building block of many types of computing circuits, including the central processing unit (CPU) of computers, FPUs, and graphics processing units. • A single CPU, FPU or GPU may contain multiple ALUs.
  • 4. History Of ALU • Mathematician John von Neumann proposed the ALU concept in 1945 in a report on the foundations for a new computer called the EDVAC(Electronic Discrete Variable Automatic Computer).
  • 5. Typical Schematic Symbol of an ALU A and B: the inputs to the ALU R: Output or Result F: Code or Instruction from the Control Unit D: Output status; it indicates cases
  • 6. Circuit operation • An ALU is a combinational logic circuit • Its outputs will change asynchronously in response to input changes • The external circuitry connected to the ALU is responsible for ensuring the stability of ALU input signals throughout the operation.
  • 7. ALU Operations • 1. Fixed point operations • 2. Floating point operations
  • 8. Fixed Point (Integer) ALU Operations • Add • Add with carry AND • Subtract • Multiply • Subtract with Borrow • Divide Unsigned Divide • OR • XOR • NOT • L-Shift • R-Shift
  • 9. Floating Point ALU Operations • F add • F sub • F Mul • F Div
  • 10. Functions • 3 types of functions- Arithmetic operations Bitwise logical operations Bit shift operations
  • 11. Complex operations • ALU can be designed to perform complex functions • MAC(Multiply–accumulate operation) the multiply–accumulate operation is a common step that computes the product of two numbers and adds that product to an accumulator The MAC operation modifies an accumulator a: • FMA • FMAC • VLIW operations
  • 12. A 1-Bit ALU The logical operations are easiest, because they map directly onto the hardware components. The 1-bit logical unit for AND and OR looks like figure below. The multiplexor on the right then selects a AND b or a OR b, depending on whether the value of Operation is 0 or 1. The line that controls the multiplexor is shown in color to distinguish it from the lines containing data. In the figure below control and output lines of the multiplexor were renamed to names that reflect the function of the ALU.
  • 13. A 32-Bit ALU • 32-bit ALU is created by connecting adjacent “black boxes.” Using xi to mean the ith bit of x, figure below shows a 32-bit ALU. The adder created by directly linking the carries of 1-bit adders is called a ripple carry adder.
  • 14. Numerical systems • An ALU must process numbers using the same format as the rest of the digital circuit. For modern processors, that almost always is the two's complement binary number representation. Early computers used a wide variety of number systems, including one's complement, sign-magnitude format, and even true decimal systems, with ten tubes per digit. • ALUs for each one of these numeric systems had different designs, and that influenced the current preference for two's complement, as this is the representation that makes it easier for the ALUs to calculate additions and subtractions.
  • 15. Practical overview • Most of a processor's operations are performed by one or more ALU. An ALU loads data from input registers, executes, and stores the result into an output register. A Control Unit tells the ALU what operation to perform on the data. Other mechanisms move data between these registers and memory.