A clock driver burns 421 fJ per cycle to drive a load that needs 194 fJ. Find where the rest goes and remove it, without slowing the output edges too far.
Circuit context: Clock driver inverter with a capacitive load. Separate the energy of the load from the energy the driver spends on itself.
A clock driver is one inverter. It drives a 60 fF load at 100 MHz from a 1.8 V supply. Its input arrives over a long wire, with 2 ns edges.
The load itself needs C·VDD² = 60 fF × (1.8 V)² = 194 fJ per cycle. The supply delivers 421 fJ. More than half of the energy never reaches the load.
Fix the driver, the subcircuit drv. It must spend at most 260 fJ per cycle. Its output must still rise and fall within 300 ps, measured from 20 % to 80 % of the supply. Lesson W1.1 shows the three places where the energy of a gate can go.
What the Grader Measures
Your subcircuit drv (ports in, out, vdd) under the grader's own bench, one run per corner (tt):
| Check | Corner | Rule |
|---|---|---|
| Energy per cycle | tt | ≤ 260 fJ |
| Output rise time | tt | ≤ 300 ps |
| Output fall time | tt | ≤ 300 ps |
Full specification
.subckt drv in out vdd
* sky130_fd_pr__nfet_01v8 and sky130_fd_pr__pfet_01v8 instances only
.ends
| Check | Rule | How the grader measures it |
|---|---|---|
| Energy per cycle | ≤ 260 fJ | The charge that leaves the supply from 11 ns to 21 ns, times 1.8 V |
| Output rise time | ≤ 300 ps | From 0.36 V to 1.44 V on the second rising edge of out |
| Output fall time | ≤ 300 ps | From 1.44 V to 0.36 V on the second falling edge of out |
The grader runs once, with .lib sky130 tt at 27 °C, a 60 fF load and an input with 2 ns edges.
Examples
Example 1
The Shipped Driver, W_N = 8 and W_P = 16- Design
.subckt drv in out vdd XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=16 L=0.15 XN out in 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.15 .ends
- Measured by the grader
Energy per cycle: 421.3 fJ (needs ≤ 260 fJ) Output rise time: 196.3 ps (needs ≤ 300 ps) Output fall time: 166.1 ps (needs ≤ 300 ps)
The edges are fast, and the driver spends 227 fJ on itself.
Example 2
Half the Width, W_N = 4 and W_P = 8- Design
.subckt drv in out vdd XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=8 L=0.15 XN out in 0 0 sky130_fd_pr__nfet_01v8 W=4 L=0.15 .ends
- Measured by the grader
Energy per cycle: 282.9 fJ (needs ≤ 260 fJ) Output rise time: 256 ps (needs ≤ 300 ps) Output fall time: 204.7 ps (needs ≤ 300 ps)
Better, and still 23 fJ over the limit.
Example 3
A Quarter of the Width, W_N = 2 and W_P = 4- Design
.subckt drv in out vdd XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=0.15 XN out in 0 0 sky130_fd_pr__nfet_01v8 W=2 L=0.15 .ends
- Measured by the grader
Energy per cycle: 227.7 fJ (needs ≤ 260 fJ) Output rise time: 345.5 ps (needs ≤ 300 ps) Output fall time: 273.6 ps (needs ≤ 300 ps)
The energy is low, and the rising edge is now too slow.
Constraints and Contract
- The netlist defines .subckt drv in out vdd ... .ends exactly once, with these ports in this order.
- Inside drv: X instances of sky130_fd_pr__nfet_01v8 or sky130_fd_pr__pfet_01v8, with comments and .param lines. No sources, resistors or capacitors.
- The grader writes the .lib line itself; everything outside drv is replaced by its bench.
Hints
Hint 1
Run the starter and note e_cycle. Then compare it with C·VDD² for the 60 fF load alone.
Hint 2
A transistor has capacitance of its own, in proportion to its width. A wider driver also passes more current while both transistors conduct.
Hint 3
Make the driver narrower in steps, and watch t_rise. Stop while the edges still meet 300 ps.
What the grader checks: The grader places your drv under its own bench at tt. The bench has a 60 fF load, a 1.8 V supply and an input with 2 ns edges at 100 MHz. It runs on ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models. It checks one cycle of supply charge and one rising and one falling output edge.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit drv 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 1 steps and the final capstone