SlideShare a Scribd company logo
1 of 25
Unit 5
COMBINATIONAL CIRCUITS-1
College of Computer and Information Sciences
Department of Computer Science
CSC 220: Computer Organization
Unit 5: Combinational Circuits-1
Overview
• Introduction to Combinational
Circuits
• Adder
• Ripple Carry Adder
• Subtraction
• Adder/Subtractor
Chapter-3
M. Morris Mano, Charles R. Kime and Tom Martin, Logic and Computer Design
Fundamentals, Global (5th) Edition, Pearson Education Limited, 2016. ISBN:
9781292096124
Adder
 Design an Adder for 1-bit numbers?
 1. Specification:
2 inputs (X,Y)
2 outputs (C,S)
Adder
 Design an Adder for 1-bit numbers?
 1. Specification:
2 inputs (X,Y)
2 outputs (C,S)
 2. Formulation:
X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Adder
 Design an Adder for 1-bit numbers?
 1. Specification: 3.
Optimization/Circuit
2 inputs (X,Y)
2 outputs (C,S)
 2. Formulation:
X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Half Adder
 This adder is called a Half Adder
 Q: Why?
X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Full Adder
 A combinational circuit that adds 3 input bits to
generate a Sum bit and a Carry bit
Full Adder
 A combinational circuit that adds 3 input bits to
generate a Sum bit and a Carry bit
X Y Z C S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
X
YZ
0
1
00 01 11 10
0 1 0 1
1 0 1 0
X
YZ
0
1
00 01 11 10
0 0 1 0
0 1 1 1
Sum
Carry
S = X’Y’Z + X’YZ’
+ XY’Z’ +XYZ
= X  Y  Z
C = XY + YZ + XZ
Full Adder = 2 Half Adders
Manipulating the Equations:
S = X  Y  Z
C = XY + XZ + YZ
Full Adder = 2 Half Adders
Manipulating the Equations:
S = ( X  Y )  Z
C = XY + XZ + YZ
= XY + XYZ + XY’Z + X’YZ + XYZ
= XY( 1 + Z) + Z(XY’ + X’Y)
= XY + Z(X  Y )
Full Adder = 2 Half Adders
Manipulating the Equations:
S = ( X  Y )  Z
C = XY + XZ + YZ = XY + Z(X  Y )
Src: Mano’s Book
Think of
Z as a
carry in
Bigger Adders
• How to build an adder for n-bit numbers?
• Example: 4-Bit Adder
• Inputs ?
• Outputs ?
• What is the size of the truth table?
• How many functions to optimize?
Bigger Adders
• How to build an adder for n-bit numbers?
• Example: 4-Bit Adder
• Inputs ? 9 inputs
• Outputs ? 5 outputs
• What is the size of the truth table? 512 rows!
• How many functions to optimize? 5 functions
Ripple Carry Adder
 To add n-bit numbers:
• Use n Full-Adders in parallel
• The carries propagates as in addition by hand
• Use Z in the circuit as a Cin
 1 0 0 0
 0 1 0 1
 0 1 1 0
 1 0 1 1
Binary Parallel Adder
 To add n-bit numbers:
• Use n Full-Adders in parallel
• The carries propagates as in addition by hand
This adder is called ripple carry adder
Src: Mano’s Book
Subtraction (2’s Complement)
 How to build a subtractor using 2’s complement?
Subtraction (2’s Complement)
 How to build a subtractor using 2’s complement?
1
S = A + ( -B)
Src: Mano’s Book
Adder/Subtractor
 How to build a circuit that performs both addition
and subtraction?
Adder/Subtractor
Ahmad Almulhem, KFUPM 2009
Src: Mano’s Book
Using full adders and XOR we can build an Adder/Subtractor!
0 : Add
1: subtract
Binary Parallel Adder (Again)
 To add n-bit numbers:
• Use n Full-Adders in parallel
• The carries propagates as in addition by hand
This adder is called ripple carry adder
Src: Mano’s Book
Carry Look Ahead Adder
• How to reduce propagation delay of ripple carry adders?
• Carry look ahead adder: All carries are computed as a function
of C0 (independent of n !)
• It works on the following standard principles:
• A carry bit is generated when both input bits Ai and Bi are 1, or
• When one of input bits is 1, and a carry in bit exists
Cn Cn-1…….Ci……….C2C1C0
An-1…….Ai……….A2A1A0
Bn-1…….Bi……….B2B1B0
Sn Sn-1…….Si……….S2S1S0
Carry Out
Carry
bits
For Review
24
25

More Related Content

Similar to unit-5_combinational_circuit-1.pptx

Binary Adder Design(COA).ppt
Binary Adder Design(COA).pptBinary Adder Design(COA).ppt
Binary Adder Design(COA).ppt
RohitPaul71
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
ssuser52a19e
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and Hexadecimal
UtkirjonUbaydullaev1
 

Similar to unit-5_combinational_circuit-1.pptx (20)

1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdf1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdf
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
Binary Adder Design(COA).ppt
Binary Adder Design(COA).pptBinary Adder Design(COA).ppt
Binary Adder Design(COA).ppt
 
B.sc cs-ii-u-1.3 digital logic circuits, digital component
B.sc cs-ii-u-1.3 digital logic circuits, digital componentB.sc cs-ii-u-1.3 digital logic circuits, digital component
B.sc cs-ii-u-1.3 digital logic circuits, digital component
 
number system.ppt
number system.pptnumber system.ppt
number system.ppt
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
 
