SlideShare a Scribd company logo
1 of 39
Download to read offline
Unit 2
Arithmetic and Logic Unit (ALU)
Bus:
In computer architecture, a bus is a communication system that transfers data between components inside a computer,
or between computers. This expression covers all related hardware components (wire, optical fiber, etc.) and software,
including communication protocols.
Early computer buses were parallel electrical wires with multiple hardware connections, but the term is now
used for any physical arrangement that provides the same logical function as a parallel electrical bus. Modern computer
buses can use both parallel and bit serial connections, and can be wired in either a multi drop (electrical parallel) or
daisy chain topology, or connected by switched hubs, as in the case of USB.
2/3/2019BY M INDRAJA 2
2/3/2019BY M INDRAJA 3
2/3/2019BY M INDRAJA 4
ALU stands for Arithmetic Logic Unit:
It is a digital circuit that performs Arithmetic (Add,Sub,…) and Logical
(AND,OR,NOT) operations
This architecture was proposed by John Von Neumann in 1945 when he was
working on EDVAC (Electronic discrete variable automatic computer)
2/3/2019BY M INDRAJA 5
2/3/2019BY M INDRAJA 6
Introduction:
Logic gate are the basic building blocks of any digital system. It is an electronic circuit having 1 or more
than 1 input and only one output. The relationship between the input and output is based on a certain logic.
Based on this, logic gates are named as and gate, or gate, NOT gate et…
Logic gates are mostly implemented using electronic switches like diodes or
transistors, but can also be built using electromagnetic relays, vacuum tubes, fluidic logic, optics, etc.
In computers or control units, a large number of electronic circuits are made up of logic gates. These
processes signals are denoted by T (True) or F (False).
Logic gates are mainly used in some devices like microprocessors, embedded systems,
microcontrollers, registers, ALUs, MUX and also in computer memory; there are more than 100 million
gates especially in microprocessors.
Definition of Logic Gate:
A logic gate is a basic building block of a circuit used to make a large number of electronic
circuits.
Types of Logic Gates:
Different types of logic gates include AND,OR,NOT,NAND,NOR,EX-OR,EX-NOR
2/3/2019BY M INDRAJA 8
AND Gate :
When both the inputs are high, then the output is high, otherwise
the output is low.
2/3/2019BY M INDRAJA 9
OR Gate:
If any of the input is high, then the output is high
2/3/2019BY M INDRAJA 10
NOT Gate:
The output is inversely proportional to the input.
2/3/2019BY M INDRAJA 11
NAND Gate :
If both the inputs are high, then the output is low, otherwise high
2/3/2019BY M INDRAJA 12
NOR Gate: If both the inputs are low, then the output is high otherwise low.
2/3/2019BY M INDRAJA 13
EX-OR Gate:
If both the inputs are high or low, then the output is low, otherwise high.
2/3/2019BY M INDRAJA 14
EX-NOR Gate:
If both the inputs are high or low, then the output is high, otherwise low.
2/3/2019BY M INDRAJA 15
Arithmetic Circuit:
Binary Adder : Binary adder is used to add two binary numbers.
In general, the adder circuit needs two binary inputs and two binary outputs. The input
variables designate the x and y; Then the output variables produce the sum and carry.
The binary addition operation of single bit is shown in the truth table
In fourth case, a binary addition is creating a sum of (1 + 1 = 10) i.e. 0 is written in the given
column and a carry of 1 over to the next column.
2/3/2019BY M INDRAJA 16
The simplified sum of products expressions are
The circuit implementation is
This circuit can not handle the carry input, so it is termed as half adder.
2/3/2019BY M INDRAJA 17
Half Adder:
A half adder is a type of adder, an electronic circuit that performs the addition of
numbers. The half adder is able to add two single binary digits and provide the
output plus a carry value.
It has 2 inputs, called A and B, twso outputs S (sum) and C (carry).
The common representation uses a XOR logic gate an AND logic gate.
Full Adder:
A full adder is a combinational circuit that forms the arithmetic sum of three inputs
and two outputs.
Two of the input variables, denoted by x and y, represented the two bits to be
added.The third input Z, represents the carry from the previous lower position.
The two outputs are designated by the symbols S for sum and C for carry
2/3/2019BY M INDRAJA 18
2/3/2019BY M INDRAJA 19
2/3/2019BY M INDRAJA 20
2/3/2019BY M INDRAJA 21
2/3/2019BY M INDRAJA 22
Ripple Carry Adder:
 The ripple carry adder is constructed by cascading full adder blocks in series.
 The carryout of one stage is fed directly to the carry-in of the next stage
 For an n-bit ripple adder , it requires n full adders.
