Why digital electronics section start with analysis of inverter?

AI Thread Summary
Digital electronics typically begins with the analysis of an inverter because it is the simplest gate to understand and model, serving as a foundation for more complex concepts like noise margins and power analysis. While NAND and NOR gates are universal, the inverter's straightforward design allows for easier analysis and teaching of fundamental principles. The inverter can be easily expanded into NAND or NOR configurations, making it a practical starting point. Additionally, understanding inverters helps in grasping specialized logic types like TTL and CMOS. Overall, starting with the inverter simplifies the learning process before introducing more complex gate functions.
PainterGuy
Messages
938
Reaction score
72
Hi,

Both NAND and NOR are considered to be universal gates. For example, NAND gates can be used in combination to perform the AND, OR, and inverter operations. The same could be said of NOR gate.

Then, why the digital electronics section of electronics textbooks almost always start with the analysis of an inverter. All the fundamental concepts such as noise margins, W/L, power analysis, etc., are explained in the context of an inverter. If NAND and NOR gates are universal, then, IMHO, those should be used.

What's the reason that the treatment of digital electronics start with an inverter? Is the reason being that the inverter circuit is easier to analyze? Could you please help me with it?
 
Engineering news on Phys.org
PainterGuy said:
All the fundamental concepts such as noise margins, W/L, power analysis, etc., are explained in the context of an inverter
The inputs of NAND and NOR gates have the same charcteristics as the input of an inverter. The logic functions are internal to the circuit.
 
  • Like
Likes PainterGuy
Start simple. The simplest gate to teach and model is the inverter.
It is easy to later change an inverter into a NAND or NOR gate.
NAND and NOR may be universal, but they are not ever-present, nor fundamental.

If you work with TTL logic, you will think in NAND. If you work with CMOS logic, you will think in NOR. If you work with I²L, you will think in terms of inverters with one input and multiple outputs, where the logic is determined by the way the outputs are connected together. https://en.wikipedia.org/wiki/Integrated_injection_logic
If you understand the generalised inverter, you can understand your speciality.
 
  • Like
Likes pbuk, PainterGuy and Klystron
Which came first? The chicken or the egg? Stop thinking about gates and think about functions. A NAND gate is made of an AND gate with a NOT gate on the output. The basics functions are AND, OR, and NOT. The basic functions are what should be and are taught first.
 
  • Like
Likes Tom.G and PainterGuy
Baluncore said:
If you work with CMOS logic, you will think in NOR.
Could you please elaborate on your statement? Thanks!
 
Averagesupernova said:
A NAND gate is made of an AND gate with a NOT gate on the output.
Maybe in logic but not in electronics.

Averagesupernova said:
The basics functions are AND, OR, and NOT.
Maybe in logic but not in electronics.

Averagesupernova said:
The basic functions are what should be and are taught first.
Yes. The basic TTL gate is an inverter (NOT). This is easily converted to a NAND from which all other gates are derived.
 
  • Like
Likes vela
PainterGuy said:
Then, why the digital electronics section of electronics textbooks almost always start with the analysis of an inverter. All the fundamental concepts such as noise margins, W/L, power analysis, etc., are explained in the context of an inverter.
Yes, and in the next chapter you will see that by adding one transistor you convert your (TTL) inverter into a NAND gate with the same noise margins etc.
 
  • Like
Likes PainterGuy
PainterGuy said:
Could you please elaborate on your statement? Thanks!
Ask a difficult question, and I will have to answer it backwards.
Basically, a TTL output sinks current when low. High signals are most economic. The more high inputs, the less the signal power. A rarely used reset input will idle high to save power, so you must pull it momentarily low to reset the device, which is a form of negative logic. The most economic TTL gate then has most inputs high, which makes it a NAND gate. Once you get over the fact that conventional current flows out of a TTL input, it becomes obvious.

CMOS is a positive logic. A reset pin will stay low until it goes momentarily high to activate the function. To get a high output from an inverting gate, all inputs must be low which makes it a NOR gate.

pbuk said:
Yes, and in the next chapter you will see that by adding one transistor you convert your (TTL) inverter into a NAND gate with the same noise margins etc.
Not quite. To make more TTL NAND gate inputs, you only need to add another emitter to the one input transistor. It may come as a surprise that you can have such a thing as a multiple emitter transistor, or that emitters would be the input to the gate.
 
  • Like
Likes PainterGuy
Baluncore said:
Not quite. To make more TTL NAND gate inputs, you only need to add another emitter to the one input transistor.
Good point. Which makes it even more relevant to study first the single emitter case i.e. the inverter.

My advice to the OP is that if he spent less time complaining about what the book is trying to teach him and more time learning then he will make more progress.
 
  • Like
Likes hutchphd and anorlunda
  • #10
@pbuk I did say stop thinking about gates and think about functions didn't I? I suppose I should have said the NAND FUNCTION is made from AND with NOT hanging on the output. My point still stands. If you want to argue that AND is a NAND with NOT hanging on the output I won't stoop to that level if nonsense. Gates are about function. The practical application is certainly important but it doesn't come first.
 
  • Like
Likes Tom.G
  • #11
pbuk said:
My advice to the OP is that if he spent less time complaining about what the book is trying to teach him and more time learning then he will make more progress.

I wasn't complaining about it anything. Was just trying to know if there was any particular reason for introducing an inverter at the beginning.

Baluncore said:
CMOS is a positive logic. A reset pin will stay low until it goes momentarily high to activate the function. To get a high output from an inverting gate, all inputs must be low which makes it a NOR gate.

I should have mentioned it in my first post. In most books, TTL logic is only introduced toward the end and I think the reason could be that it's not that widespread anymore.

My question was about CMOS logic. In most books they start digital electronics with CMOS inverter.
 
  • #12
PainterGuy said:
In most books they start digital electronics with CMOS inverter.
Which they should. I can't think of anything simpler. One input, one output.
 
  • #13
Averagesupernova said:
Which they should. I can't think of anything simpler. One input, one output.
They should start with a single transistor inverter, so that the delay due to miller capacitance can be understood. A CMOS inverter requires a minimum of two transistors, with twice the miller capacitance.
It took over 20 years for the speed of CMOS to match that of TTL. Many textbooks were written before CMOS matured to the point where it was fast enough to be useful.
 
  • Informative
  • Like
Likes PainterGuy and berkeman
  • #14
PainterGuy said:
I wasn't complaining about it anything.
That's how it came across, particularly
PainterGuy said:
If NAND and NOR gates are universal, then, IMHO, those should be used.

Have you found before that something you have said has been interpreted as arrogant?
 
  • Like
Likes Averagesupernova
  • #15
For the area of a rectangle: Would you recommend teaching integrals to second to third graders instead of showing them simple base times height?
 
  • Like
Likes Averagesupernova
  • #16
PainterGuy said:
All the fundamental concepts such as noise margins, W/L, power analysis, etc., are explained in the context of an inverter. If NAND and NOR gates are universal, then, IMHO, those should be used.
Note that these concepts are about the electronic characteristics of the gate, not the logical function of the gate, so the fact that a boolean expression can be logically implemented using just NAND gates or just NOR gates is irrelevant.

PainterGuy said:
What's the reason that the treatment of digital electronics start with an inverter? Is the reason being that the inverter circuit is easier to analyze?
Yes, that's the reason. Start with the simplest and add on complications later. (You can also think of an inverter as a single-input NAND or NOR gate.)
 
  • Like
Likes PainterGuy, berkeman and pbuk
  • #17
Good replies and answers from all. Thank you.

This is a good time to tie off the thread, IMO. :smile:
 
  • Like
Likes Averagesupernova
Back
Top