12
\$\begingroup\$

If you look for an inverter circuit on Google Images, you'll find something that looks like this:

enter image description here

This inverter design has a single NPN transistor. However, on Wikipedia's article about transistor count, inverters are listed as having two transistors. Wikipedia states that this number is based off of CMOS technology, and if you search for a CMOS inverter, you get this image instead. enter image description here This design does have two transistors: one PNP and one NPN MOSFET. However, I've always been perplexed as to why people do not use the former method for chip manufacturing. After all, Wikipedia would not have stated that inverters required two transistors if the first method was widely used in making chips. Why is there a difference between the CMOS and the BJT method of creating a circuit as simple as a NOT gate?

\$\endgroup\$
4
  • 9
    \$\begingroup\$ Because CMOS NOT BJT! One works on current, the other voltage. Different technologies. \$\endgroup\$ Jun 10 at 4:00
  • 10
    \$\begingroup\$ There's no such thing as a PNP or NPN MOSFET. The terms PNP and NPN refer specifically and only to BJTs. The equivalents for MOSFETs are P-channel and N-channel, respectively. \$\endgroup\$
    – Hearth
    Jun 10 at 4:02
  • 8
    \$\begingroup\$ Do a search for TTL inverter to see a different BJT based solution. and NMOS ionverter to see a different MOSFET based one. \$\endgroup\$
    – Jasen
    Jun 10 at 5:15
  • 7
    \$\begingroup\$ It's the C in CMOS. You can equally well design Complementary BJT inverters that will look a lot (more) like that CMOS stage. Or NMOS or PMOS inverters which look like the NPN BJT circuit or its PNP equivalent. \$\endgroup\$ Jun 10 at 13:02
31
\$\begingroup\$

However, I've always been perplexed as to why people do not use the former method for chip manufacturing.

  1. In chip design, resistors take up more area than transistors, and area is one of the main drivers of chip cost.

  2. In the BJT design, when the output is low, there is a current running continuously through the resistor. This consumes power and produces heat. In the CMOS design, when the output is low the PMOS device is in cut-off operation and practically no current flows through it, therefore the power consumption is very low.

\$\endgroup\$
3
  • 5
    \$\begingroup\$ Historically, many chips did use the former approach, but with a "passive" transistor replacing the resistor, since such an approach avoids the need to use a process that can fabricate P-channel MOSFETS. I wouldn't be surprised if some current-manufacture chips for applications where cost is more important than current draw still do so, since NMOS chips would require fewer fabrication steps than CMOS. \$\endgroup\$
    – supercat
    Jun 10 at 17:32
  • \$\begingroup\$ Comsumption is very low in steady cases. Note that consumption increases when the switching frequency increases. There is a "not insignificant" power per cycle and if the number of cycles increases per unit of time, consumption increases proportionally ... It is a general law for all these CMOS components. \$\endgroup\$
    – user288518
    Jun 12 at 10:04
  • \$\begingroup\$ now current flows through it --> no current flows through it \$\endgroup\$
    – anhnha
    Jun 13 at 18:06
23
\$\begingroup\$

It's possible to build this circuit with 2 BJT's or one MOSFET

You're reading too much into it.

The difference isn't the technology of the transistor, it's method of circuit operation

In the first circuit, you can STRONGLY SINK current (drive a very strong logic "0"), but you can't strongly SOURCE current (your logic "1" has to pass current through the pull-up resistor, so there will be voltage loss)

The second topology allows you to both source AND sink current very strongly.

The 'weak' or 'strong' output determines the possible fan-out (how many gates can be controlled with this signal) and the speed of the logic transition.

Great question - Gave you a "+1" :)

\$\endgroup\$
0
20
\$\begingroup\$

Your circuit with the bjt is RTL (resistor transistor logic). There’s DTL, TTL, ECL, PMOS, NMOS and CMOS. There’s others as well, but you can research these if you’re interested.

Basically there’s a number of different ways to implement digital logic. Each has their advantages and disadvantages. CMOS tends to be the favourite these days due to its low power.

\$\endgroup\$
4
  • 6
    \$\begingroup\$ It would be worth pointing out that almost all logic ICs that are not CMOS are based on TTL (such as the 74xx series), and TTL often uses push-pull (totem-pole) outputs just like the CMOS example. RTL is extinct. \$\endgroup\$
    – TooTea
    Jun 10 at 14:37
  • \$\begingroup\$ Also worth pointing out even with the 74xx series, one is most likely to encounter the 74HC series, which are CMOS. \$\endgroup\$
    – Phil Frost
    Jun 11 at 16:19
  • \$\begingroup\$ @PhilFrost I remember when 74HC was brand new and quite rare. Get off my lawn, kid! \$\endgroup\$ Jun 12 at 2:21
  • \$\begingroup\$ It's worth reading Ken Shirriff's blog on the logic of the IBM1401 to get a feel for how it was done with discrete components. Actually, it's worth reading Ken's blog - period. It's hard not to have learnt something whilst reading it. \$\endgroup\$
    – Kartman
    Jun 12 at 2:44
