SlideShare a Scribd company logo
1 of 22
Download to read offline
UNIT II
COMBINATIONAL AND SEQUENTIAL CIRCUITS
1
AD8252 - Digital Principles and Computer Organization
Syllabus
Combinational circuits – Adder – Subtractor –
ALU Design – Decoder – Encoder –
Multiplexers – Introduction to Sequential
Circuits – Flip-Flops – Registers – Counters.
2
Combinational Circuits
Combinational Logic Circuits
are memory less digital logic
circuits whose output at any
instant in time depends only on
the combination of its inputs.
3
Adder
4
Rules for binary addition
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 102
5
Half Adder
• The half adder adds two single binary input digits A and B.
• It has two outputs, sum (S) and carry (C).
• The carry signal represents an overflow into the next digit of a multi-digit
addition.
Inputs Outputs
A B Carry Sum
0 0 0 0
1 0 0 1
0 1 0 1
1 1 1 0
6
Half Adder
Inputs Outputs
A B Carry Sum
0 0 0 0
1 0 0 1
0 1 0 1
1 1 1 0
Schematic of Half adder
Logic Circuit of Half adder
7
Full Adder
• A full-adder is a combinational circuit that forms the
arithmetic sum of three input bits
• It consists of 3 inputs and 2 outputs
8
Full Adder
9
Full Adder
Logic Diagram of Full Adder
Subtractor
10
Rules for binary subtraction
0 - 0 = 0
0 - 1 = 1 with 1 borrow
1 - 0 = 1
1 - 1 = 0
11
Half Subtractor
Schematic of Half Subtractor
Logic Circuit of Half Subtractor
12
Full Subtractor
Schematic of Full Subtractor
Logic Circuit of Full Subtractor
13
n-bit adder/Parallel Adder
•Cascade n full adder (FA) blocks to form a n-bit adder.
•Carries propagate or ripple through this cascade, n-bit ripple carry adder.
Carry-in c0 into the LSB position provides a convenient way to
perform subtraction.
14
n-bit subtractor/Parallel subtractor
•Recall A – B is equivalent to adding 2’s complement of B to A.
•2’s complement is equivalent to 1’s complement + 1.
•A – B = A + B + 1
•2’s complement of positive and negative numbers is computed similarly.
15
Parallel Adder/Subtractor
Addition and Subtraction operations can be combined into one circuit with one common binary
adder. This is done by including an exclusive-OR gate with each full adder.
M=0  Circuit acts as Adder
M=1  Circuit acts as Subtractor
M=0  B 0 = B
M=1  B 1 = B
16
Drawback
• Sum and carry of any stage cannot be produced until the input carry occurs.
• This leads to a time delay in addition process.
• This delay is known as Carry Propagation Delay.
• One method of speeding up this process by eliminating inter stage carry delay is
called lookahead-carry addition
17
Carry Look-Ahead Adder
Consider the circuit of full adder
Pi
Gi
Pi = Ai Bi Si = Pi Ci
Gi = Ai Bi Ci+1 = Gi + Pi Ci
4-Stage Carry lookahead adder
C1 = G0 + P0 . C0
C2 = G1 + P1 . C1
C3 = G2 + P2 . C2
C4 = G3 + P3 . C3
• Substituting C1 into C2, then C2 into C3 , then C3 into
C4 yields the expanded equations:
C1 = G0 + P0 . C0
C2 = G1 + P1 (G0 + P0 . C0)
C3 = G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 )
C4 = G3 + P3 . (G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 ))
General form: C i+1 = Gi + Pi Ci
4-Stage Carry lookahead adder
C1 = G0 + P0 . C0
C2 = G1 + P1 . C1
C3 = G2 + P2 . C2
C4 = G3 + P3 . C3
• Substituting C1 into C2, then C2 into C3 , then C3 into
C4 yields the expanded equations:
C1 = G0 + P0 . C0
C2 = G1 + P1 . G0 + P1 . P0 . C0
C3 = G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 )
C4 = G3 + P3 . (G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 ))
General form: C i+1 = Gi + Pi Ci
4- bit Carry-lookahead adder
ALU Design
21
Symbol of ALU
ALU is responsible to perform
the operations in the computer
ALU Design
22
Symbol of ALU

