SlideShare a Scribd company logo
1 of 35
In computing, an arithmetic logic unit (ALU) is a digital circuit that
performs arithmetic and logical operations. The ALU is a fundamental
building block of the central processing unit (CPU) of a computer, and
even the simplest microprocessors contain one for purposes such as
maintaining timers. The processors found inside modern CPUs and
graphics processing units (GPUs) accommodate very powerful and very
complex ALUs; a single component may contain a number of ALUs.
Mathematician John von Neumann proposed the ALU concept in 1945,
when he wrote a report on the foundations for a new computer called
the EDVAC. Research into ALUs remains an important part of computer
science, falling under Arithmetic and logic structures in the ACM
Computing Classification System.
Addition with carry of
two 4-bit data :
The block diagram of :
U2
7483N
A28
B27
A110
C013
B111
S4 15
S3 2
C4 14
A41
B416
A33
B34
S2 6
S1 9
V1
5 V
A3
A2
A1
A0
B3
B2
B1
B0
S0
U1
74LS153D
2Y92C010
2C111
2C212
2C313
A14
B2
~1G1
1Y71C06
1C15
1C24
1C33
~2G15
S1
U4
74LS153D
2Y92C010
2C111
2C212
2C313
A14
B2
~1G1
1Y71C06
1C15
1C24
1C33
~2G15
Ci(=1 at sub,=1 increament A)
carry flag
S1 S0 Operation
S0 S1 operation
0 0 adder
0 1 Subtraction(c
=1)
1 0 Transfer(c=0
)
increment(c=1)
1 1 decrement(c=1)
The division of(4/2)
detailed block diagram:U1A
74ALS11AM
U1B
74ALS11AM
U2B
74ALS11AM
U56C
74ALS11AM
U6B
7404N
GND
VCC
5V
U12A
7404N
U13B
7404N
U15B
7404N
U16B
7404N
U8A
7408J
U8B
7408J
U9B
7432N
U11B
7432N
U17A
74ALS11AM
U18A
74ALS11AM
U19A
74ALS11AM
U21B
7432N
U24B
7432N
U25B
7432N
U27A
74ALS11AM
U22B
74ALS21AM
U7B
7408J
U32B
7408J
U10B
7432N
U14B
7432N
U20B
7432N
U36D
7408J
U37D
7408J
U39B
7432N
U23A
74ALS11AM
U28B
74ALS11AM
U29D
74ALS21AM
U33D
7408J
U26D
7408J
U34B
7432N
U35B
7432N
U38B
7432N
U40D
7408J
U41D
7408J
U42B
7432N
U43A
74ALS11AM
U44B
74ALS11AM
U45A
7404N
U46B
7404N
U47B
7404N
U48B
7404N
U49D
7408J
U50D
7408J
U51D
7408J
U52C
7408J
U53A
7404N
U53B
7404N
U54B
7404N
U55B
7404N
U3A
7408J
U4A
7408J
U5A
74ALS32M
U31A
7404N
U31B
7404N
U61A
74ALS11AM
U62A
74ALS11AM
U63A
74ALS11AM
U64A
74ALS11AM
U65B
7404N
U66A
74ALS11AM
U67A
74ALS11AM
U68A
74ALS11AM
U70A
74ALS11AM
U71A
74ALS11AM
U72A
74ALS11AM
U73A
74ALS11AM
U74A
74ALS11AM
U75A
74ALS11AM
U77A
74ALS11AM
U78A
7404N
U79A
7404N
U80A
74ALS11AM
U81A
74ALS11AM
U82A
74ALS11AM
U83A
74ALS11AM
U84B
7404N
VCC
5V
U10A
7432N
U30B
7432N
U57A
7432N
U58A
7432N
U59B
7432N
U60A
7432N
U69A
7432N
U76B
7432N
U85A
7432N
U86A
7432N
U87B
7432N
U88A
7432N
U89A
7432N
U90B
7432N
U91A
7432N
U92A
7432N
U93B
7432N
U94A
7432N
GND
OUT0
OUT1
OUT2
OUT3
R0_1_4
R_1_2
A2
A3
S1
S0
A0
A1
The division of(4/2)
block diagram:
U8
74LS283N
SUM_4 10
SUM_3 13
SUM_1 4
SUM_2 1
C4 9
B411
A412
B315
A314
B22
A23
B16
A15
C07
V3
5 V
A3
A2
A1
A0
1's com
2's com
The shifting :
S1 S0 Operation
0 0 No change
0 1 Parallel input
1 0 Shift right
1 1 Shift left
V1
5 V
A3
A2
A1
A0
B3
B2
B1
B0
Ci
U2
74LS283N
SUM_4 10
SUM_3 13
SUM_1 4
SUM_2 1
C4 9
B411
A412
B315
A314
B22
A23
B16
A15
C07
U1
74LS283N
SUM_410
SUM_313
SUM_14
SUM_21
C49
B411
A412
B315
A314
B22
A23
B16
A15
C07
BCD adder
sum>9
carry flag
The BCD addition of the input data:
BCD SUBTRACTION
DECIMA
L
DIGIT
9’s
COMPLE
MENT
0 9
4 5
The step as flowing :
(a) ADD 9’s COMP. OF B TO A
(b) IF RESULT > 9, CORRECT BY
ADDING 0110
(c) IF MOST SIGNIFICANT CARRY
IS PRODUCED [i.e. =1] THEN
THE RESULT IS POSITIVE AND
THE END ARROUND CARRY MUST
BE ADDED.
(d) IF MOST SIGNIFICANT CARRY
IS 0 [i.e. NO CARRY] THEN THE
RESULT IS NEGATIVE AND WE
GET THE 9’s COMP. OF THE RESULT.
And the design as the following:
U1
74LS283N
SUM_410
SUM_313
SUM_14SUM_21
C4 9
B411
A412
B315
A314
B22
A23
B16
A15
C07
U2
74LS283N
SUM_410
SUM_313
SUM_14SUM_21
C4 9
B411
A412
B315
A314
B22
A23
B16
A15
C07
U7
74LS283N
SUM_410
SUM_313
SUM_14SUM_21
C49
B411
A412
B315
A314
B22
A23
B16
A15
C07
U8
bcd sub
SUM_410
SUM_313
SUM_14SUM_21
C49
B4 11
A4 12
B3 15
A3 14
B2 2
A2 3
B1 6
A1 5
C0 7
V1
5 V
A3
A2
A1
A0
B3
B2
B1
B0
Logic operation:
1-Anding the input data:
2-ORing of input data:
3- XORing of input data :
4- XNORing of input data:
5-inverting of in put data:
Pass the input data on ((NOT)) gate which
Is alogic gate that has one input and one output , the output is
low when the input is high and the output is high when input is
low
6-NANDing of input data:
Pass the input data on ((NAND)) gate which
Is alogic gate which has 2 input and 1 output and the out put is
low when the two input is high and the rest of the possibilities
of input the out put is low
7-NORing of input data:
Pass the input data on ((NOR)) gate which is a logic gate that
Has 2input and 1 out put and the out put is high only when the
two input is low , the rest of the possibilities of input the out
put is low.
Comparing of two input data for equality operation:
Comparing of two input data for larger than
and smaller than operation :
The conversion circuit:
The BCD TO BIN :
Binary to BCD :
Binary to gray :
Gray to Binary :
Excess 3 to Binary :
Binary to Excess 3 :
Arithmetic Logic Unit .
Arithmetic Logic Unit .
Arithmetic Logic Unit .

