Vtuupdates ADE M3
Vtuupdates ADE M3
Vtuupdates ADE M3
MODULE -3
COMBINATIONAL CIRCUIT DESIGN & SIMULATION USING GATES
Digital Logic Families
The following are the most popular digital logic families
TTL – Transistor Transistor Logic
ECL – Emitter Coupled Logic
MOS – Metal-Oxide Semiconductor
CMOS – Complementary Metal-Oxide Semiconductor
Characteristics of Logic Families
1. Fan-in
2. Fan-out
3. Propagation delay
4. Noise margin
5. Power dissipation
Fan-out: specifies the no. of standard loads that the output of typical gate can drive without impairing its
normal operation
Propagation delay: is the average transition time for a signal to propagate from input to output.
Noise margin: is the maximum external noise voltage added to an input signal that does not cause an
undesirable change in the output.
Power dissipation: it is the power consumed by the gate that must be available from power supply.
www.vtuupdates.com
REVIEW OF COMBINATIONAL CIRCUIT DESIGN
Steps
Set up a truth table which specifies the output(s) as a function of the input variables.
Derive simplified algebraic expressions for the output functions using Karnaugh Maps, or Quine-
McCluskey method, or any other similar procedure.
The resulting algebraic expressions are then manipulated into the proper form, depending on the
type of gates to be used in realizing the circuit.
Minimum two-level AND-OR, or NAND-NAND circuits can be realized using the minimum sum-
ofproducts. Minimum two-level OR-AND, or NOR-NOR circuits can be realized using the minimum
product-of-sums.
• In practical logic design problems, the maximum number of inputs on each gate is limited.
• Depending on the type of gates used, this limit may be two, three, four, eight etc..
• If a two-level realization of a circuit requires more gate inputs than allowed, factoring the logic
expression to obtain a multi-level realization is necessary.
Example 1: Realize the following functions using only two-input NAND gates and inverters.
𝑓1 = Σ𝑚 (0,2,3,4,5)
𝑓2 = Σ𝑚 (0,2,3,4,7)
𝑓3 = Σ𝑚(1,2,6,7)
• When the input to a logic gate is changed, the output will not change instantaneously.
• So that the change in the gate output is delayed with respect to the input change.
• If the change in output is delayed by time, ε, with respect to the input, we say that, the gate has
a propagation delay of ε.
VTU Updates
• The output of gate G1 changes 20 ns after A changes, and the output of gate G2 changes 20 ns
after G1 changes.
www.vtuupdates.com
HAZARDS IN COMBINATIONAL LOGIC
Fig. Hazards
• If, in response to any single input change and for some combination of propagation delays, a
circuit output may momentarily go to 0 when it should remain a constant 1, we say that the circuit
has a static 1-hazard.
• Similarly, if the output may momentarily go to 1 when it should remain a 0, we say that the circuit
has a static 0-hazard.
• If, when the output is supposed to change from 0 to 1 (or 1 to 0), the output may change three or
more times, we say that the circuit has a dynamic hazard.
Static 0-hazard.
• When B changes from 1 to 0 then output F should remain a constant 0. Now E will go to 1 before
D goes to 0, resulting in a momentary 1 (a glitch) appearing at the output F .
Static 1-hazard.
• When B changes from 1 to 0 then output F should remain a constant 1. Now E will go to 0 before
D goes to 1, resulting in a momentary 0 (a glitch) appearing at the output F .
• If any two adjacent 1’s are not covered by the same loop, a 1-hazard exists for the transition
between the two 1’s.
• If we add a loop to the map of above Figure and, then, add the corresponding gate to the circuit
(as shown in the following Figure), this eliminates the hazard.
• The term AC remains 1 while B is changing, so no glitch can appear in the output.
www.vtuupdates.com
SIMULATION AND TESTING OF LOGIC CIRCUITS
• In logic design process, Logic circuits may be tested either by building them or by simulating them
on a computer.
• As logic circuits become more and more complex, it is very important to simulate a design before
building it.
(3) Simulation of faulty components in the circuit as an aid to finding tests for the
circuits.
• The circuit inputs are applied to the first set of gates in the circuit, and the outputs of those gates
are calculated.
• The outputs of the gates which changed in the previous step are fed into the next level of gate
inputs. If the input to any gate has changed, then the output of that gate is calculated.
• The two logic values, 0 and 1, are not sufficient for simulating logic circuits.
• The value of a gate input or output may be unknown, and we will represent this unknown value
by X.
• If no logic signal at an input, as in the case of an open circuit we use the logic value Z to represent
an open circuit, or high impedance (hi-Z) connection.
If one of the inputs is 0, the output is always 0 regardless of the other input
For an OR gate,
• A gate output can only be connected to a limited number of other device inputs without degrading
the performance of a digital system.
• A simple buffer may be used to increase the driving capability of a gate output.
• when B is 0, the output C acts like an open circuit. This is called as high-impedance ( Hi-Z ) state. •
www.vtuupdates.com
Types of three-state buffers.
• In Figures (a) and (b) the buffer output is enabled when B = 1 and disabled when B = 0.
• In Figures (c) and (d) the buffer output is enabled when B = 0 and disabled when B = 1.
VTU Updates
MULTIPLEXERS
A multiplexer is a data selector which has a group of data inputs , a group of control inputs and single
output.
The control inputs are used to select one of the data inputs and connect it to the output terminal.
2-to-1 multiplexer
When the control input A is 0, the switch is in the upper position and the MUX output is Z = I0.
when A is 1, the switch is in the lower position and the MUX output is Z = I1.
MUX acts like a switch that selects one of the data inputs (I0 or I1) and transmits it to the output
4 to 1 Multiplexer
For 4 to 1 multiplexer, 4 data inputs, 2 selection lines and 1 output is needed. The block diagram and circuit
diagram is shown below.
www.vtuupdates.com
• For selection inputs, A= 0, B=0, first AND gate alone is enabled and the output produced is
• For selection inputs, A= 0, B=1, second AND gate alone is enabled and the output produced is
• For selection inputs, A= 1, B=0, third AND gate alone is enabled and the output produced is
• For selection inputs, A= 1, B=1, forth AND gate alone is enabled and the output produced is
Figure shows diagrams for a 4-to-1 multiplexer, 8-to-1 multiplexer, and 2 n-to-1 multiplexer.
VTU Updates
8 to 1 Multiplexer IC 74151
Decoder
A decoder is a multiple-input, multiple-output combinational logic circuit. It converts the n bit data inputs
into the coded 2n outputs.
2 to 4 binary decoder
www.vtuupdates.com
• The block diagram and Logic diagram is shown above. A and B are the two inputs and the output
produced is one of the minterms.
• The circuit diagram has two inverters, which will provide the complement of two inputs A and B.
Truth table
• When both the inputs A and B are 0, Y0 will be at active HIGH or logic 1 and the remaining output
pins are active LOW or logic 0.
3-to-8-line decoder
VTU Updates
Problem: Show how using a 3-to8 decoder and multi-input OR gates following Boolean expression can be
realized simultaneously.
F1 (A, B, C) = ∑m (0, 4, 6)
F2 (A, B, C) = ∑m (0, 5) F3
(A, B, C) = ∑m (1, 2, 3, 7).
Solution:
Seven-Segment Display
www.vtuupdates.com
VTU Updates
www.vtuupdates.com
VTU Updates
Truth Table
VTU Updates
ENCODERS
An encoder (converts an active input signal to a coded output signal) performs the inverse function of a
decoder.
4 to 2 Encoder
Truth Table
Fig shows 4 to 2 line Encoder. It has 4 inputs Y0,Y1,Y2,Y3 and 2 outputs A0,A1. From
the truth table it is clear that
If inputs Y3=0,Y2=0,Y1=0,Y0=1 then outputs A1=0 and A0=0.
If inputs Y3=0,Y2=0,Y1=1,Y0=0 then outputs A1=0 and A0=1.
If inputs Y3=0,Y2=1,Y1=0,Y0=0 then outputs A1=1 and A0=0.
If inputs Y3=1,Y2=0,Y1=0,Y0=0 then outputs A1=1 and A0=1.
From Truth table, we can write the Boolean functions for each output as
A1=Y3+Y2A1=Y3+Y2
A0=Y3+Y1
www.vtuupdates.com
8 to 3 Encoder
Fig shows 8 to 3 line Encoder. It has 8 inputs D0,D1,D2,D3,D4,D5,D6,D7 and 3 outputs Y2,Y1,Y0.
Truth Table
From Truth table, we can write the Boolean functions for each output as
Y2=D7+D6+D5+D4
VTU Updates
Y1=D7+D6+D3+D2
Y0=D7+D5+D3+D1
• A programmable logic device (PLD) is a digital integrated circuit capable of being programmed to provide
different logic functions.
Classification
An example of PLA circuit of a combinational circuit is shown below. As you can observe from the circuit
diagram, AND array consists of fuses, to program according to the user requirements.
www.vtuupdates.com
VTU Updates
Example 1
Realize the Boolean expression
W = AB + AB’C’ + BC’ and
X = BC + A’BC’ + ABC using Programmable Logic Array.
Solution:
• There are three inputs(A, B, C) and two outputs(W, X). The complement of three inputs are obtained
through NOT gates.
• Two OR gate arrays are used at the output to realize the the two functions.
VTU Updates
Solution
To obtain the expression, the given function is implemented using Karnaugh map.
Thus for the two obtained expressions, the PLA circuit is realized. There are three inputs(A, B, C) and two
outputs(F1, F2). In the obtained expressions, there are four product terms and so four AND gate array is
used. Two OR gates are used to generate the two boolean fuctions.
www.vtuupdates.com
VTU Updates
Programmable Logic Arrays (PLA)
• In PLA the product terms of the input variables is realized by an AND array and the OR array to form
the output functions.
A PAL is a programmable logic array (PLA) in which the AND array is programmable and the OR array is fixed.
Consider the PAL segment of the following Figure (a), used to realize the function 𝐼1𝐼′2 + 𝐼′1𝐼2. The X’s in
the following Figure (b) indicate that 𝐼1 𝑎𝑛𝑑 𝐼′2 lines are connected to the first AND gate, and The 𝐼′1𝑎𝑛𝑑
𝐼2 lines are connected to the other gate.
www.vtuupdates.com
1
Scanned by TapScanner
2
Scanned by TapScanner
3
Scanned by TapScanner
4
Scanned by TapScanner
5
Scanned by TapScanner
6
Scanned by TapScanner
7
Scanned by TapScanner
8
Scanned by TapScanner
9
Scanned by TapScanner
10
Scanned by TapScanner
11
Scanned by TapScanner
12
Scanned by TapScanner
13
Scanned by TapScanner
14
Scanned by TapScanner
15
Scanned by TapScanner
16
Scanned by TapScanner