Set the supply voltage of a logic block for an 800 MHz clock. It must be high enough for the slowest chip and low enough for the energy budget.
Circuit context: Five-stage ring oscillator on an adjustable supply. Find the lowest supply voltage that keeps a slow chip at speed.
A logic block must run from an 800 MHz clock in its low-power mode. A five-stage ring oscillator stands for its critical path, as in lesson W1.4: the ring must reach at least 800 MHz.
One fixed supply voltage will be programmed into every chip. It must work on a slow chip, the ss process corner. A typical chip (tt) at the same voltage may spend at most 83 fJ per period.
Set the voltage: the subcircuit rail holds one voltage source. The lesson measured this ring at 1.2 V: 896 MHz on a typical chip and 694 MHz on a slow one.
What the Grader Measures
Your subcircuit rail (ports vdd) under the grader's own bench, one run per corner (tt, ss):
| Check | Corner | Rule |
|---|---|---|
| Ring frequency on a slow chip | ss | ≥ 800 MHz |
| Energy per period on a typical chip | tt | ≤ 83 fJ |
Full specification
.subckt rail vdd
V1 vdd 0 <your voltage>
.ends
| Check | Rule | How the grader measures it |
|---|---|---|
| Ring frequency, slow chip | ≥ 800 MHz | ss corner: ten periods of node n1 between its 5th and 15th rising edge |
| Energy per period, typical chip | ≤ 83 fJ | tt corner: the supply voltage times the current through V1, integrated over those ten periods and divided by ten |
The grader runs twice, with .lib sky130 ss and with .lib sky130 tt, at 27 °C. The ring has 5 fF on each stage.
Examples
Example 1
The Value from the Typical-Chip Table, 1.2 V- Design
.subckt rail vdd V1 vdd 0 1.2 .ends
- Measured by the grader
Ring frequency on a slow chip at ss: 694.1 MHz (needs ≥ 800 MHz) Energy per period on a typical chip at tt: 73.24 fJ (needs ≤ 83 fJ)
Cheap, and too slow on a slow chip.
Example 2
The Nominal Supply, 1.8 V- Design
.subckt rail vdd V1 vdd 0 1.8 .ends
- Measured by the grader
Ring frequency on a slow chip at ss: 2.049 GHz (needs ≥ 800 MHz) Energy per period on a typical chip at tt: 170.4 fJ (needs ≤ 83 fJ)
Fast on every chip, at more than twice the energy budget.
Example 3
A Safe-Looking 1.5 V- Design
.subckt rail vdd V1 vdd 0 1.5 .ends
- Measured by the grader
Ring frequency on a slow chip at ss: 1.399 GHz (needs ≥ 800 MHz) Energy per period on a typical chip at tt: 116.9 fJ (needs ≤ 83 fJ)
Margin costs energy: every period pays C·VDD².
Constraints and Contract
- The netlist defines .subckt rail vdd ... .ends exactly once.
- Inside rail: one DC voltage source named V1 from vdd to ground, with comments and .param lines. A pwl, pulse or sin source is refused: the chip gets one fixed voltage.
- The grader writes the .lib line itself; everything outside rail is replaced by its bench.
Hints
Hint 1
The table of lesson W1.4 gives the typical chip. The slow chip needs more voltage for the same frequency.
Hint 2
Change tt to ss in your own bench and step the voltage until freq passes 800 MHz.
Hint 3
Then go back to tt and read e_period at that voltage. Do not add more margin than the energy limit allows.
What the grader checks: The grader places your rail under its own ring oscillator bench, once at ss and once at tt, at 27 °C. It runs on ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models. One ring stands for the critical path; temperature and supply noise are not covered.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit rail and makes 2 ngspice runs. 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