Write the noise bench that signs off a current-source transistor on its thermal floor and its flicker corner. It must pass three correct devices and fail four faulty ones.
Circuit context: The NMOS of a 40 µA current source that biases a sensor front end, with 1.0 V on its drain. Write the noise sign-off bench for a current-source transistor.
A sensor front end takes its 40 µA bias from one NMOS current source. The noise current of that device flows straight into the signal path. Two numbers describe it: the thermal floor and the flicker corner.
The thermal floor is the flat part of the drain-current noise density, far above the corner. The flicker corner is the frequency where the flicker part equals the thermal part.
Write the bench. Bias the device in the subcircuit dev at 40 µA with 1.0 V on its drain. Measure the floor and the corner of its drain-current noise, compare each with its limit, and print the verdict as pass.
The grader swaps each device it tests into your dev block. Your device and two hidden correct devices must get pass = 1. Four hidden faulty devices must not pass. Two of them break only the corner limit, and two break only the floor limit.
What the Grader Measures
Your bench, with each of these designs swapped into dev; it must print pass = 1 on the good ones and not on the faulty ones.
| Requirement your bench checks | Limit |
|---|---|
| Thermal floor of the drain-current noise at I_D = 40 µA, V_DS = 1.0 V | ≤ 2.8 pA/√Hz |
| Flicker corner (flicker part = thermal part) at the same bias | ≤ 340 kHz |
| Design | Your verdict must be |
|---|---|
| The W = 12 µm, L = 6 µm device in your netlist | PASS |
| A correct device drawn as two 7/6 transistors in parallel | PASS |
| A correct device at W = 9 µm, L = 7 µm | PASS |
| 4 hidden faulty designs | FAIL |
Full specification
| Requirement | Limit | Conditions (tt, 27 °C) |
|---|---|---|
| Thermal floor of the drain-current noise | ≤ 2.8 pA/√Hz | I_D = 40 µA, V_DS = 1.0 V; the density where the spectrum is flat |
| Flicker corner | ≤ 340 kHz | the same bias; the frequency where the flicker part equals the thermal part |
let pass = ... * 1 if the floor and the corner both meet their limits, 0 if not
print pass
Every hidden device sits at least 5 % from the floor limit and 10 % from the corner limit. A bench that finds the floor within 5 % and the corner within 10 % decides every device correctly. A design for which your bench prints no verdict counts as FAIL, and so does a run that stops with an error. The grader writes .lib sky130 tt itself.
Examples
Example 1
The Reference Device in the Reference Bench- Setup
bias found at 40 µA; noise from 1 Hz to 1 GHz, 20 points per decade; floor read at 100 MHz
- Measured
vgs = 0.9397 V floor = 2.531 pA/√Hz corner = 295.3 kHz pass = 1
The floor is 10 % inside its limit and the corner 13 % inside. The corner is where the total reaches √2 times the floor.
Example 2
The Same Device, the Density at 1 MHz Taken as the Floor- Setup
meas ac ith FIND sid AT=1meg
- Measured
floor = 2.944 pA/√Hz pass = 0
One megahertz is only three times above the corner. Flicker noise still adds 16.8 % there, and the bench fails a good device.
Example 3
The Same Device, a 1/f Line Drawn from the 10 Hz Point- Setup
let fc = 10*(s10/ith)^2
- Measured
corner = 57.20 kHz
The model's flicker power falls as 1/f^{0.84}, slower than 1/f. The line reaches the floor five times too early, so a device with a high corner passes.
Constraints and Contract
- Keep exactly one .subckt dev d g ... .ends block. The grader replaces it with each device it tests, so changes inside it are not graded.
- The bench sees the device only through its two ports. The source and body are ground inside. The hidden devices use other instance names and some have more than one transistor, so read only the total noise.
- Print the verdict as pass; any value of at least 0.5 counts as PASS.
Hints
Hint 1
Each device needs its own V_GS for 40 µA. A DC sweep with meas dc ... WHEN finds it, and alter sets the source to it.
Hint 2
The bench sees only the total density. Flicker and thermal noise add as powers. What is the total, as a multiple of the floor, where the two parts are equal?
Hint 3
Read the floor where the flicker part is far below it: at least 100 times above the corner. One decade above is too close.
Hint 4
A meas at the last frequency of the sweep can fail. Read the floor at a frequency inside the sweep.
What the grader checks: The grader runs your bench on the reference device, two hidden correct devices and four hidden faulty ones. It compares your printed verdict with the right one for each. It grades the decisions, not the numbers you print. Engine: ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models, measured 2026-11-12 with tools/spice-judge.mjs, tt, 27 °C. The noise is the SKY130 model's (BSIM4), not a silicon measurement. Other corners, temperatures and bias points are outside this spec.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only your bench and makes 7 ngspice runs, one per design. The numbers come from ngspice and the SKY130 models the site pins; they prove the measured cases, not every condition a chip meets.
See all 1 steps and the final capstone