Why does the TTL NAND gate use a 4 transistor design instead of 2?

 This is my answer to SE EE question Why does the TTL NAND gate use a 4 transistor design instead of 2?

My answer

Since the output part has been considered so far, I will make some assumptions about the input part that implements the logic function AND (NAND).

Basic logic idea

As a rule, basic logic functions OR and AND are implemented by connecting *electrically-controlled switches* in parallel and series. These techniques are widely used in MOS and CMOS logic gates... and also, in the second OP's circuit where transistors are used as switches. But how is this implemented in the first OP's circuit?

Here, diode elements (T1's base-emitter junctions) are used as switches that, according to the rule, should be connected in series. But diode switches cannot be connected this way because they cannot be controlled. The problem of diodes is that they are 2-terminal (1-port) switches where the input and output occupy the same two terminals anode and cathode (base and emitter) while true controlled switches such as transistors are 2-port devices. So diodes can be connected only in parallel thus implementing OR function.

Implementation

To make them act as AND gate, they used a clever trick - inverting the inputs according to De Morgan's laws. That is why, they forward-biased the base-emitter junctions by the base resistor RB1 and connected them in parallel (through the outputs of the previous stage). Thus the OR circuit inputs (with respect to LOW input signals) were inverted and already implemented AND function (with respect to HIGH input signals).

Fig. 1. Diode AND logic gate made from OR gate (taken from Wikimedia Commons)

I have explained this trick in the AND logic gate section of the Wikipedia page about diode logic.

Operation

Input logical "0" (at least one input). TTL gates exploit another clever trick both in the input and output part - if a single diode is connected in parallel to a string of diodes in series, the current is diverted (steered) to the single diode. See, for example, the movie from my personal Google Photos where my students connect a red LED (VF = 1.8 V) in parallel to a string of green and yellow diode (VF = 2.5 + 2.5 = 5 V); as a result, the red LED extinguishes the green and yellow one.

In TTL gates, the base-emitter junctions of the input multiple-emitter transistor T1 serve as "single diodes" and the network of its base-collector junction and T2 base-emitter junction in series serves as a "diode string".

So, when there is LOW applied to at least one input, its "diode" (with VF = 0.7 V) is connected in parallel to T1-T2 "diode string" (with VF = 0.7 + 0.7 = 1.4 V) and the whole T1 base current flows through the input "diode". As a result, there is no base current flowing through the T2 base-emitter junction and the latter is cut off.

**Input logical "1" (at all inputs).** In this case, all the "single diodes" are off. The whole T1 base current flows through the T2 base-emitter junction and T2 is on.

TTL advantages

If we compare the two solutions, we can see a significant advantage of TTL over the RTL input part. When at least one "0" is applied to an input, the multi-emitter transistor T1 is saturated and it shorts the T2 base-emitter junction. As a result, T2 is safely and quickly turned off.

Comments