More Related Content

What's hot

Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu Piyush Rochwani
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
The Basic Configuration of a Microcomputer
The Basic Configuration of a Microcomputer The Basic Configuration of a Microcomputer
The Basic Configuration of a Microcomputer Taminul Islam
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureVinit Raut
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computersBảo Hoang
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Piyush Rochwani
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COARuchi Maurya
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic unitsowaisahmad125
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer ArchitectureAbu Zaman
 
Half Adder and Full Adder
Half Adder and Full AdderHalf Adder and Full Adder
Half Adder and Full AdderShayshab Azad
 

What's hot (20)

Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
8 bit alu design
8 bit alu design8 bit alu design
8 bit alu design
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
Bus interconnection
Bus interconnectionBus interconnection
Bus interconnection
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
The Basic Configuration of a Microcomputer
The Basic Configuration of a Microcomputer The Basic Configuration of a Microcomputer
The Basic Configuration of a Microcomputer
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computers
 
Cache memory
Cache memoryCache memory
Cache memory
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Cs6303 unit2
Cs6303 unit2 Cs6303 unit2
Cs6303 unit2
 
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
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic units
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
 
Half Adder and Full Adder
Half Adder and Full AdderHalf Adder and Full Adder
Half Adder and Full Adder
 

Similar to Arithmetic Logic Unit .

Design of chip controller
Design of chip controllerDesign of chip controller
Design of chip controllerasha
 
H64CSA_1B_023799_Osama
H64CSA_1B_023799_OsamaH64CSA_1B_023799_Osama
H64CSA_1B_023799_OsamaOsama Azim
 
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...IJERA Editor
 
ADS Lab 5 Report
ADS Lab 5 ReportADS Lab 5 Report
ADS Lab 5 ReportRiddhi Shah
 
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
Find all hazards in this circuit.  Redesign the circuit as a three-le.pdfFind all hazards in this circuit.  Redesign the circuit as a three-le.pdf
Find all hazards in this circuit. Redesign the circuit as a three-le.pdfArrowdeepak
 