Carry Look Ahead Adder:
A carry-lookahead adder (CLA) or fast adder is a type of adder used in digital logic.
A carry-lookahead adder improves speed by reducing the amount of time required to determine
carry bits. It can be contrasted with the simpler, but usually slower, ripple-carry adder (RCA), for
which the carry bit is calculated alongside the sum bit, and each stage must wait until the previous
carry bit has been calculated to begin calculating its own sum bit and carry bit. The carry-
lookahead adder calculates one or more carry bits before the sum, which reduces the wait time to
calculate the result of the larger-value bits of the adder.
2/3/2019BY M INDRAJA 23
2/3/2019BY M INDRAJA 24
2/3/2019BY M INDRAJA 25
2/3/2019BY M INDRAJA 26
2/3/2019BY M INDRAJA 27
2/3/2019BY M INDRAJA 28
2/3/2019BY M INDRAJA 29
2/3/2019BY M INDRAJA 30
2/3/2019BY M INDRAJA 31
2/3/2019BY M INDRAJA 32
Booth’s Algorithm:
Booth algorithm gives a procedure for multiplying binary integers in signed 2’s complement
representation in efficient way, i.e., less number of additions/subtractions required. It operates on the fact
that strings of 0’s in the multiplier require no addition but just shifting and a string of 1’s in the multiplier
from bit weight 2^k to weight 2^m can be treated as 2^(k+1 ) to 2^m.
As in all multiplication schemes, booth algorithm requires examination of the multiplier bits and shifting
of the partial product. Prior to the shifting, the multiplicand may be added to the partial product, subtracted
from the partial product, or left unchanged according to following rules:
1. The multiplicand is subtracted from the partial product upon encountering the first least significant 1 in
a string of 1’s in the multiplier
2. The multiplier is added to the partial product upon encountering the first 0 (provided that there was a
previous ‘1’) in a string of 0’s in the multiplier.
3. The partial product does not change when the multiplier bit is identical to the previous multiplier bit.
2/3/2019BY M INDRAJA 33
2/3/2019BY M INDRAJA 34
2/3/2019BY M INDRAJA 35
2/3/2019BY M INDRAJA 36
2/3/2019BY M INDRAJA 37
2/3/2019BY M INDRAJA 38
2/3/2019BY M INDRAJA 39
THANK YOU
ALL THE BEST

More Related Content

What's hot

General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operationsLakshya Sharma
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORRamaPrabha24
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functionspong_sk1
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital LogicISMT College
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtlMazin Alwaaly
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)Siddhi Viradiya
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesDhwanil Champaneria
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logicGaditek
 

What's hot (20)

Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operations
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
 
Logic gate
Logic gateLogic gate
Logic gate
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Registers
RegistersRegisters
Registers
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functions
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital Logic
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtl
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logic
 

Similar to Arithmetic and logic unit

CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design ) CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design ) Sefat Ahammed Shovo
 
Half adder and full adder | Digital electronics | engineering
Half adder  and full adder | Digital electronics | engineeringHalf adder  and full adder | Digital electronics | engineering
Half adder and full adder | Digital electronics | engineeringNITESH POONIA
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...Arti Parab Academics
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuitchauhankapil
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amitAmith Bhonsle
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amitAmith Bhonsle
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdfVhhvf
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manualNitesh Dubey
 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics labswatymanoja
 
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSP
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSPDESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSP
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSPVLSICS Design
 
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATES
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATESQUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATES
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATESDrKavitaKhare
 
FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices Sachin Mehta
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational LogicVajira Thambawita
 

Similar to Arithmetic and logic unit (20)

CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design ) CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Half adder and full adder | Digital electronics | engineering
Half adder  and full adder | Digital electronics | engineeringHalf adder  and full adder | Digital electronics | engineering
Half adder and full adder | Digital electronics | engineering
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amit
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amit
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdf
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics lab
 
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSP
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSPDESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSP
DESIGN OF REVERSIBLE MULTIPLIERS FOR LINEAR FILTERING APPLICATIONS IN DSP
 
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATES
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATESQUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATES
QUANTUM COMPUTING FOR VLSI : VERILOG IMPLEMENTATION OF REVERSIBLE LOGIC GATES
 
Lect 1 unit 2.pdf
Lect 1 unit 2.pdfLect 1 unit 2.pdf
Lect 1 unit 2.pdf
 
Unit 2 module-2
Unit 2 module-2Unit 2 module-2
Unit 2 module-2
 
FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices
 
Q010228189
Q010228189Q010228189
Q010228189
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational Logic
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 

More from IndrajaMeghavathula

More from IndrajaMeghavathula (9)

Networking Technologies Basic's complete notes
Networking Technologies Basic's complete notesNetworking Technologies Basic's complete notes
Networking Technologies Basic's complete notes
 
Network layer u3
Network  layer u3Network  layer u3
Network layer u3
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Data link layer
Data link layerData link layer
Data link layer
 
Basics of Computer Networks
Basics of Computer NetworksBasics of Computer Networks
Basics of Computer Networks
 
Cache memory
Cache memory Cache memory
Cache memory
 
Memory Unit
Memory UnitMemory Unit
Memory Unit
 
Arithmetic and logic unit Continue...
Arithmetic and logic unit Continue...Arithmetic and logic unit Continue...
Arithmetic and logic unit Continue...
 
computer organization and architecture
computer organization and architecturecomputer organization and architecture
computer organization and architecture
 