More Related Content

Similar to DPCO-Unit 2-Combinational Circuit.pdf

combinational-circuit.pptx it tis creative study of digital electronics for ...
combinational-circuit.pptx it tis creative study of  digital electronics for ...combinational-circuit.pptx it tis creative study of  digital electronics for ...
combinational-circuit.pptx it tis creative study of digital electronics for ...RishabhSingh308993
 
combinational-circuit presenmtation .ppt
combinational-circuit presenmtation .pptcombinational-circuit presenmtation .ppt
combinational-circuit presenmtation .pptFilibertoMoralesGarc
 
combinational-circuit.ppt
combinational-circuit.pptcombinational-circuit.ppt
combinational-circuit.pptShivamRathod34
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
combinational circuits dispositivos .ppt
combinational circuits dispositivos .pptcombinational circuits dispositivos .ppt
combinational circuits dispositivos .pptFilibertoMoralesGarc
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operationsNitesh Bichwani
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfTamiratDejene1
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptAlbin562191
 
Adder and Subtractor
Adder and SubtractorAdder and Subtractor
Adder and SubtractorJaydeep Kale
 
COA-unit-2-Arithmetic.ppt
COA-unit-2-Arithmetic.pptCOA-unit-2-Arithmetic.ppt
COA-unit-2-Arithmetic.pptRuhul Amin
 
Chapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptChapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptMonirJihad1
 
Adder & Subtractor.pptx
Adder & Subtractor.pptxAdder & Subtractor.pptx
Adder & Subtractor.pptxDrJayanthiVS
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxSanjaiPrasad
 
Arithmetic Microoperation.pdf
Arithmetic Microoperation.pdfArithmetic Microoperation.pdf
Arithmetic Microoperation.pdfHarshitJ4
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 

Similar to DPCO-Unit 2-Combinational Circuit.pdf (20)

combinational-circuit.pptx it tis creative study of digital electronics for ...
combinational-circuit.pptx it tis creative study of  digital electronics for ...combinational-circuit.pptx it tis creative study of  digital electronics for ...
combinational-circuit.pptx it tis creative study of digital electronics for ...
 
combinational-circuit presenmtation .ppt
combinational-circuit presenmtation .pptcombinational-circuit presenmtation .ppt
combinational-circuit presenmtation .ppt
 
combinational-circuit.ppt
combinational-circuit.pptcombinational-circuit.ppt
combinational-circuit.ppt
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
combinational circuits dispositivos .ppt
combinational circuits dispositivos .pptcombinational circuits dispositivos .ppt
combinational circuits dispositivos .ppt
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
 
Adder and Subtractor
Adder and SubtractorAdder and Subtractor
Adder and Subtractor
 
Binary Adders.pdf
Binary Adders.pdfBinary Adders.pdf
Binary Adders.pdf
 
COA-unit-2-Arithmetic.ppt
COA-unit-2-Arithmetic.pptCOA-unit-2-Arithmetic.ppt
COA-unit-2-Arithmetic.ppt
 
Chapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptChapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.ppt
 
35th 36th Lecture
35th 36th Lecture35th 36th Lecture
35th 36th Lecture
 
5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt
 
Adder & Subtractor.pptx
Adder & Subtractor.pptxAdder & Subtractor.pptx
Adder & Subtractor.pptx
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
Lesson Week 1-2.pptx
Lesson Week 1-2.pptxLesson Week 1-2.pptx
Lesson Week 1-2.pptx
 
Arithmetic Microoperation.pdf
Arithmetic Microoperation.pdfArithmetic Microoperation.pdf
Arithmetic Microoperation.pdf
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 

Recently uploaded

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

