BitFlow
← Academy·Logic Families
⏚Core~35 min

Logic Families

TTL, CMOS and ECL: what real gates do to voltages, how many others they can drive, how fast they go and how much power they burn.

Gates are analog underneath

So far a gate has been a perfect box with a truth table. Real gates are built from transistors that draw current, take time, and only roughly reach 0 V or the supply. A logic family is a set of chips built the same way, so they share the same voltage levels and can be wired together.

You choose a family for four things: noise margin, speed, fan-out and power. They trade off against one another, so every family is a different compromise.

FamilyBuilt fromWhere you'll see it
TTL (74, 74LS)Bipolar transistorsOlder boards, teaching labs
CMOS (74HC, modern chips)NMOS and PMOSNearly everything today
ECLBipolar, never fully offVery fast, specialist systems

From voltage to bit

The clearest picture of a logic gate is its voltage transfer curve: output voltage against input voltage. A good gate has long flat regions and a steep drop between them.

Loading the animation…

The steep part is why gates clean up noise. A messy input anywhere on the flat part produces the same clean output, as you saw in Chapter 1. Four numbers from a datasheet describe the curve's useful corners.

FigureMeaning
V_OH (min)The lowest voltage a high output is guaranteed to give
V_OL (max)The highest voltage a low output is guaranteed to give
V_IH (min)The lowest input voltage guaranteed to read as high
V_IL (max)The highest input voltage guaranteed to read as low
NM_H = V_OH − V_IH NM_L = V_IL − V_OL
The noise margins: how much noise each level can take.
FamilyV_OHV_OLV_IHV_ILNM_HNM_L
TTL (5 V)2.40.42.00.80.40.4
74LS (5 V)2.70.52.00.80.70.3
74HC CMOS (5 V)4.40.13.51.50.91.4
ECL 10K (−5.2 V)−0.98−1.63−1.105−1.4750.1250.155
Typical datasheet values in volts. Always check the datasheet of the part you're using.
Practice

A gate has V_OH = 3.5 V, V_OL = 0.2 V, V_IH = 2.5 V and V_IL = 1.0 V. What is its overall noise margin, the smaller of the two?

Speed, fan-out and power

Propagation delay is measured from the input crossing halfway to the output crossing halfway. A falling output and a rising output usually differ, so datasheets give t_PHL and t_PLH, and the delay is their average.

t_pd = (t_PHL + t_PLH) / 2

Fan-out is how many gate inputs one output can drive. In TTL, inputs draw real current, so it's a matter of current budget. Work out both states and take the smaller answer.

fan-out = min( I_OL / I_IL , I_OH / I_IH )
Worked example: Fan-out of standard TTL

A 7400 output can sink I_OL = 16 mA and source I_OH = 400 µA. An input draws I_IL = 1.6 mA and I_IH = 40 µA. What is its fan-out?

  1. Low state: 16 mA ÷ 1.6 mA = 10.
  2. High state: 400 µA ÷ 40 µA = 10.
  3. Take the smaller.

Answer:10

CMOS inputs draw almost no steady current, but each one is a small capacitor. Fan-out there isn't a hard limit, it's a slowdown: every extra input adds capacitance that the output must charge through its transistor's resistance. Try it here.

Loading the animation…

That same capacitance sets the power. Every time a node charges and discharges, it burns energy, even if nothing downstream needed the change.

P_dynamic = α × C × V² × f
α is the activity factor: how often the node switches, per clock.
  • Voltage counts twice in that formula, which is why chips run at about 1 V today rather than 5 V.
  • Static power is what's left when nothing switches. In CMOS, that's leakage. It was once negligible, but in very small transistors it's a major concern.
  • Speed-power product multiplies delay by power, to compare families in a single figure. Smaller is better.
Practice

A node of 10 pF switches on every clock cycle (α = 1) at 100 MHz and 1 V. What's its dynamic power?

Three kinds of output

Output typeHow it drivesCan outputs be joined?
Totem-pole / push-pullActively high and actively lowNo. One high and one low make a short circuit
Open-collector / open-drainActively low only, with a pull-up resistor for highYes: any one output pulling low wins (wired-AND)
Tri-stateHigh, low, or disconnectedYes, if only one is enabled at a time

Tri-state outputs let many devices share one wire, called a bus. Each has an enable, and when it's off the output behaves as if it weren't connected. That third state is written Z, for high impedance.

Loading the circuit…

Two drivers share one wire. Enable one at a time and the reader sees that driver's data. This simulator shows a bus with nobody driving it as 0, while a real one floats, which is why real buses often have a pull-up or a keeper.
  • Turn on en1 and flip d1: the reader follows it.
  • Turn en1 off and en2 on: now it follows d2.
  • Never enable both in real hardware. If they disagree, the two outputs fight, and the chips can overheat.
NoteI²C works through open-drain wired-AND. Any device can pull the line low, and it only goes high if nobody is pulling. This is also how several devices on it can detect a collision.

Mixing families and unused inputs

To connect two chips, the driver's output levels must satisfy the receiver's input levels: V_OH(driver) must be at least V_IH(receiver), and V_OL(driver) at most V_IL(receiver). Compare the table above and you'll see a classic trap.

Worked example: Can TTL drive 74HC?

A TTL gate has V_OH = 2.4 V, and a 74HC input has V_IH = 3.5 V. Will a high get through?

  1. 2.4 V is below 3.5 V, so a TTL high isn't guaranteed to read as high.
  2. The low side is fine: 0.4 V is below 1.5 V.

Answer:Not reliably. Use a 74HCT input, which has TTL-style thresholds, or a level shifter.

Watch outNever leave a CMOS input unconnected. It floats at some middle voltage, both transistors can turn on, and the chip wastes power or oscillates. Tie unused inputs high or low. A floating TTL input usually reads as high, but don't rely on that either.
Practice

A 3.3 V CMOS output (V_OH = 3.2 V) drives a 5 V 74HC input (V_IH = 3.5 V). What happens?

How a chip is built

Every gate in this chapter ends up as transistors in silicon, joined by wires. A chip is made in layers: the transistors are formed in the bottom few, and everything above them is wiring and insulation. Step through the layers from the silicon up.

Loading the animation…

Wires near the bottom are thin and short, and they join neighbouring transistors. Wires near the top are thicker and carry power, ground and the clock across the whole chip. Each layer is made by the same repeating steps: deposit a material, pattern it with light, and etch away what is not wanted.

Exam figuresGATE: fine to skip at first

An n-input CMOS NAND or NOR uses 2n transistors: n PMOS and n NMOS. An inverter uses 2. The series stack is the slower side, so a NAND's pull-down and a NOR's pull-up limit speed. Since PMOS carries current less well than NMOS, NAND is usually preferred over NOR.

ECL gets its speed by never letting its transistors saturate, so they switch without having to clear stored charge. The price is steady power draw and small noise margins.

Practice · GATE-style

An output has I_OL = 8 mA and I_OH = 400 µA. Each input it drives has I_IL = 0.4 mA and I_IH = 50 µA. What's the fan-out?

Practice · GATE-style

A CMOS chip's supply falls from 1.2 V to 0.9 V with the same clock. By how much does its dynamic power fall, roughly?

Practice · GATE-style

A signal passes through 6 gates with t_PHL = 4 ns and t_PLH = 6 ns on average. Roughly how long is the path's delay?

Practice · GATE-style

How many transistors does a static CMOS 3-input NOR gate use?

Was this chapter helpful?