Size a SKY130 inverter so that its output rises and falls in the same time into 20 fF, within 46 ps.
Circuit context: A two-input CMOS NOR gate made of four transistor switches. Size a SKY130 inverter so that its rise and fall delays into 10 fF match within ten percent.
A clock buffer must not change the shape of the clock. Its output has to rise as fast as it falls. An inverter with two transistors of the same width does not do that. The PMOS is the weaker type, so the rise is slow.
This is an Implement problem. Size the NMOS and the PMOS of the block inv. The check drives a 20 fF load and measures both delays, from 50 % of the input to 50 % of the output.
Both delays must be 46 ps or less, and the rise must be within 10 % of the fall. Wide transistors are fast, but their gates load the stage before. The charge that the input takes on one edge must stay at 13.5 fC or less.
What the Grader Measures
Your subcircuit inv (ports in, out, vdd) under the grader's own bench, one run per corner (tt):
| Check | Corner | Rule |
|---|---|---|
| Fall delay | tt | ≤ 46 ps |
| Rise delay | tt | ≤ 46 ps |
| Rise delay / fall delay | tt | 0.9 to 1.1 |
| Input charge | tt | ≤ 13.5 fC |
Full specification
.subckt inv in out vdd
* one sky130_fd_pr__nfet_01v8 and one sky130_fd_pr__pfet_01v8
.ends
| Check | Rule | How it is measured |
|---|---|---|
| Fall delay | ≤ 46 ps | input rising through 0.9 V to output falling through 0.9 V |
| Rise delay | ≤ 46 ps | input falling through 0.9 V to output rising through 0.9 V |
| Rise delay / fall delay | 0.9 to 1.1 | the two delays above, divided |
| Input charge | ≤ 13.5 fC | the charge the input source delivers while the input rises from 0 V to 1.8 V |
The check runs once, at the SKY130 typical corner (tt), 27 °C and a 1.8 V supply. The input edges take 50 ps and the output drives a 20 fF load.
Examples
Example 1
The Starter: Both Widths 1 µm- Design
.subckt inv in out vdd XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15 XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=1 L=0.15 .ends
- Measured by the grader
Fall delay: 55.82 ps (needs ≤ 46 ps) Rise delay: 132.2 ps (needs ≤ 46 ps) Rise delay / fall delay: 2.367 (needs 0.9 to 1.1) Input charge: 4.805 fC (needs ≤ 13.5 fC)
The rise takes 132.2 ps, more than twice the fall of 55.8 ps. Both are over the limit.
Example 2
NMOS 1 µm, PMOS 2.7 µm- Design
.subckt inv in out vdd XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15 XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=2.7 L=0.15 .ends
- Measured by the grader
Fall delay: 58.79 ps (needs ≤ 46 ps) Rise delay: 58.4 ps (needs ≤ 46 ps) Rise delay / fall delay: 0.9934 (needs 0.9 to 1.1) Input charge: 8.22 fC (needs ≤ 13.5 fC)
This is the balanced inverter of lesson G9.1. The ratio is 0.99, but into 20 fF both delays are near 59 ps.
Example 3
NMOS 1.5 µm, PMOS 5.2 µm- Design
.subckt inv in out vdd XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1.5 L=0.15 XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=5.2 L=0.15 .ends
- Measured by the grader
Fall delay: 45.12 ps (needs ≤ 46 ps) Rise delay: 37.87 ps (needs ≤ 46 ps) Rise delay / fall delay: 0.8392 (needs 0.9 to 1.1) Input charge: 14.63 fC (needs ≤ 13.5 fC)
Now the PMOS is too strong. The rise is 37.9 ps against a fall of 45.1 ps, and the input charge is over its limit.
Constraints and Contract
- The netlist defines .subckt inv in out vdd ... .ends exactly once, with these ports in this order.
- Inside inv: X instances of sky130_fd_pr__nfet_01v8 or sky130_fd_pr__pfet_01v8, with comments and .param lines. No sources, resistors or capacitors. Use m= for parallel copies; mult= is refused.
- The check writes the .lib line itself. Everything outside inv is replaced by its own bench.
Hints
Hint 1
Run the starter and read the two delays. The NMOS sets the fall and the PMOS sets the rise. Decide which transistor needs to change.
Hint 2
First balance the two delays by widening the PMOS. The fall also moves a little, because a wider PMOS adds capacitance at the output.
Hint 3
A balanced inverter that is still too slow must grow as a whole. Scale both widths together and watch the input charge: it grows with the total gate width.
What the grader checks: The check places inv under its own bench: 1.8 V, tt, 27 °C, 20 fF and 50 ps edges. Hidden .meas lines measure the two delays, their ratio and the input charge. The tool is ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models, measured 2026-11-12 with tools/spice-judge.mjs. The result holds for this load and corner. Other loads, corners and input edges are outside this problem.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit inv and makes 1 ngspice run. 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 2 steps and the final capstone