DLD Lecture No 18 Analysis and Design of Combinational Circuit.pptx
SaveraAyub2
903 views
22 slides
May 15, 2022
Slide 1 of 22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
About This Presentation
gtbfg
Size: 1.01 MB
Language: en
Added: May 15, 2022
Slides: 22 pages
Slide Content
Lecture No 18 : Analysis and Design of Combinational C ircuit 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 2 n 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- F 1 and F 2 The outputs of various gates are labeled with intermediate symbols The output of gates that are a function of input variables are T 1 and T 2 Output F 2 can be easily derived from the input variables The Boolean function for these three outputs are: F 2 = AB + AC + BC T 1 = A + B + C T 2 = ABC Next we consider output of gates that are a function of already defined symbols T 3 = F’ 2 T 1 F 1 = T 3 +T 2 8
Analysis Procedure-Example To obtain F 1 as a function of A,B and C, from a series of substitutions proceed as follows F 1 = T 3 +T 2 = F 2 'T 1 +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 F 1 and F 2 implement circuit of a full-adder . Where: F 1 is the sum F 2 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 2 n possible input combinations and list binary numbers from 0 to 2 n – 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 F 2 equal to 1 for any combination that has 2 or 3 inputs equal to 1 F 2 ’ is the complement of F2 T 1 and T 2 are the OR and AND functions of input variables respectively T 3 = 1, when T 1 and F 2 ’ are equal to 1 F 1 = 1, when either T 2 or T 3 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
Practical Design Considerations Logic minimization must consider practical design constraints such as: number of gates number of inputs to a gate propagation delay of signal through the gates number of interconnection limitations of the driving capabilities of each gate In most cases the simplification begins by satisfying an elementary objective – producing the simplified Boolean function in a standard form, and the proceed with further steps to meet other performance criteria 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
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