TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Inverter Madness Interview Question: Noise Margins

The Editor's Desk
by
1
Share Facebook X LinkedIn WhatsApp Email

Noise margins decide whether a gate can be trusted as a digital building block. This "inverter madness" interview question, posted here in November 2007, gives you voltage transfer characteristics (VTCs) and asks a simple thing: can you choose input and output thresholds so that every valid input gives a valid output, with room left over for noise? The two questions come from the MIT 6.111 tutorial problems on the digital abstraction. Answers and the reasoning follow.

The questions

  • The following graph plots the voltage transfer characteristic for a device with one input and one output. Can this device be used as a combinational device in a logic family with 0.75V noise margins?




  • You are designing a new logic family and trying to decide on values of the four parameters VIL, VOL, VIH, VOH that lead to non-zero noise margins for various possible inverter designs. Four proposed inverter designs exhibit the voltage transfer characteristics shown in the diagrams below. For each design, either (1) specify suitable values of VIL, VOL, VIH, VOH, or (2) explain why no values for these parameters satisfy the static discipline.



Difficulty: Medium

The idea in plain words

A digital signal is really an analog voltage. To treat it as a 0 or a 1, a logic family agrees on four numbers:

  • VOL: the highest voltage a gate may output for a 0.
  • VOH: the lowest voltage a gate may output for a 1.
  • VIL: the highest input voltage a gate must still read as a 0.
  • VIH: the lowest input voltage a gate must still read as a 1.

The static discipline says that a combinational device given valid inputs must produce valid outputs. Outputs must be held to tighter limits than inputs accept; the gap between them is the noise margin, the amount of noise a wire can add before a good 0 or 1 is misread.

Why gain matters

For an inverter, the output must swing from at least VOH down to at most VOL while the input moves only from VIL to VIH. If the noise margins are positive, the output swing is larger than the input swing, so somewhere the slope of the VTC must be steeper than 1 in magnitude. A device whose gain never exceeds 1 cannot restore a noisy signal, so no choice of the four thresholds works. That one fact answers most of this question.

Short answers

  • First device: no. Its slope is never steeper than 1, so it cannot meet the static discipline with any non-zero noise margin, let alone 0.75 V.
  • Device A: yes, for example VOL = 1 V, VIL = 3.5 V, VIH = 5 V, VOH = 6 V.
  • Device B: no, its gain is never greater than 1.
  • Device C: no, its gain is never greater than 1.
  • Device D: yes, for example VOL = 0.5 V, VIL = 1 V, VIH = 3.5 V, VOH = 6 V.

These match the published answers in the MIT 6.111 tutorial problems linked above.

Deep dive: the numbers and details

This part holds the equations and the worked check of each curve. Skip it if the overview is all you need.

The definitions as equations

Static discipline (inverter):
  if Vin <= VIL  then Vout >= VOH
  if Vin >= VIH  then Vout <= VOL

Noise margins:
  NM0 (low)  = VIL - VOL
  NM1 (high) = VOH - VIH
  Noise margin of the family = min(NM0, NM1)

Validity:  VOL < VIL < VIH < VOH  (strict, for non-zero margins)

Why |gain| > 1 is required

Between VIL and VIH the input changes by VIH − VIL, while the output must change by at least VOH − VOL. Write that output swing as:

VOH - VOL = (VOH - VIH) + (VIH - VIL) + (VIL - VOL)
          = NM1 + (VIH - VIL) + NM0

With both margins positive, VOH − VOL is strictly larger than VIH − VIL. By the mean value theorem, the average slope over that input range is steeper than −1, so some region of the curve has |gain| > 1. The device must also be nonlinear: it needs gain above 1 in the middle and flat regions near the rails to hold valid outputs.

The first device

The curve sits at 4 V for inputs up to 1 V, falls in a straight line to 1 V at an input of 4 V, then stays at 1 V. The slope of the falling part is (1 − 4) / (4 − 1) = −1. Try the widest possible choice: VOH = 4 V and VOL = 1 V. For a 0.75 V margin we would need VIL = 1.75 V and VIH = 3.25 V. But an input of 1.75 V gives an output of only 3.25 V, below VOH. Any attempt to widen one margin shrinks the other by the same amount, because the slope is exactly 1. The best achievable margin is zero, so the answer is no.

Device A

The output is 6 V up to an input of 3.5 V and falls to 1 V at 5 V, a slope of about −5 / 1.5 = −3.3. Check the proposed values:

CheckValueResult
Vin ≤ 3.5 V gives Vout6 V ≥ VOH = 6 VPass
Vin ≥ 5 V gives Vout1 V ≤ VOL = 1 VPass
NM0 = VIL − VOL3.5 − 12.5 V
NM1 = VOH − VIH6 − 51 V

The family noise margin is 1 V, set by the high side. Note how lopsided the margins are: the switching region sits high, near 4 V, so a 1 has less room than a 0.

Devices B and C

Device B falls from 3 V at an input of 1 V to 0 V at 5 V, a slope of −0.75. Device C falls from 6 V at 1 V to 1 V at 8 V, a slope of about −0.71. Both are attenuators: each pass through the gate makes a noisy level worse, not better. Chain a few and every signal drifts into the forbidden zone. No thresholds work.

Device D

The curve drops steeply just above 1 V and flattens toward 0 V by about 3.5 to 4 V. With VIL = 1 V the output is still 6 V, and with VIH = 3.5 V the output is at or below 0.5 V. That gives NM0 = 1 − 0.5 = 0.5 V and NM1 = 6 − 3.5 = 2.5 V, so the family margin is 0.5 V. Other choices are possible as long as the checks still pass on the curve.

How to answer in an interview

  1. Write the static discipline and the two noise margin equations first.
  2. Look for a region with slope steeper than 1. If there is none, the answer is no, and say why.
  3. If there is one, pick VOH and VOL from the flat parts, then VIL and VIH at the edges of the steep part.
  4. Check both input conditions on the curve and state both margins.

Common mistakes

  • Picking thresholds where the slope is exactly −1 and claiming a positive margin.
  • Forgetting that the family margin is the smaller of NM0 and NM1.
  • Choosing VIL and VIH at the unity-gain points of a real CMOS inverter and then not checking that the outputs there meet VOH and VOL.
The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

1 Comments

Your comments will be moderated before it appears here.

  1. I have calculated the noise margins high and low for each design...ideally it should be 3v(VDD/2)..no design matches this condition...is it right????

    ReplyDelete
Post a Comment

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!