SlideShare a Scribd company logo
1 of 23
Lecture 8 Agenda:
 Combinational Circuits
 Design Procedure
 Half, Full and Parallel Adder
 Half and Full Subractor
Combinational circuits
 Consists of logic gates whose
output depends on only the
present input.
 Example: Adder
1
0
+________
1
Sequential circuits
 Consists of logic gates + storage
elements. Output depends on inputs
and the state of the storage elements
or previous outputs.
 Example: Counter
 4+1 5
 3+14
5/29/2023
Combinational Logic 2
• Logic circuits for digital systems may be….
Introduction
Sequential circuits are the building blocks of digital systems
and will be discussed in next chapter.
Design Procedure
 Starts from the specification of the problem, which leads
to the truth table. Using the output values of truth table,
the logic equation and simplified using K maps, or
Algebraic manipulation. The equation of the output
functions, the corresponding circuit is found. The process
is shown in Figure:
5/29/2023
Logic Diagram
Verification Specification
Optimization
K-Map Boolean Algebra
Formulation
Truth Table Boolean Equation
Specification
Goal Functionality
Combinational Logic 3
Example 1
 Design a circuit that has a 3-bit input and a single
output (F) specified as follows:
• F = 0, when the input is less than (5)
• F = 1, otherwise
Solution:
 Step 1 (Specification):
• Label the inputs (3 bits) as X, Y, Z
• X is the most significant bit, Z is the least significant bit
• The output (1 bit) is F:
• F = 1  (101)2, (110)2, (111)2
• F = 0  other inputs
5/29/2023
Combinational Logic 4
Step 2 (Formulation)
Obtain Truth table
X Y Z F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
X
YZ
0
1
00 01 11 10
0 0 0 0
0 1 1 1
Step 3
(Optimization)
F = XZ + XY
X
Z
X
Y
F
Example 1 (cont.)
Step 4 (Logic
Diagram)
5/29/2023
Combinational Logic 5
BCD Input Excess 3 Output
Decimal A B C D W X Y Z
0 0 0 0 0 0 0 1 1
1 0 0 0 1 0 1 0 0
2 0 0 1 0 0 1 0 1
3 0 0 1 1 0 1 1 0
4 0 1 0 0 0 1 1 1
5 0 1 0 1 1 0 0 0
6 0 1 1 0 1 0 0 1
7 0 1 1 1 1 0 1 0
8 1 0 0 0 1 0 1 1
9 1 0 0 1 1 1 0 0
10-15 All other inputs X X X X
Step 1 (Specification)
 4-bit BCD input (A,B,C,D)
 4-bit E-3 output (W,X,Y,Z)
Design Example 2:
BCD to Excess-3 Converter
Step 2 (Formulation)
Obtain Truth table
5/29/2023
Combinational Logic 6
Example 2 (cont.)
Step 3
(Optimization)
Step 4 (Logic
Diagram)
5/29/2023
Combinational Logic 7
 x=B’(C+D)+B (C+D)’

 y=CD+(C+D)’
 w=A+B(C+D)
Exercise Problems
Problem 4.4
Design a combinational circuit with three inputs and one output.
(a) The output is 1 when the binary value of the inputs is less than 3. The output is 0 otherwise.
(b) The output is 1 when the binary value of the inputs is an even number.
Problem 4.5
Design a combinational circuit with three inputs, x , y , and z , and three outputs, A, B , and C.
When the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the
binary input is 4, 5, 6, or 7, the binary output is two less than the input.
Problem 4.6
A majority circuit is a combinational circuit whose output is equal to 1 if the input variables
have more 1’s than 0’s. The output is 0 otherwise. Design a 3-input majority circuit by finding the
circuit’s truth table, Boolean equation, and a logic diagram.
Exercise Problems
Problem 4.7
Design a combinational circuit that converts a four-bit Gray code to a four bit binary
number. Implement the circuit with exclusive-OR gates.
BINARY ADDER–SUBTRACTOR
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10
 A combinational circuit that performs the addition of two bits is called a half
adder .
 One that performs the addition of three bits is a full adder .
 half adders + half adders = full adder.
5/29/2023
Combinational Logic 11
Half Adder
5/29/2023
Step 3
(Optimization)
Step 4 (Logic
Diagram)
Step 1
(Specification)
Step 2 (Formulation)
Combinational Logic 12
Full Adder
5/29/2023
Step 1
(Specification)
Step 2 (Formulation)
Combinational Logic 13
5/29/2023
Full Adder
Step 3
(Optimization)
Step 4 (Logic
Diagram)
Combinational Logic 14
5/29/2023
Full Adder = Two Half Adder
Combinational Logic 15
Half Sub tractor
5/29/2023
Step 3
(Optimization) Step 4 (Logic
Diagram)
Step 1
(Specification)
Step 2 (Formulation)
Combinational Logic 16
Full Sub tractor
5/29/2023
Step 1
(Specification)
Step 2 (Formulation)
X-Y-Z
Combinational Logic 17
5/29/2023
Full Sub tractor
Step 3
(Optimization) Step 4 (Logic
Diagram)
Combinational Logic 18
5/29/2023
Full Sub tractor = Two Half Sub tractor
Implementation of full-subtractor with two half subtractor and an OR gate
Combinational Logic 19
 A’B
 input of second half subtractor
 (A xor B)’ =AB+A’B’
 C