Recently uploaded

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Arithmetic and logic unit

  • 1. Unit 2 Arithmetic and Logic Unit (ALU)
  • 2. Bus: In computer architecture, a bus is a communication system that transfers data between components inside a computer, or between computers. This expression covers all related hardware components (wire, optical fiber, etc.) and software, including communication protocols. Early computer buses were parallel electrical wires with multiple hardware connections, but the term is now used for any physical arrangement that provides the same logical function as a parallel electrical bus. Modern computer buses can use both parallel and bit serial connections, and can be wired in either a multi drop (electrical parallel) or daisy chain topology, or connected by switched hubs, as in the case of USB. 2/3/2019BY M INDRAJA 2
  • 5. ALU stands for Arithmetic Logic Unit: It is a digital circuit that performs Arithmetic (Add,Sub,…) and Logical (AND,OR,NOT) operations This architecture was proposed by John Von Neumann in 1945 when he was working on EDVAC (Electronic discrete variable automatic computer) 2/3/2019BY M INDRAJA 5
  • 7. Introduction: Logic gate are the basic building blocks of any digital system. It is an electronic circuit having 1 or more than 1 input and only one output. The relationship between the input and output is based on a certain logic. Based on this, logic gates are named as and gate, or gate, NOT gate et… Logic gates are mostly implemented using electronic switches like diodes or transistors, but can also be built using electromagnetic relays, vacuum tubes, fluidic logic, optics, etc. In computers or control units, a large number of electronic circuits are made up of logic gates. These processes signals are denoted by T (True) or F (False). Logic gates are mainly used in some devices like microprocessors, embedded systems, microcontrollers, registers, ALUs, MUX and also in computer memory; there are more than 100 million gates especially in microprocessors.
  • 8. Definition of Logic Gate: A logic gate is a basic building block of a circuit used to make a large number of electronic circuits. Types of Logic Gates: Different types of logic gates include AND,OR,NOT,NAND,NOR,EX-OR,EX-NOR 2/3/2019BY M INDRAJA 8
  • 9. AND Gate : When both the inputs are high, then the output is high, otherwise the output is low. 2/3/2019BY M INDRAJA 9
  • 10. OR Gate: If any of the input is high, then the output is high 2/3/2019BY M INDRAJA 10
  • 11. NOT Gate: The output is inversely proportional to the input. 2/3/2019BY M INDRAJA 11
  • 12. NAND Gate : If both the inputs are high, then the output is low, otherwise high 2/3/2019BY M INDRAJA 12
  • 13. NOR Gate: If both the inputs are low, then the output is high otherwise low. 2/3/2019BY M INDRAJA 13
  • 14. EX-OR Gate: If both the inputs are high or low, then the output is low, otherwise high. 2/3/2019BY M INDRAJA 14
  • 15. EX-NOR Gate: If both the inputs are high or low, then the output is high, otherwise low. 2/3/2019BY M INDRAJA 15
  • 16. Arithmetic Circuit: Binary Adder : Binary adder is used to add two binary numbers. In general, the adder circuit needs two binary inputs and two binary outputs. The input variables designate the x and y; Then the output variables produce the sum and carry. The binary addition operation of single bit is shown in the truth table In fourth case, a binary addition is creating a sum of (1 + 1 = 10) i.e. 0 is written in the given column and a carry of 1 over to the next column. 2/3/2019BY M INDRAJA 16
  • 17. The simplified sum of products expressions are The circuit implementation is This circuit can not handle the carry input, so it is termed as half adder. 2/3/2019BY M INDRAJA 17
  • 18. Half Adder: A half adder is a type of adder, an electronic circuit that performs the addition of numbers. The half adder is able to add two single binary digits and provide the output plus a carry value. It has 2 inputs, called A and B, twso outputs S (sum) and C (carry). The common representation uses a XOR logic gate an AND logic gate. Full Adder: A full adder is a combinational circuit that forms the arithmetic sum of three inputs and two outputs. Two of the input variables, denoted by x and y, represented the two bits to be added.The third input Z, represents the carry from the previous lower position. The two outputs are designated by the symbols S for sum and C for carry 2/3/2019BY M INDRAJA 18
  • 22. 2/3/2019BY M INDRAJA 22 Ripple Carry Adder:  The ripple carry adder is constructed by cascading full adder blocks in series.  The carryout of one stage is fed directly to the carry-in of the next stage  For an n-bit ripple adder , it requires n full adders.
  • 23. Carry Look Ahead Adder: A carry-lookahead adder (CLA) or fast adder is a type of adder used in digital logic. A carry-lookahead adder improves speed by reducing the amount of time required to determine carry bits. It can be contrasted with the simpler, but usually slower, ripple-carry adder (RCA), for which the carry bit is calculated alongside the sum bit, and each stage must wait until the previous carry bit has been calculated to begin calculating its own sum bit and carry bit. The carry- lookahead adder calculates one or more carry bits before the sum, which reduces the wait time to calculate the result of the larger-value bits of the adder. 2/3/2019BY M INDRAJA 23
  • 32. 2/3/2019BY M INDRAJA 32 Booth’s Algorithm: Booth algorithm gives a procedure for multiplying binary integers in signed 2’s complement representation in efficient way, i.e., less number of additions/subtractions required. It operates on the fact that strings of 0’s in the multiplier require no addition but just shifting and a string of 1’s in the multiplier from bit weight 2^k to weight 2^m can be treated as 2^(k+1 ) to 2^m. As in all multiplication schemes, booth algorithm requires examination of the multiplier bits and shifting of the partial product. Prior to the shifting, the multiplicand may be added to the partial product, subtracted from the partial product, or left unchanged according to following rules: 1. The multiplicand is subtracted from the partial product upon encountering the first least significant 1 in a string of 1’s in the multiplier 2. The multiplier is added to the partial product upon encountering the first 0 (provided that there was a previous ‘1’) in a string of 0’s in the multiplier. 3. The partial product does not change when the multiplier bit is identical to the previous multiplier bit.
  • 39. 2/3/2019BY M INDRAJA 39 THANK YOU ALL THE BEST