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
| Signal | Width | Role |
|---|---|---|
item | 8 | input of each check |
Full specification
| Input (mV) | Output (mV) | Slope of the curve |
|---|---|---|
| 200 | 1800 | 0.00 |
| 400 | 1800 | 0.00 |
| 600 | 1798 | −0.04 |
| 700 | 1785 | −0.30 |
| 766 | 1747 | −1.00 |
| 800 | 1696 | −2.16 |
| 893 | 893 | −11.09 |
| 900 | 817 | −11.01 |
| 1000 | 96 | −1.45 |
| 1019 | 73 | −1.00 |
| 1200 | 6 | −0.10 |
| 1600 | 0 | 0.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.
| Constant | Meaning |
|---|---|
| VIL | The highest input voltage that is a valid 0. |
| VIH | The lowest input voltage that is a valid 1. |
| VOH | The output voltage when the input is at VIL. |
| VOL | The output voltage when the input is at VIH. |
| NML | The low noise margin: how much noise a 0 can collect. |
| NMH | The 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