ECE_467_Final_Project_Report
ECE_467_Final_Project_ReportECE_467_Final_Project_Report
ECE_467_Final_Project_ReportSidharth Kumar
 
Optimization MVSIS vs AIG Rewriting (ABC)
Optimization MVSIS vs AIG Rewriting (ABC)Optimization MVSIS vs AIG Rewriting (ABC)
Optimization MVSIS vs AIG Rewriting (ABC)IJEEE
 
pipeline and vector processing
pipeline and vector processingpipeline and vector processing
pipeline and vector processingAcad
 
Design, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitDesign, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitIOSR Journals
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization designndasharath
 

Similar to Arithmetic Logic Unit . (20)

Design of chip controller
Design of chip controllerDesign of chip controller
Design of chip controller
 
Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
 
H64CSA_1B_023799_Osama
H64CSA_1B_023799_OsamaH64CSA_1B_023799_Osama
H64CSA_1B_023799_Osama
 
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...
Design and Implementation of 16-bit Arithmetic Logic Unit using Quantum dot C...
 
ADS Lab 5 Report
ADS Lab 5 ReportADS Lab 5 Report
ADS Lab 5 Report
 
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
Find all hazards in this circuit.  Redesign the circuit as a three-le.pdfFind all hazards in this circuit.  Redesign the circuit as a three-le.pdf
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 
a simple bcd counter project
a simple bcd counter projecta simple bcd counter project
a simple bcd counter project
 
ECE_467_Final_Project_Report
ECE_467_Final_Project_ReportECE_467_Final_Project_Report
ECE_467_Final_Project_Report
 
Optimization MVSIS vs AIG Rewriting (ABC)
Optimization MVSIS vs AIG Rewriting (ABC)Optimization MVSIS vs AIG Rewriting (ABC)
Optimization MVSIS vs AIG Rewriting (ABC)
 
pandu-vivek (1)
pandu-vivek (1)pandu-vivek (1)
pandu-vivek (1)
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
pipeline and vector processing
pipeline and vector processingpipeline and vector processing
pipeline and vector processing
 
Design, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitDesign, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting Circuit
 
K010137378
K010137378K010137378
K010137378
 
Assignment#3a
Assignment#3aAssignment#3a
Assignment#3a
 
BCD Counter
BCD CounterBCD Counter
BCD Counter
 
Control unit
Control unitControl unit
Control unit
 
Unit 07
Unit 07Unit 07
Unit 07
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization design
 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