C.(AB+A’B’) +A’B
A’B+ABC+A’B’C
A’(B+B’C)+ABC
A’(B(1+C)+B’C)+ABC
A’(B+BC+B’C)+ABC
A’(B+C(B+B’))+ABC
A’(B+C)+ABC
A’B+A’C+ABC
A’B+A’C(1+B)+ABC
A’B+A’C+A’BC+ABC
A’B+A’C+BC
Exercise Problems
Problem 4.11
Using four half-adders,
(a) Design a full adder circuit incrementer. (A circuit that adds one to a four bit
binary number.)
(b) Design a four-bit combinational decrementer (a circuit that subtracts 1 from a four bit
binary number).
Problem 4.21
Design a combinational circuit that compares two 4-bit numbers to check if they are equal. The
circuit output is equal to 1 if the two numbers are equal and 0 otherwise.
Design a logic circuit whose output is HIGH when majority of inputs A, B, C are low.
Solution
A B C F
0 0 0 1 m0
0 0 1 1 m1
0 1 0 1 m2
0 1 1 0
1 0 0 1 m4
1 0 1 0
1 1 0 0
1 0 1 0
 F=A’B’+A’C’+B’C’

More Related Content

Similar to Lecture 8 (1).pptx

adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECESeshaVidhyaS
 
combinational circuits dispositivos .ppt
combinational circuits dispositivos .pptcombinational circuits dispositivos .ppt
combinational circuits dispositivos .pptFilibertoMoralesGarc
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
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
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)Fizaril Amzari Omar
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational LogicVajira Thambawita
 

Similar to Lecture 8 (1).pptx (20)

Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
Unit 04
Unit 04Unit 04
Unit 04
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
 
combinational circuits dispositivos .ppt
combinational circuits dispositivos .pptcombinational circuits dispositivos .ppt
combinational circuits dispositivos .ppt
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
cs 3351 dpco
cs 3351 dpcocs 3351 dpco
cs 3351 dpco
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
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 ...
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
COA.pptx
COA.pptxCOA.pptx
COA.pptx
 
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
 
DLD Chapter-4.pdf
DLD Chapter-4.pdfDLD Chapter-4.pdf
DLD Chapter-4.pdf
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational Logic
 
5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt
 

More from MuhammadAbubakar680442 (7)

pointers.pptx
pointers.pptxpointers.pptx
pointers.pptx
 
verbs, regular irregular.pptx
verbs, regular irregular.pptxverbs, regular irregular.pptx
verbs, regular irregular.pptx
 
ONTO ONE TO ONE FUNCTION.ppt
ONTO ONE TO ONE FUNCTION.pptONTO ONE TO ONE FUNCTION.ppt
ONTO ONE TO ONE FUNCTION.ppt
 
Modal and Auxiliary Verbs.pptx
Modal and Auxiliary Verbs.pptxModal and Auxiliary Verbs.pptx
Modal and Auxiliary Verbs.pptx
 
Lecture 14.pptx
Lecture 14.pptxLecture 14.pptx
Lecture 14.pptx
 
onto into bijective.ppt
onto into bijective.pptonto into bijective.ppt
onto into bijective.ppt
 
