G2.1.1 Noise Margins from a Transfer Curve

EasyImplementIcarus · browser samples / server checksReview the topic

Read the four logic levels of an inverter from its measured transfer curve and compute both noise margins.

Hardware context: A SKY130 inverter with a wide PMOS used as a line receiver on a sensor board. Read the logic levels from a measured transfer curve and compute the noise margins.

A sensor board uses an inverter with a wide PMOS as its line receiver. Before the layout is fixed, the team wants to know how much noise the line may carry. You have the measured transfer curve of the inverter as a table.

This is an Implement problem with no logic in it. Your answer is six constants, all in millivolts: the four levels and the two noise margins. The check compares each constant with the value from the measurement.

Find the two rows where the slope of the curve is −1. They give the input levels. The outputs in those two rows give the output levels. The inverter drives a copy of itself, so the margins use these same four levels.

Signals in the Timeline

SignalWidthRole
item8input of each check
Full specification
Input (mV)Output (mV)Slope of the curve
20018000.00
40018000.00
6001798−0.04
7001785−0.30
7661747−1.00
8001696−2.16
893893−11.09
900817−11.01
100096−1.45
101973−1.00
12006−0.10
160000.00

The table is the transfer curve of a SKY130 inverter at a supply of 1800 mV. The PMOS is 3 µm wide and the NMOS is 1 µm wide. The slope is the change of the output for a small change of the input.

ConstantMeaning
VILThe highest input voltage that is a valid 0.
VIHThe lowest input voltage that is a valid 1.
VOHThe output voltage when the input is at VIL.
VOLThe output voltage when the input is at VIH.
NMLThe low noise margin: how much noise a 0 can collect.
NMHThe high noise margin: how much noise a 1 can collect.

Write whole millivolts. Keep the module name answer and its six outputs. Change only the six constants.

Examples

Example 1

The Levels Must Be in Order
Input
VOL < VIL < VIH < VOH
Output
levels_in_order = yes

A gate sends a 0 below the level that it accepts as a 0. It sends a 1 above the level that it accepts as a 1. So the four levels are always in the order VOL, VIL, VIH, VOH.

Example 2

A Margin Is a Difference of Two Levels
Input
NML and NMH below 1800 mV
Output
margins_below_supply = yes

Both margins are differences of voltages between 0 and the supply. So each one is smaller than 1800 mV.

Example 3

The Switching Point Is Inside the Forbidden Zone
Input
VIL < 893 mV < VIH
Output
switching_point_between = yes

At 893 mV the output equals the input, and the curve is at its steepest. A valid 0 lies below this point and a valid 1 above it.

Constraints and Contract

  • Keep the module name answer and its six outputs.
  • Each constant is a whole number of millivolts from 0 to 1800.

Hints

Hint 1

The curve is flat at both ends and steep in the middle. The input levels are the two borders of the steep part: the rows with a slope of exactly −1.

Hint 2

One row has the same input and output voltage. That is the switching point. It lies inside the steep part, so it is not a level.

Hint 3

A margin compares what is sent with what is accepted, for the same logic value. For a 0, the sender gives VOL and the receiver accepts up to VIL.

What the grader checks: The check compares six constants with values from one ngspice run on SKY130 at the typical corner. The levels are read at the unity-gain points of the curve and rounded to 1 mV. Other corners, temperatures and loads give other levels.

9 checks on Icarus · browser samples / server checks. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain public samples only. A passing result establishes the tested cases, not a proof for all possible inputs.

See all 1 steps and the final capstone

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

The Levels Must Be in Order

Input
VOL < VIL < VIH < VOH
Expected output
levels_in_order = yes

A gate sends a 0 below the level that it accepts as a 0. It sends a 1 above the level that it accepts as a 1. So the four levels are always in the order VOL, VIL, VIH, VOH.

Run samples executes all 3 public checks. Check all tests runs 9 checks on the server.

Icarus · browser samples / server checks