Arithmetic Logic Unit .

  • 1.
  • 2.
  • 3.
  • 4. In computing, an arithmetic logic unit (ALU) is a digital circuit that performs arithmetic and logical operations. The ALU is a fundamental building block of the central processing unit (CPU) of a computer, and even the simplest microprocessors contain one for purposes such as maintaining timers. The processors found inside modern CPUs and graphics processing units (GPUs) accommodate very powerful and very complex ALUs; a single component may contain a number of ALUs. Mathematician John von Neumann proposed the ALU concept in 1945, when he wrote a report on the foundations for a new computer called the EDVAC. Research into ALUs remains an important part of computer science, falling under Arithmetic and logic structures in the ACM Computing Classification System.
  • 5.
  • 6. Addition with carry of two 4-bit data :
  • 7. The block diagram of : U2 7483N A28 B27 A110 C013 B111 S4 15 S3 2 C4 14 A41 B416 A33 B34 S2 6 S1 9 V1 5 V A3 A2 A1 A0 B3 B2 B1 B0 S0 U1 74LS153D 2Y92C010 2C111 2C212 2C313 A14 B2 ~1G1 1Y71C06 1C15 1C24 1C33 ~2G15 S1 U4 74LS153D 2Y92C010 2C111 2C212 2C313 A14 B2 ~1G1 1Y71C06 1C15 1C24 1C33 ~2G15 Ci(=1 at sub,=1 increament A) carry flag S1 S0 Operation S0 S1 operation 0 0 adder 0 1 Subtraction(c =1) 1 0 Transfer(c=0 ) increment(c=1) 1 1 decrement(c=1)
  • 8.
  • 9. The division of(4/2) detailed block diagram:U1A 74ALS11AM U1B 74ALS11AM U2B 74ALS11AM U56C 74ALS11AM U6B 7404N GND VCC 5V U12A 7404N U13B 7404N U15B 7404N U16B 7404N U8A 7408J U8B 7408J U9B 7432N U11B 7432N U17A 74ALS11AM U18A 74ALS11AM U19A 74ALS11AM U21B 7432N U24B 7432N U25B 7432N U27A 74ALS11AM U22B 74ALS21AM U7B 7408J U32B 7408J U10B 7432N U14B 7432N U20B 7432N U36D 7408J U37D 7408J U39B 7432N U23A 74ALS11AM U28B 74ALS11AM U29D 74ALS21AM U33D 7408J U26D 7408J U34B 7432N U35B 7432N U38B 7432N U40D 7408J U41D 7408J U42B 7432N U43A 74ALS11AM U44B 74ALS11AM U45A 7404N U46B 7404N U47B 7404N U48B 7404N U49D 7408J U50D 7408J U51D 7408J U52C 7408J U53A 7404N U53B 7404N U54B 7404N U55B 7404N U3A 7408J U4A 7408J U5A 74ALS32M U31A 7404N U31B 7404N U61A 74ALS11AM U62A 74ALS11AM U63A 74ALS11AM U64A 74ALS11AM U65B 7404N U66A 74ALS11AM U67A 74ALS11AM U68A 74ALS11AM U70A 74ALS11AM U71A 74ALS11AM U72A 74ALS11AM U73A 74ALS11AM U74A 74ALS11AM U75A 74ALS11AM U77A 74ALS11AM U78A 7404N U79A 7404N U80A 74ALS11AM U81A 74ALS11AM U82A 74ALS11AM U83A 74ALS11AM U84B 7404N VCC 5V U10A 7432N U30B 7432N U57A 7432N U58A 7432N U59B 7432N U60A 7432N U69A 7432N U76B 7432N U85A 7432N U86A 7432N U87B 7432N U88A 7432N U89A 7432N U90B 7432N U91A 7432N U92A 7432N U93B 7432N U94A 7432N GND OUT0 OUT1 OUT2 OUT3 R0_1_4 R_1_2 A2 A3 S1 S0 A0 A1
  • 11. U8 74LS283N SUM_4 10 SUM_3 13 SUM_1 4 SUM_2 1 C4 9 B411 A412 B315 A314 B22 A23 B16 A15 C07 V3 5 V A3 A2 A1 A0 1's com 2's com
  • 12. The shifting : S1 S0 Operation 0 0 No change 0 1 Parallel input 1 0 Shift right 1 1 Shift left
  • 13. V1 5 V A3 A2 A1 A0 B3 B2 B1 B0 Ci U2 74LS283N SUM_4 10 SUM_3 13 SUM_1 4 SUM_2 1 C4 9 B411 A412 B315 A314 B22 A23 B16 A15 C07 U1 74LS283N SUM_410 SUM_313 SUM_14 SUM_21 C49 B411 A412 B315 A314 B22 A23 B16 A15 C07 BCD adder sum>9 carry flag The BCD addition of the input data:
  • 14. BCD SUBTRACTION DECIMA L DIGIT 9’s COMPLE MENT 0 9 4 5 The step as flowing : (a) ADD 9’s COMP. OF B TO A (b) IF RESULT > 9, CORRECT BY ADDING 0110 (c) IF MOST SIGNIFICANT CARRY IS PRODUCED [i.e. =1] THEN THE RESULT IS POSITIVE AND THE END ARROUND CARRY MUST BE ADDED. (d) IF MOST SIGNIFICANT CARRY IS 0 [i.e. NO CARRY] THEN THE RESULT IS NEGATIVE AND WE GET THE 9’s COMP. OF THE RESULT.
  • 15. And the design as the following: U1 74LS283N SUM_410 SUM_313 SUM_14SUM_21 C4 9 B411 A412 B315 A314 B22 A23 B16 A15 C07 U2 74LS283N SUM_410 SUM_313 SUM_14SUM_21 C4 9 B411 A412 B315 A314 B22 A23 B16 A15 C07 U7 74LS283N SUM_410 SUM_313 SUM_14SUM_21 C49 B411 A412 B315 A314 B22 A23 B16 A15 C07 U8 bcd sub SUM_410 SUM_313 SUM_14SUM_21 C49 B4 11 A4 12 B3 15 A3 14 B2 2 A2 3 B1 6 A1 5 C0 7 V1 5 V A3 A2 A1 A0 B3 B2 B1 B0
  • 16.
  • 19. 3- XORing of input data :
  • 20. 4- XNORing of input data:
  • 21. 5-inverting of in put data: Pass the input data on ((NOT)) gate which Is alogic gate that has one input and one output , the output is low when the input is high and the output is high when input is low
  • 22. 6-NANDing of input data: Pass the input data on ((NAND)) gate which Is alogic gate which has 2 input and 1 output and the out put is low when the two input is high and the rest of the possibilities of input the out put is low
  • 23. 7-NORing of input data: Pass the input data on ((NOR)) gate which is a logic gate that Has 2input and 1 out put and the out put is high only when the two input is low , the rest of the possibilities of input the out put is low.
  • 24.
  • 25. Comparing of two input data for equality operation:
  • 26. Comparing of two input data for larger than and smaller than operation :
  • 31. Excess 3 to Binary :