4
\$\begingroup\$

Several reasons:

Firstly, it's counter-intuitive to someone used to designing with discrete components, but in IC design transistors are cheap and everything else is expensive. In the days when pull-ups were used in IC design they were frequently done with weak transistors instead of resistors.

Secondly CMOS has the huge advantage of very low power consumption when not switching, because the gate of a CMOS transistor is essentially a capacitor and passes no DC current and only one of the transistors is switched on at a time so there is no significant DC current by that path either.

Thirdly because CMOS actively drives the output in both directions, the performance is closer to symmetrical. A device that relies on a pull-up resistor (or weak transistor) will have a fast fall time, but a much slower rise time. Similarly it will have a much lower impedance output when in the low state than when in the high state.

CMOS does come at the price of needing two different types of transistor, that does complicate the fabrication process but it's a small price to pay for the advantages mentioned above.

\$\endgroup\$
3
\$\begingroup\$

The short answer is that you are not comparing apples to apples.

Your google image of a single-transistor inverter is not a NOT gate. A bipolar logic (TTL, ECL, LSTTL, Shottkey, whatever) inverter (NOT gate) is much more complex than something left over from the RTL days.

To be fair, you could translate the approach used in a CMOS inverter to bipolar components, with a PNP transistor on the top and an NPN transistor on the bottom. But you cannot just tie the two bases together as you can in CMOS. There would have to be a string of biasing components, such as two resistors and two zener diodes.

Another issue is that TTL output stages are not symmetrical as CMOS ones are, so the inverter input biasing string would have to take this asymmetry into account.

\$\endgroup\$
1
\$\begingroup\$

Great Question. As others have stated, the first topology consumes constant power when the output of the inverter is low (logic "0"). Allow me to expand upon this with the MOSFET equivalent. As shown below, the resistor-transistor logic (RTL) inverter has a very similar topology, except for the absence of a resistor on the base (gate in this case, as it is an n-channel MOSFET). Another difference is that there is a capacitance at the output node to GND in this schematic, but that does not affect the answering of the question.

schematic

simulate this circuit – Schematic created using CircuitLab

Given the circuit, the same logic applies. If the desired output at Vout is a logic "0", it can be assumed that the input "Vin" is high at a logic "1". This means that the NMOSFET is "on" and current is flowing through it. In this case, the output voltage will fall to 0V (given the capacitance C was previously charged due to a previous "1" output state). Even after the node falls to 0V, there is still a connection between Vcc and GND through the resistor R and MOSFET. Current through the resistor (and the equivalent resistance of the MOSFET) means power dissipation, and this is constant. Thus, this MOSFET version of the RTL inverter also has the same issue.

In the second circuit (the CMOS inverter), "steady state" at the output (either logic "1" or logic "0") means either the PMOS is on and the NMOS off, or the NMOS on and the PMOS off (respectively). In both cases, there is no direct connection between Vcc and GND, so no current at steady state.

EDIT: An Addition if you are Curious - CMOS Power Dissipation

I have noticed other comments mention that the CMOS inverter has been widely chosen out of power considerations for reasons elaborated upon above. This is true. HOWEVER, this does not mean that the CMOS inverter does not have "power problems" of its own. I mention this as these problems have ramifications on current CMOS technology in many of the products we use today. There are actually a few different ways in which power is dissipated in the CMOS inverter, both dynamic AND static. Included below:

Static

  1. Subthreshold leakage (dominant source of static power dissipation, at least in CMOS inverters)
  2. Junction leakage - This is attributable to the fact that there are two pn junctions in a MOSFET. Under reverse bias, a very small amount of reverse leakage current flows. Typically on the order of a few pico-amps, but can add up when there are many devices in a circuit (on the order of billions, as in modern microprocessors).

Dynamic

  1. Capacitive Switching (dominant source of dynamic power dissipation)
  2. Transient short-circuit ("crowbar current") - This occurs when both the load and driver are on while a non-ideal (real) input transitions.

I encourage you do look into these if you're curious, as they each deserve their own thread. Just wanted to include to give some more context on power dissipation in these types of circuits, as it has a big impact on the design of digital electronics.

\$\endgroup\$
1
  • \$\begingroup\$ Mainly because of biasing requirements for the BJT. \$\endgroup\$
    – Gil
    Jun 13 at 3:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.