Файл: 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


506 C H A P T E R 1 1 • Logic Gate Circuitry

fanout is determined by the amount of current the driving gate can supply without damaging its output circuit.

The input and output currents of a gate are established by its internal circuitry. These values are usually the same for two gates in the same family, since the input and output circuitry of a gate is common to all members of the family. Exceptions may occur when the output of a particular gate, such as the 74XX244 octal three-state buffer, has additional output buffering or an input of a gate such as a 74LS86 Exclusive OR is equivalent to more than one input load.

EXAMPLE 11.4

FIGURE 11.7

Example 11.4

Output Current due to One Load Gate

The gates in Figure 11.7a and b are 74LS00 NAND gates. Determine the output current of the driving gate in each figure.

H

L

H

IOL IIL

a. Low output on driving gate

L

IOH IIH

L

H

b. High output on driving gate

Solution From the 74LS00 data sheet, IIL 0.4 mA and IIH 20 A. (There are two values of IIH given in the data sheet. Choose the one for the condition VIN 2.7 V, which is the minimum output voltage of a driving gate in the HIGH state (VOH). The other value is not appropriate since a gate will never have a 7 V output, as specified in the condition, if its supply voltage is 5 V.)

Since the driving gate is driving one load, its output current is the same as the input current of the load gate. Therefore, the driving gate output currents are given by IOL 0.4 mA (positive, since it is entering the driving gate output) and IOH 20 A (negative, since it is leaving the driving gate output).

EXAMPLE 11.5

FIGURE 11.8

Example 11.5

Output Current due to Two Load Gates

Determine the output current of the driving gate in each of Figures 11.8a and b if the gates are all 74LS00 NAND gates.

H

IOL IIL

H

L

IIL

a. Low output on driving gate

L

IOH

IIH

L

H

IIH

b. High output on driving gate


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.