Why digital electronics section start with analysis of inverter?

  • #1
940
69
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?
 

Answers and Replies

  • #2
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
  • #3
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
  • #4
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
  • #5
If you work with CMOS logic, you will think in NOR.
Could you please elaborate on your statement? Thanks!
 
  • #6
A NAND gate is made of an AND gate with a NOT gate on the output.
Maybe in logic but not in electronics.

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

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
  • #7
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
  • #8
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.

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
  • #9
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
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.

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
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
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
I wasn't complaining about it anything.
That's how it came across, particularly
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
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.

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

Suggested for: Why digital electronics section start with analysis of inverter?

Replies
1
Views
442
Replies
10
Views
736
Replies
39
Views
1K
Replies
33
Views
1K
Replies
14
Views
1K
Replies
26
Views
2K
Replies
14
Views
1K
Back
Top