4.3e.pptx
4.3e.pptx4.3e.pptx
4.3e.pptx
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Lecture 8 (1).pptx

  • 1. Lecture 8 Agenda:  Combinational Circuits  Design Procedure  Half, Full and Parallel Adder  Half and Full Subractor
  • 2. Combinational circuits  Consists of logic gates whose output depends on only the present input.  Example: Adder 1 0 +________ 1 Sequential circuits  Consists of logic gates + storage elements. Output depends on inputs and the state of the storage elements or previous outputs.  Example: Counter  4+1 5  3+14 5/29/2023 Combinational Logic 2 • Logic circuits for digital systems may be…. Introduction Sequential circuits are the building blocks of digital systems and will be discussed in next chapter.
  • 3. Design Procedure  Starts from the specification of the problem, which leads to the truth table. Using the output values of truth table, the logic equation and simplified using K maps, or Algebraic manipulation. The equation of the output functions, the corresponding circuit is found. The process is shown in Figure: 5/29/2023 Logic Diagram Verification Specification Optimization K-Map Boolean Algebra Formulation Truth Table Boolean Equation Specification Goal Functionality Combinational Logic 3
  • 4. Example 1  Design a circuit that has a 3-bit input and a single output (F) specified as follows: • F = 0, when the input is less than (5) • F = 1, otherwise Solution:  Step 1 (Specification): • Label the inputs (3 bits) as X, Y, Z • X is the most significant bit, Z is the least significant bit • The output (1 bit) is F: • F = 1  (101)2, (110)2, (111)2 • F = 0  other inputs 5/29/2023 Combinational Logic 4
  • 5. Step 2 (Formulation) Obtain Truth table X Y Z F 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 X YZ 0 1 00 01 11 10 0 0 0 0 0 1 1 1 Step 3 (Optimization) F = XZ + XY X Z X Y F Example 1 (cont.) Step 4 (Logic Diagram) 5/29/2023 Combinational Logic 5
  • 6. BCD Input Excess 3 Output Decimal A B C D W X Y Z 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 0 2 0 0 1 0 0 1 0 1 3 0 0 1 1 0 1 1 0 4 0 1 0 0 0 1 1 1 5 0 1 0 1 1 0 0 0 6 0 1 1 0 1 0 0 1 7 0 1 1 1 1 0 1 0 8 1 0 0 0 1 0 1 1 9 1 0 0 1 1 1 0 0 10-15 All other inputs X X X X Step 1 (Specification)  4-bit BCD input (A,B,C,D)  4-bit E-3 output (W,X,Y,Z) Design Example 2: BCD to Excess-3 Converter Step 2 (Formulation) Obtain Truth table 5/29/2023 Combinational Logic 6
  • 7. Example 2 (cont.) Step 3 (Optimization) Step 4 (Logic Diagram) 5/29/2023 Combinational Logic 7
  • 8.  x=B’(C+D)+B (C+D)’   y=CD+(C+D)’  w=A+B(C+D)
  • 9. Exercise Problems Problem 4.4 Design a combinational circuit with three inputs and one output. (a) The output is 1 when the binary value of the inputs is less than 3. The output is 0 otherwise. (b) The output is 1 when the binary value of the inputs is an even number. Problem 4.5 Design a combinational circuit with three inputs, x , y , and z , and three outputs, A, B , and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the binary input is 4, 5, 6, or 7, the binary output is two less than the input. Problem 4.6 A majority circuit is a combinational circuit whose output is equal to 1 if the input variables have more 1’s than 0’s. The output is 0 otherwise. Design a 3-input majority circuit by finding the circuit’s truth table, Boolean equation, and a logic diagram.
  • 10. Exercise Problems Problem 4.7 Design a combinational circuit that converts a four-bit Gray code to a four bit binary number. Implement the circuit with exclusive-OR gates.
  • 11. BINARY ADDER–SUBTRACTOR 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10  A combinational circuit that performs the addition of two bits is called a half adder .  One that performs the addition of three bits is a full adder .  half adders + half adders = full adder. 5/29/2023 Combinational Logic 11
  • 12. Half Adder 5/29/2023 Step 3 (Optimization) Step 4 (Logic Diagram) Step 1 (Specification) Step 2 (Formulation) Combinational Logic 12
  • 13. Full Adder 5/29/2023 Step 1 (Specification) Step 2 (Formulation) Combinational Logic 13
  • 14. 5/29/2023 Full Adder Step 3 (Optimization) Step 4 (Logic Diagram) Combinational Logic 14
  • 15. 5/29/2023 Full Adder = Two Half Adder Combinational Logic 15
  • 16. Half Sub tractor 5/29/2023 Step 3 (Optimization) Step 4 (Logic Diagram) Step 1 (Specification) Step 2 (Formulation) Combinational Logic 16
  • 17. Full Sub tractor 5/29/2023 Step 1 (Specification) Step 2 (Formulation) X-Y-Z Combinational Logic 17
  • 18. 5/29/2023 Full Sub tractor Step 3 (Optimization) Step 4 (Logic Diagram) Combinational Logic 18
  • 19. 5/29/2023 Full Sub tractor = Two Half Sub tractor Implementation of full-subtractor with two half subtractor and an OR gate Combinational Logic 19
  • 20.  A’B  input of second half subtractor  (A xor B)’ =AB+A’B’  C C.(AB+A’B’) +A’B A’B+ABC+A’B’C A’(B+B’C)+ABC A’(B(1+C)+B’C)+ABC A’(B+BC+B’C)+ABC A’(B+C(B+B’))+ABC A’(B+C)+ABC A’B+A’C+ABC A’B+A’C(1+B)+ABC A’B+A’C+A’BC+ABC A’B+A’C+BC
  • 21. Exercise Problems Problem 4.11 Using four half-adders, (a) Design a full adder circuit incrementer. (A circuit that adds one to a four bit binary number.) (b) Design a four-bit combinational decrementer (a circuit that subtracts 1 from a four bit binary number). Problem 4.21 Design a combinational circuit that compares two 4-bit numbers to check if they are equal. The circuit output is equal to 1 if the two numbers are equal and 0 otherwise.
  • 22. Design a logic circuit whose output is HIGH when majority of inputs A, B, C are low. Solution A B C F 0 0 0 1 m0 0 0 1 1 m1 0 1 0 1 m2 0 1 1 0 1 0 0 1 m4 1 0 1 0 1 1 0 0 1 0 1 0