Файл: Digital design with CPLD applications and VHDL (R. Dueck, 2000).pdf
ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 13.06.2025
Просмотров: 8077
Скачиваний: 6
504 C H A P T E R 1 1 • Logic Gate Circuitry
Propagation Delay in Logic Circuits
A circuit consisting of two or more gates or flip-flops has a propagation delay that is the sum of delays in the input-to-output path. Delays in gates that do not affect the circuit output are disregarded. Figure 11.5 shows how propagation delay works in a simple logic circuit consisting of a 74HC08 AND gate and a 74HC32 OR gate. Changes at inputs A and B must propagate through both gates to affect the output. The total delay in such a case is the sum of tp1 and tp2. A change at input C must pass only through gate 2. The circuit delay resulting from this change is only tp2.
FIGURE 11.5
Propagation Delays in a Logic Gate Circuit
The timing diagram in Figure 11.5 shows the changes at inputs A, B, and C and the resulting transitions at all gate outputs.
Assume VCC 4.5 V and temperature range is 55°C to 25°C.
1.When A goes LOW, AB, the output of gate 1, also goes LOW after a maximum delay of
tpHL 15 ns. This makes Y go LOW after a further delay of up to tpHL 15 ns. Total delay: tp tpHL1 tpHL2 15 ns 15 ns 30 ns, max.
2.The HIGH-to-LOW transition at input B has no effect, since there is no difference between 0 1 and 0 0. AB is already LOW.
3.The LOW-to-HIGH transition at input C makes Y go HIGH after a maximum delay of tpLH2 15 ns.
SECTION 11.2 REVIEW PROBLEM
11.2Assume the gates in Figure 11.5 are replaced by a 74LS08 AND gate and a 74LS32 OR gate. Repeat the calculations of for the propagation delays if the waveforms of Figure 11.5 are applied to the circuit. The data sheets for the 74LS08 and 74LS32 are found in Appendix C.
11.3 • Fanout |
505 |
11.3 Fanout
K E Y T E R M S
Fanout The number of load gates that a logic gate output is capable of driving without possible logic errors.
Driving gate A gate whose output supplies current to the inputs of other gates.
Load gate A gate whose input current is supplied by the output of another gate.
Sourcing A terminal on a gate or flip-flop is sourcing current when the current flows out of the terminal.
Sinking A terminal on a gate or flip-flop is sinking current when the current flows into the terminal.
IOL |
Current measured at a device output when the output is LOW. |
IOH |
Current measured at a device output when the output is HIGH. |
IIL |
Current measured at a device input when the input is LOW. |
IIH |
Current measured at a device input when the input is HIGH. |
We have assumed that logic gates are able to drive any number of other logic gates. Since gates are electrical devices with finite current-driving capabilities, this is obviously not the case. The number of gates (“loads”) a logic gate can drive is referred to as its fanout.
N O T E
Fanout is simply an application of Kirchhoff’s current law: The algebraic sum of currents at a node must be zero. Thus, the fanout of a logic gate is limited by:
a.The maximum current its output can supply safely in a given logic state (IOH or IOL), and
b.The current requirements of the load to which it is connected (IIH or IIL).
Figure 11.6 shows the fanout of an AND gate when its output is in the HIGH and LOW states. The AND gate, or driving gate, supplies current to the inputs of the other four gates, which are called the load gates.
Each load gate requires a fixed amount of input current, depending on which state it is in. The sum of these input currents equals the current supplied by the driving gate. The
FIGURE 11.6
Driving Gates and Load Gates
11.3 • Fanout |
507 |
Solution Since there are two identical load gates in the circuits of Figure 11.8, the driving gate output current will be twice the load gate input current.
IOL 2 0.4 mA 0.8 mA.
IOH 2 ( 20 A) 40 A.
Figure 11.9 shows the extension of the circuits in Figures 11.7 and 11.8, where the number of load gates is the maximum that can be driven by the driving gate. This is the condition used to calculate fanout.
H |
IOL |
IIL |
H |
L |
1 |
IIL |
||
2 |
||
IIL |
||
nL |
||
a. Low output on driving gate |
||
L |
IOH |
IIH |
L |
H |
1 |
IIH |
||
2 |
||
IIH |
||
nH |
||
b. High output on driving gate
FIGURE 11.9
Output Current to Fanout Calculation
If the load gates each represent the same load, then by Kirchhoff’s current law (KCL):
IOL IIL1 IIL2 … IILnL nL IIL
and IOH IIH1 IIH2 … IIHnH nH IIH
The fanout of the driving gate in the LOW and HIGH states can be calculated as:
nL |
IOL |
||
IIL |
|||
and nH |
IOH |
||
IIH |
|||
By convention, current entering a gate (IIH, IOL) is denoted as positive, and current leaving a gate (IIL, IOH) is denoted as negative. When current is leaving a gate, we say the gate is sourcing current. When current is entering a gate, we say the gate is sinking current.
Note that the output of a gate does not always source current, nor does an input always sink current. The current direction changes for the HIGH and LOW states at the same terminal. The reason for this will become apparent when we study the circuitry of logic gate inputs and outputs.
508 |
C H A P T E R |
1 1 • Logic Gate Circuitry |
EXAMPLE 11.6 |
How many 74LS00 inputs can a 74LS00 NAND gate drive? (that is, what is the fanout of |
|
a 74LS00 NAND gate?) |
||
Solution We must consider the following cases:
a.When the output of the driving gate is LOW
b.When the output of the driving gate is HIGH
Output LOW:
IOL 8 mA (sinking)
IIL 0.4 mA (sourcing) nL 8 mA/0.4 mA 20
Output HIGH:
IOH 0.4 mA (sourcing) IIH 20 A (sinking)
nH 0.4 mA/20 A 20
Since nL nH, fanout is 20.
We disregard the negative sign in our calculations, since the input current of the load gate and output current of the driving gate are actually in the same direction. For example, even though IOH is leaving the driving gate (negative), IIH is entering the load gates (positive). These currents flow in the same direction. If we include the minus sign in our calculation, we get a negative value of fanout, which is meaningless.
The fanout in both HIGH and LOW states is the same in this case, but that is not always so. If the values of HIGHand LOW-state fanout are different, the smallest value must be used. For example, if a gate can drive four loads in the HIGH state or eight in the LOW state, the fanout of the driving gate is four loads. If we attempt to drive eight loads, we can’t guarantee enough driving current to supply all loads in both states.
If a gate from one logic family is used to drive gates from another logic family, we must use the output parameters (IOL, IOH) for the driving gate and the input parameters (IIL, IIH) for the load gates.
EXAMPLE 11.7 |
Calculate the maximum number of Schottky TTL loads (74SXX series) that a 74LS86 |
XOR gate can drive. |
|
Solution |
Driving gate: |
74LS86 |
IOH 0.4 mA, |
IOL 8 mA |
||
Load gates: |
74SXX |
IIH 50 A, |
IIL 2 mA |
Output LOW:
IOL 8 mA (sinking) IIL 2 mA (sourcing) nL 8 mA/2 mA 4
Output HIGH:
IOH 0.4 mA (sourcing) IIH 50 A (sinking)
nH 0.4 mA/50 A 8
Since nL nH, fanout nL 4.