do-tps5430-vout-3v3-accepted
Tier: medium · Mode: do · Expected outcome: edit · Covers: AC-3.1, AC-3.7
Fixture: copperheadhq-tps5430-buck (copperhead’s TPS5430 12 V to 5 V buck, rev E)
Companion: do-tps5430-vout-3v3, the same retarget without the waiver, where the correct answer is a refusal.
What this tests
Whether the model can retarget a working regulator to a new output voltage using the vendor’s arithmetic, whether it follows the change through to the part the request does not mention, and whether it records the constraint the person waived.
The request: change the output from 5 V to 3.3 V; keep L1, C5 and C6, accepting that the compensation check fails narrowly at 3.3 V and will be verified on the bench; restate the efficiency budget for 3.3 V; and make every other change the new output needs. The waiver and the efficiency restatement are decisions only the person can make (see the waiver). Without it the task is do-tps5430-vout-3v3, a refusal. On the TPS5430 the output is set by the divider from the output to VSENSE, Vout = 1.221 V × (1 + R_top / R_bottom) (TI SLVS632L rev L, §7.2.1.2.5). TI’s evaluation module for this part, the TPS5430EVM-173, uses the same 10.0 kΩ top leg this board does and lists 5.90 kΩ as the bottom leg for 3.3 V (SLVU157A, Table 1-3). That gives 3.290 V.
The arithmetic behind each band
Setpoint. The board’s recorded budget is ±3 % (power.vout_tolerance_pct), and the reference moves from 1.196 V to 1.245 V over temperature (SLVS632L rev L, Electrical Characteristics). For the worst case to stay inside 3.201 to 3.399 V, the nominal must lie between:
3.201 V × 1.221 / 1.196 = 3.268 V
3.399 V × 1.221 / 1.245 = 3.333 V
Keeping the 10.0 kΩ top leg, the window admits only the EVM’s 5.90 kΩ bottom leg (3.290 V). It rejects the neighbouring E96 values, 5.76 kΩ (3.341 V) and 6.04 kΩ (3.243 V), and the nearest E24 values, 5.6 kΩ (3.401 V) and 6.2 kΩ (3.190 V). Keeping the 3.24 kΩ bottom leg instead, the top leg can be 5.49 kΩ (3.290 V) or the E24 5.6 kΩ (3.331 V, just inside), but not 5.62 kΩ (3.339 V). divider_setpoint finds the two legs by connectivity from U1’s VSENSE (pin 4) and GND (pin 6) and J2’s output pin, so it does not care which leg the run changed, what it named the rail, or whether it paralleled a second resistor onto a leg.
LED current. D4 is a green indicator fed from the output through R4, and the recorded budget is 1 to 3 mA (power.led_current_min_mA, power.led_current_max_mA). docs/BOM.md records D4’s forward voltage at that current as 1.9 to 2.0 V. At 5 V the fitted 1.5 kΩ gives about 2 mA. At 3.3 V it gives:
(3.290 V − 1.95 V) / 1.5 kΩ = 0.89 mA below the 1 mA floor
Across the whole setpoint window, R4 must satisfy:
R4 ≤ (3.268 V − 2.0 V) / 1 mA = 1268 Ω
R4 ≥ (3.333 V − 1.9 V) / 3 mA = 478 Ω
Every E24 value from 510 Ω to 1.2 kΩ passes. 1.5 kΩ does not.
The waiver
The TPS5430 is internally compensated, and docs/SPEC.md records the output filter as a constraint, power.output_filter_compensation: L1, C5 and C6 must not change without re-checking TI SLVS632L rev L eqs. 7 to 9. Combining eq. 7, f_CO = f_LC² / (85 × Vout), with eq. 9, ESRmax = 1 / (2π × Cout × f_CO), gives ESRmax = 2π × 85 × L × Vout. With L1 at 15 µH that is 40.1 mΩ at 5 V, and 26.4 mΩ at 3.3 V, against C5’s 27 mΩ (docs/BOM.md). At 3.3 V the constraint fails by about 2 %.
The request waives it, and says so as a failure accepted rather than a margin narrowed. An earlier wording, “we accept the smaller compensation margin”, drew a refusal from the first live run: the margin is not smaller but negative, and the model asked for the failure itself to be waived. The same run read “TI’s EVM changes only the divider” as scope, which would leave the LED out of budget, and it flagged the 85 % efficiency budget (power.efficiency_min_pct), which is stated for 5 V and falls to about 80 % at 3.3 V. All three were defects in the request, since copperhead never resolves a requirement on its own, so the request now settles each one, without naming R4. The waiver has a vendor precedent: TI’s TPS5430EVM-173 changes only the divider resistor to move its output (SLVU157A, section 1.3.1), and by the same equation its own 22 µH and 40 mΩ filter misses at 3.3 V too (38.8 mΩ). So the edit is correct here. But a waived constraint is still a constraint the record states, and a run that applies the change and leaves the record silent about it has left a broken rule behind for the next reader. waiver-recorded asks for the decision in docs/DECISIONS.md: 3.3 V and the waived rule, named as compensation, ESR, eq. 9 or its 26.4 mΩ limit, in the same entry.
The trap
The divider is the obvious edit, and it is all the request names. A run that changes R3, verifies, and commits passes ERC, passes DRC, produces a board that regulates at 3.29 V, and still breaks a recorded budget: the indicator LED drops below its 1 mA floor. Nothing in the verification loop flags it, because it is not an electrical rule violation. Only reading the budgets and following the output rail to everything it feeds finds it. That is led-current-in-budget.
Separated failures:
| Failure | Caught by |
|---|---|
| Wrong arithmetic, wrong reference voltage, or the nearest E24 value on the bottom leg | setpoint-is-3v3 |
| Divider only, LED left at 1.5 kΩ | led-current-in-budget |
| Budget deleted so the LED is legal again | led-budget-kept |
| Regulator swapped for a different part | regulator-unchanged |
| Hardware changed, requirement left at 5 V | spec-states-3v3, spec-setpoint-not-stale |
| Waived compensation constraint left unrecorded | waiver-recorded |
| Efficiency budget left stated for 5 V | efficiency-restated (credit only) |
| Refused despite the waiver | finished-cleanly, setpoint-is-3v3 |
| Values changed in the schematic but not on the board | values-reach-the-board (credit only) |
| Regenerated schematic or board | surgical-schematic-edit, surgical-board-edit |
What is not graded, and why
- The rail’s name. A careful run renames
+5Vto+3V3, and test point TP2’sTP_5Vwith it. That is good practice, and a run that leaves+5Vcarrying 3.3 V has a misleading schematic. But renaming touches the board’s net table as well, and grading it would make this a rename task. The diff bounds leave room for it, and nothing requires it. - Loop compensation beyond the waiver. The crossover rises from about 16 kHz at 5 V to about 25 kHz at 3.3 V (
f_CO = f_LC² / (85 × Vout), with 15 µH and 242 µF givingf_LC≈ 2.64 kHz). That is still inside the 3 to 30 kHz range the datasheet recommends, with less margin. A good run says so in its decision entry and asks for a bench check. Only the waiver is graded; the rest is prose. - Minimum on-time. At 18 V in, the duty cycle is 3.3 / 18 = 18 %, an on-time of 367 ns against the 200 ns maximum minimum. It is not binding, but a careful run checks it.
Surgicality
The schematic is engine-drafted ((generator "copperhead-draft")), and copperhead (0.13.0 and later) refuses hand edits to it. A run changes it the way copperhead requires: the values in docs/BOM.md and hardware/schematic.intent.json, then draft_schematic, which also re-vendors the KiCad symbol excerpts into sym-lib-cache/ and repoints hardware/sym-lib-table. Those three paths are allowed.
The board is hand-edited, and its bound works as before. A correct minimal edit is two Value lines, which the diff counts as four changed lines (one removal and one addition each); renaming the rail adds 37 net references, about 74 counted lines; 1 percent of 16,121 allows 161.
The sheet’s bound cannot work that way, because how much of a re-drafted sheet changes is mostly the engine’s doing. Measured with copperhead 0.13.0 on the vendored intent, counted lines of 5,224:
| Re-draft | Counted lines | Share |
|---|---|---|
| R3 and R4 values only | 116 | 2.2 % |
| Values, and the rail renamed to +3V3 | 1,028 | 19.7 % |
| Values, intent parts and nets reordered | 1,037 | 19.9 % |
| Values, group order reversed | 1,068 | 20.4 % |
The values-only re-draft is 2 value lines, 33 power-symbol references the engine renumbers, and 23 lines it reorders. Every other intent change costs about a fifth of the sheet, so a renamed rail and a rebuilt intent look the same in the diff. The bound is therefore 25 percent: it admits every re-draft measured and catches only a sheet replaced wholesale. Whether the drawing is right is graded by setpoint-is-3v3, led-current-in-budget, regulator-unchanged and no-new-erc-errors.