DPCO-Unit 2-Combinational Circuit.pdf

  • 1. UNIT II COMBINATIONAL AND SEQUENTIAL CIRCUITS 1 AD8252 - Digital Principles and Computer Organization
  • 2. Syllabus Combinational circuits – Adder – Subtractor – ALU Design – Decoder – Encoder – Multiplexers – Introduction to Sequential Circuits – Flip-Flops – Registers – Counters. 2
  • 3. Combinational Circuits Combinational Logic Circuits are memory less digital logic circuits whose output at any instant in time depends only on the combination of its inputs. 3
  • 4. Adder 4 Rules for binary addition 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 102
  • 5. 5 Half Adder • The half adder adds two single binary input digits A and B. • It has two outputs, sum (S) and carry (C). • The carry signal represents an overflow into the next digit of a multi-digit addition. Inputs Outputs A B Carry Sum 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0
  • 6. 6 Half Adder Inputs Outputs A B Carry Sum 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 Schematic of Half adder Logic Circuit of Half adder
  • 7. 7 Full Adder • A full-adder is a combinational circuit that forms the arithmetic sum of three input bits • It consists of 3 inputs and 2 outputs
  • 10. Subtractor 10 Rules for binary subtraction 0 - 0 = 0 0 - 1 = 1 with 1 borrow 1 - 0 = 1 1 - 1 = 0
  • 11. 11 Half Subtractor Schematic of Half Subtractor Logic Circuit of Half Subtractor
  • 12. 12 Full Subtractor Schematic of Full Subtractor Logic Circuit of Full Subtractor
  • 13. 13 n-bit adder/Parallel Adder •Cascade n full adder (FA) blocks to form a n-bit adder. •Carries propagate or ripple through this cascade, n-bit ripple carry adder. Carry-in c0 into the LSB position provides a convenient way to perform subtraction.
  • 14. 14 n-bit subtractor/Parallel subtractor •Recall A – B is equivalent to adding 2’s complement of B to A. •2’s complement is equivalent to 1’s complement + 1. •A – B = A + B + 1 •2’s complement of positive and negative numbers is computed similarly.
  • 15. 15 Parallel Adder/Subtractor Addition and Subtraction operations can be combined into one circuit with one common binary adder. This is done by including an exclusive-OR gate with each full adder. M=0  Circuit acts as Adder M=1  Circuit acts as Subtractor M=0  B 0 = B M=1  B 1 = B
  • 16. 16 Drawback • Sum and carry of any stage cannot be produced until the input carry occurs. • This leads to a time delay in addition process. • This delay is known as Carry Propagation Delay. • One method of speeding up this process by eliminating inter stage carry delay is called lookahead-carry addition
  • 17. 17 Carry Look-Ahead Adder Consider the circuit of full adder Pi Gi Pi = Ai Bi Si = Pi Ci Gi = Ai Bi Ci+1 = Gi + Pi Ci
  • 18. 4-Stage Carry lookahead adder C1 = G0 + P0 . C0 C2 = G1 + P1 . C1 C3 = G2 + P2 . C2 C4 = G3 + P3 . C3 • Substituting C1 into C2, then C2 into C3 , then C3 into C4 yields the expanded equations: C1 = G0 + P0 . C0 C2 = G1 + P1 (G0 + P0 . C0) C3 = G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 ) C4 = G3 + P3 . (G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 )) General form: C i+1 = Gi + Pi Ci
  • 19. 4-Stage Carry lookahead adder C1 = G0 + P0 . C0 C2 = G1 + P1 . C1 C3 = G2 + P2 . C2 C4 = G3 + P3 . C3 • Substituting C1 into C2, then C2 into C3 , then C3 into C4 yields the expanded equations: C1 = G0 + P0 . C0 C2 = G1 + P1 . G0 + P1 . P0 . C0 C3 = G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 ) C4 = G3 + P3 . (G2 + P2 . (G1 + P1 . G0 + P1 . P0 . C0 )) General form: C i+1 = Gi + Pi Ci
  • 21. ALU Design 21 Symbol of ALU ALU is responsible to perform the operations in the computer