SlideShare a Scribd company logo
Lecture No 18 : Analysis and Design of Combinational Circuit
Digital Logic and Design
1
• Analysis and Design?
• What are two major design?
• Combinational Design
• Sequential Design
• Synchronous Sequential Design
• Asynchronous Sequential Design
Overview of Basic Concepts
2
• Analysis of Combinational Circuit
• Combinational Design
• BCD to Excess-3 Code Converter
• BCD to Seven Segment Display code converter
• Binary to Dice Display code converter
Today’s Lecture
3
Combinational Circuits
Logic circuits for digital system may be combinational or
sequential
A combinational circuit consists of logic gates whose outputs are a function of
the current inputs
Sequential circuits
contains storage elements in addition to logic gates
the outputs are a function of the current inputs and
the state of the memory (storage) elements
The state of storage elements, in turn, is a function of
previous inputs so outputs also depend on past inputs
They have feedback connection
1
7
3
4
Analysis Procedure
The analysis of a combinational circuit requires that we
determine function that the circuit implements
The first step in analysis procedure is to make sure that the
given circuit is combinational and not sequential (No
feedback path)
To obtain the output Boolean function from a logic diagram
we proceed as follows
Label all gate outputs that are a function of input variables with arbitrary
symbols. Determine the Boolean function for each gate output
Label the gates that are a function of input variables and previously labeled
gates with other arbitrary symbols. Find the Boolean function of these gates
Repeat the above process (step 2) until the outputs of the circuit are obtained
By repeated substitution of previously defined functions, obtain the output
Boolean functions in terms of input variables
5
Combinational Circuits
For n input variables there are 2n possible binary input
combinations
For each possible input combination there is one possible
output value
The most important standard combinational circuits
(discussed in this chapter) are adders, subtractors,
comparators, decoders, encoders, and multiplexers
If the storage registers are included with the combinational
gates then this circuit is considered as sequential circuit
6
Analysis Procedure-Example
7
Analysis Procedure-Example
The circuit has three binary inputs- A, B and C and two
binary outputs- F1 and F2
The outputs of various gates are labeled with intermediate
symbols
The output of gates that are a function of input variables are
T1 and T2
Output F2 can be easily derived from the input variables
The Boolean function for these three outputs are:
F2 = AB + AC + BC
T1 = A + B + C
T2 = ABC
Next we consider output of gates that are a function of
already defined symbols
T3 = F’2T1
F1 = T3+T2
8
Analysis Procedure-Example
To obtain F1 as a function of A,B and C, from a series of
substitutions proceed as follows
F1 = T3+T2
= F2'T1+ABC
=(AB+AC+BC)'(A+B+C)+ABC
=(A'+B')(A'+C')(B'+C')(A+B+C)+ABC
=(A'+B'C')(AB'+AC'+BC'+B'C)+ABC
=A'BC'+A'B'C+AB'C'+ABC
These functions F1 and F2 implement circuit of a full-adder.
Where:
F1 is the sum
F2 is the carry
9
Derivation of the Truth Table
The derivation of the truth table for the circuit is a straight
forward process once the output Boolean functions are
known
To obtain the truth table directly from the logic diagram
without going through the derivations of the Boolean
functions, we proceed as follows:
Determine the number of input variables in the circuit. For n inputs, form the
2n possible input combinations and list binary numbers from 0 to 2n – 1 in a
table
Label the outputs of selected gates with arbitrary symbols
Obtain the truth table for the outputs of those gates that are a function of the
input variables only
Proceed to obtain the truth table for the outputs of those gates that are
function of previously defined values until the columns for all outputs are
determined
10
Truth Table for Fig 4-2
F2 equal to 1 for any combination that has 2 or 3 inputs equal to 1
F2’ is the complement of F2
T1 and T2 are the OR and AND functions of input variables respectively
T3 = 1, when T1 and F2’ are equal to 1
F1 = 1, when either T2 or T3 or both are equal to 1
11
Design Procedure
The design procedure of combinational circuits involves
following steps
State the problem (Circuit specifications)
From the circuit specifications determine the inputs and outputs
The input and output variables are assigned symbols
Derive the truth table that gives the relationship between inputs and outputs
Derive the simplified Boolean functions (simplify by algebraic manipulation or
K-map method) for each output as a function of input variables
Draw the logic diagram and verify the correctness of the design
12
Code conversion example
Different digital systems use different types of codes
It is sometimes necessary to use the output of one system
as the input to another
A conversion circuit must be inserted between the two
systems if each uses different codes for the same
information
A code converter is a circuit that makes the two systems
compatible even though each uses a different binary code
To convert from binary code A to binary code B, the input
lines (of combinational circuit) must supply the bit
combination of elements as specified by code A and the
output lines must generate the corresponding bit
combination of code B
14
Code conversion: BCD to Excess-3 Code
Each code uses four bits to represent a decimal digit, there
must be four input variables and four output variables
Designate the four input binary variables by the symbols
A,B,C,D and the four output variables by w, x, y and z.
The truth table relating the input and output variable is
made (shown in next slide)
Four binary variables have 16 bit combinations but only 10
are listed in the truth table as 6 bit combinations not listed
are don’t care conditions. These have no meaning in BCD
15
Code conversion:Truth Table
16
K-Maps
There are four outputs, each as a function of four input
variables.
There are four maps, each representing one of the outputs,
to obtain simplified Boolean functions.
The 1’s marked inside the squares are obtained from the
minterms that make the output equal to 1
The 1’s are obtained from the truth table by going over the
output columns one at a time.
The 6 don’t care minterms 10 through 15 are marked with
an X 17
The Maps
18
BCD to Excess-3 Code Converter
The simplified functions
z = D'
y = CD +C'D‘
x = B'C + B'D+BC'D'
w = A+BC+BD
A two-level logic diagram may be obtained directly from the
above Boolean expressions but there are various other
possibilities for logic diagram that implements this circuit
Another implementation
z = D'
y = CD +C'D' = CD + (C+D)'
x = B'C + B'D+BC'D' = B'(C+D) +B(C+D)'
w = A+BC+BD
19
BCD-to-Excess Code Converter: continued
The purpose this manipulation is to use common gates for
two or more outputs
This is implemented with three levels of gates
OR gate with output C+D is used to implement partially
each of three outputs
Implementation with original sum of products require seven
AND gates and three OR gates whereas after manipulation
we require four AND gates and four OR gates
In this way the logical circuit has been implemented in a
much economical way.
20
Logic Diagram : BCD-to-Excess Code Converter
21
BCD to Seven Segment code Converter
Direction indicator on seven segment display
Your Turn
22
The End
23

More Related Content

What's hot

Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
Piyush Rochwani
 

What's hot (20)

FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
Binary codes
Binary codesBinary codes
Binary codes
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Modified booths algorithm part 1
Modified booths algorithm part 1Modified booths algorithm part 1
Modified booths algorithm part 1
 
Binomial queues
Binomial queuesBinomial queues
Binomial queues
 
Algorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IAlgorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms I
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Even odd parity
Even odd parityEven odd parity
Even odd parity
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adder
 
Data Structures : hashing (1)
Data Structures : hashing (1)Data Structures : hashing (1)
Data Structures : hashing (1)
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
 

Similar to DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx

combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
ThanmayiKumar
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Bindu Madhavi
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
Bindu Madhavi
 

Similar to DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx (20)

Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
DLD Chapter-4.pdf
DLD Chapter-4.pdfDLD Chapter-4.pdf
DLD Chapter-4.pdf
 
Digital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfDigital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdf
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
Lec 05 - Combinational Logic
Lec 05 - Combinational LogicLec 05 - Combinational Logic
Lec 05 - Combinational Logic
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
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
 
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-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Unit 3 combinational circuits
Unit 3  combinational circuitsUnit 3  combinational circuits
Unit 3 combinational circuits
 
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_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
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
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 

More from SaveraAyub2

DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
SaveraAyub2
 
DLD Lecture No 21 BCD Multiplier and Magnitude Comparator.pptx
DLD Lecture No 21  BCD Multiplier and Magnitude Comparator.pptxDLD Lecture No 21  BCD Multiplier and Magnitude Comparator.pptx
DLD Lecture No 21 BCD Multiplier and Magnitude Comparator.pptx
SaveraAyub2
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
SaveraAyub2
 
DLD Lecture No 19 Binary adders.pptx
DLD Lecture No 19  Binary adders.pptxDLD Lecture No 19  Binary adders.pptx
DLD Lecture No 19 Binary adders.pptx
SaveraAyub2
 
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptxDLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
SaveraAyub2
 
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptxDLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
SaveraAyub2
 

More from SaveraAyub2 (7)

DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
 
DLD Lecture No 21 BCD Multiplier and Magnitude Comparator.pptx
DLD Lecture No 21  BCD Multiplier and Magnitude Comparator.pptxDLD Lecture No 21  BCD Multiplier and Magnitude Comparator.pptx
DLD Lecture No 21 BCD Multiplier and Magnitude Comparator.pptx
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
 
DLD Lecture No 19 Binary adders.pptx
DLD Lecture No 19  Binary adders.pptxDLD Lecture No 19  Binary adders.pptx
DLD Lecture No 19 Binary adders.pptx
 
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptxDLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
DLD Lecture No 16 Don't `Care Conditions, Nand gate Implementation.pptx
 
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptxDLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
 
presentation
presentationpresentation
presentation
 

Recently uploaded

一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
DilipVasan
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage s
MAQIB18
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
StarCompliance.io
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
yhkoc
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 

Recently uploaded (20)

社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
How can I successfully sell my pi coins in Philippines?
How can I successfully sell my pi coins in Philippines?How can I successfully sell my pi coins in Philippines?
How can I successfully sell my pi coins in Philippines?
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
Using PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDBUsing PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDB
 
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPsWebinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
 
Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
 
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage s
 
Pre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptxPre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptx
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
Slip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp ClaimsSlip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp Claims
 

DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx

  • 1. Lecture No 18 : Analysis and Design of Combinational Circuit Digital Logic and Design 1
  • 2. • Analysis and Design? • What are two major design? • Combinational Design • Sequential Design • Synchronous Sequential Design • Asynchronous Sequential Design Overview of Basic Concepts 2
  • 3. • Analysis of Combinational Circuit • Combinational Design • BCD to Excess-3 Code Converter • BCD to Seven Segment Display code converter • Binary to Dice Display code converter Today’s Lecture 3
  • 4. Combinational Circuits Logic circuits for digital system may be combinational or sequential A combinational circuit consists of logic gates whose outputs are a function of the current inputs Sequential circuits contains storage elements in addition to logic gates the outputs are a function of the current inputs and the state of the memory (storage) elements The state of storage elements, in turn, is a function of previous inputs so outputs also depend on past inputs They have feedback connection 1 7 3 4
  • 5. Analysis Procedure The analysis of a combinational circuit requires that we determine function that the circuit implements The first step in analysis procedure is to make sure that the given circuit is combinational and not sequential (No feedback path) To obtain the output Boolean function from a logic diagram we proceed as follows Label all gate outputs that are a function of input variables with arbitrary symbols. Determine the Boolean function for each gate output Label the gates that are a function of input variables and previously labeled gates with other arbitrary symbols. Find the Boolean function of these gates Repeat the above process (step 2) until the outputs of the circuit are obtained By repeated substitution of previously defined functions, obtain the output Boolean functions in terms of input variables 5
  • 6. Combinational Circuits For n input variables there are 2n possible binary input combinations For each possible input combination there is one possible output value The most important standard combinational circuits (discussed in this chapter) are adders, subtractors, comparators, decoders, encoders, and multiplexers If the storage registers are included with the combinational gates then this circuit is considered as sequential circuit 6
  • 8. Analysis Procedure-Example The circuit has three binary inputs- A, B and C and two binary outputs- F1 and F2 The outputs of various gates are labeled with intermediate symbols The output of gates that are a function of input variables are T1 and T2 Output F2 can be easily derived from the input variables The Boolean function for these three outputs are: F2 = AB + AC + BC T1 = A + B + C T2 = ABC Next we consider output of gates that are a function of already defined symbols T3 = F’2T1 F1 = T3+T2 8
  • 9. Analysis Procedure-Example To obtain F1 as a function of A,B and C, from a series of substitutions proceed as follows F1 = T3+T2 = F2'T1+ABC =(AB+AC+BC)'(A+B+C)+ABC =(A'+B')(A'+C')(B'+C')(A+B+C)+ABC =(A'+B'C')(AB'+AC'+BC'+B'C)+ABC =A'BC'+A'B'C+AB'C'+ABC These functions F1 and F2 implement circuit of a full-adder. Where: F1 is the sum F2 is the carry 9
  • 10. Derivation of the Truth Table The derivation of the truth table for the circuit is a straight forward process once the output Boolean functions are known To obtain the truth table directly from the logic diagram without going through the derivations of the Boolean functions, we proceed as follows: Determine the number of input variables in the circuit. For n inputs, form the 2n possible input combinations and list binary numbers from 0 to 2n – 1 in a table Label the outputs of selected gates with arbitrary symbols Obtain the truth table for the outputs of those gates that are a function of the input variables only Proceed to obtain the truth table for the outputs of those gates that are function of previously defined values until the columns for all outputs are determined 10
  • 11. Truth Table for Fig 4-2 F2 equal to 1 for any combination that has 2 or 3 inputs equal to 1 F2’ is the complement of F2 T1 and T2 are the OR and AND functions of input variables respectively T3 = 1, when T1 and F2’ are equal to 1 F1 = 1, when either T2 or T3 or both are equal to 1 11
  • 12. Design Procedure The design procedure of combinational circuits involves following steps State the problem (Circuit specifications) From the circuit specifications determine the inputs and outputs The input and output variables are assigned symbols Derive the truth table that gives the relationship between inputs and outputs Derive the simplified Boolean functions (simplify by algebraic manipulation or K-map method) for each output as a function of input variables Draw the logic diagram and verify the correctness of the design 12
  • 13. Code conversion example Different digital systems use different types of codes It is sometimes necessary to use the output of one system as the input to another A conversion circuit must be inserted between the two systems if each uses different codes for the same information A code converter is a circuit that makes the two systems compatible even though each uses a different binary code To convert from binary code A to binary code B, the input lines (of combinational circuit) must supply the bit combination of elements as specified by code A and the output lines must generate the corresponding bit combination of code B 14
  • 14. Code conversion: BCD to Excess-3 Code Each code uses four bits to represent a decimal digit, there must be four input variables and four output variables Designate the four input binary variables by the symbols A,B,C,D and the four output variables by w, x, y and z. The truth table relating the input and output variable is made (shown in next slide) Four binary variables have 16 bit combinations but only 10 are listed in the truth table as 6 bit combinations not listed are don’t care conditions. These have no meaning in BCD 15
  • 16. K-Maps There are four outputs, each as a function of four input variables. There are four maps, each representing one of the outputs, to obtain simplified Boolean functions. The 1’s marked inside the squares are obtained from the minterms that make the output equal to 1 The 1’s are obtained from the truth table by going over the output columns one at a time. The 6 don’t care minterms 10 through 15 are marked with an X 17
  • 18. BCD to Excess-3 Code Converter The simplified functions z = D' y = CD +C'D‘ x = B'C + B'D+BC'D' w = A+BC+BD A two-level logic diagram may be obtained directly from the above Boolean expressions but there are various other possibilities for logic diagram that implements this circuit Another implementation z = D' y = CD +C'D' = CD + (C+D)' x = B'C + B'D+BC'D' = B'(C+D) +B(C+D)' w = A+BC+BD 19
  • 19. BCD-to-Excess Code Converter: continued The purpose this manipulation is to use common gates for two or more outputs This is implemented with three levels of gates OR gate with output C+D is used to implement partially each of three outputs Implementation with original sum of products require seven AND gates and three OR gates whereas after manipulation we require four AND gates and four OR gates In this way the logical circuit has been implemented in a much economical way. 20
  • 20. Logic Diagram : BCD-to-Excess Code Converter 21
  • 21. BCD to Seven Segment code Converter Direction indicator on seven segment display Your Turn 22