Bca 2nd sem-u-1.3 digital logic circuits, digital component
Bca 2nd sem-u-1.3 digital logic circuits, digital componentBca 2nd sem-u-1.3 digital logic circuits, digital component
Bca 2nd sem-u-1.3 digital logic circuits, digital component
 
digital systems and information
digital systems and informationdigital systems and information
digital systems and information
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
Decppt
DecpptDecppt
Decppt
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
binary-numbers.ppt
binary-numbers.pptbinary-numbers.ppt
binary-numbers.ppt
 
Review on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and HexadecimalReview on Number Systems: Decimal, Binary, and Hexadecimal
Review on Number Systems: Decimal, Binary, and Hexadecimal
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
Chapter_02_The_Language_of_Bits_Any.pptx
Chapter_02_The_Language_of_Bits_Any.pptxChapter_02_The_Language_of_Bits_Any.pptx
Chapter_02_The_Language_of_Bits_Any.pptx
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 

unit-5_combinational_circuit-1.pptx

  • 1. Unit 5 COMBINATIONAL CIRCUITS-1 College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization
  • 2. Unit 5: Combinational Circuits-1 Overview • Introduction to Combinational Circuits • Adder • Ripple Carry Adder • Subtraction • Adder/Subtractor Chapter-3 M. Morris Mano, Charles R. Kime and Tom Martin, Logic and Computer Design Fundamentals, Global (5th) Edition, Pearson Education Limited, 2016. ISBN: 9781292096124
  • 3.
  • 4.
  • 5. Adder  Design an Adder for 1-bit numbers?  1. Specification: 2 inputs (X,Y) 2 outputs (C,S)
  • 6. Adder  Design an Adder for 1-bit numbers?  1. Specification: 2 inputs (X,Y) 2 outputs (C,S)  2. Formulation: X Y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0
  • 7. Adder  Design an Adder for 1-bit numbers?  1. Specification: 3. Optimization/Circuit 2 inputs (X,Y) 2 outputs (C,S)  2. Formulation: X Y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0
  • 8. Half Adder  This adder is called a Half Adder  Q: Why? X Y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0
  • 9. Full Adder  A combinational circuit that adds 3 input bits to generate a Sum bit and a Carry bit
  • 10. Full Adder  A combinational circuit that adds 3 input bits to generate a Sum bit and a Carry bit X Y Z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 X YZ 0 1 00 01 11 10 0 1 0 1 1 0 1 0 X YZ 0 1 00 01 11 10 0 0 1 0 0 1 1 1 Sum Carry S = X’Y’Z + X’YZ’ + XY’Z’ +XYZ = X  Y  Z C = XY + YZ + XZ
  • 11. Full Adder = 2 Half Adders Manipulating the Equations: S = X  Y  Z C = XY + XZ + YZ
  • 12. Full Adder = 2 Half Adders Manipulating the Equations: S = ( X  Y )  Z C = XY + XZ + YZ = XY + XYZ + XY’Z + X’YZ + XYZ = XY( 1 + Z) + Z(XY’ + X’Y) = XY + Z(X  Y )
  • 13. Full Adder = 2 Half Adders Manipulating the Equations: S = ( X  Y )  Z C = XY + XZ + YZ = XY + Z(X  Y ) Src: Mano’s Book Think of Z as a carry in
  • 14. Bigger Adders • How to build an adder for n-bit numbers? • Example: 4-Bit Adder • Inputs ? • Outputs ? • What is the size of the truth table? • How many functions to optimize?
  • 15. Bigger Adders • How to build an adder for n-bit numbers? • Example: 4-Bit Adder • Inputs ? 9 inputs • Outputs ? 5 outputs • What is the size of the truth table? 512 rows! • How many functions to optimize? 5 functions
  • 16. Ripple Carry Adder  To add n-bit numbers: • Use n Full-Adders in parallel • The carries propagates as in addition by hand • Use Z in the circuit as a Cin  1 0 0 0  0 1 0 1  0 1 1 0  1 0 1 1
  • 17. Binary Parallel Adder  To add n-bit numbers: • Use n Full-Adders in parallel • The carries propagates as in addition by hand This adder is called ripple carry adder Src: Mano’s Book
  • 18. Subtraction (2’s Complement)  How to build a subtractor using 2’s complement?
  • 19. Subtraction (2’s Complement)  How to build a subtractor using 2’s complement? 1 S = A + ( -B) Src: Mano’s Book
  • 20. Adder/Subtractor  How to build a circuit that performs both addition and subtraction?
  • 21. Adder/Subtractor Ahmad Almulhem, KFUPM 2009 Src: Mano’s Book Using full adders and XOR we can build an Adder/Subtractor! 0 : Add 1: subtract
  • 22. Binary Parallel Adder (Again)  To add n-bit numbers: • Use n Full-Adders in parallel • The carries propagates as in addition by hand This adder is called ripple carry adder Src: Mano’s Book
  • 23. Carry Look Ahead Adder • How to reduce propagation delay of ripple carry adders? • Carry look ahead adder: All carries are computed as a function of C0 (independent of n !) • It works on the following standard principles: • A carry bit is generated when both input bits Ai and Bi are 1, or • When one of input bits is 1, and a carry in bit exists Cn Cn-1…….Ci……….C2C1C0 An-1…….Ai……….A2A1A0 Bn-1…….Bi……….B2B1B0 Sn Sn-1…….Si……….S2S1S0 Carry Out Carry bits
  • 25. 25