E22 — DVP ring over two SRAM blocks
| ID | E22 |
| Date | 2026-12-03 |
| Status | done |
| Decisions | D100 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz HSE), RP on the direct PC port, RP PIO counter → DVP at 75 MHz |
| Firmware + results | fw/tests/2026-12-03-1-clocks-v5fdvp-sdorder (final sources, 7 CH32 builds, results.txt) |
| Scripts | dvpsplit.py |
Summary: Putting the odd ring slots in another 128 KB SRAM block (so the V5F reads the block the DMA is not writing) lowers the V5F check load by at most 6 points: its cost is the shared bus, not the block. Option only.
What
dvpv5f <chunk> <ms> [base1]: base1 = 0 keeps the ring in dvp_buf (block 1); 0x20164000 (block 3) or 0x20140000
(block 2) holds the odd slots. The V3F re-arms, the V5F checks every sample (E17). 2 s at 75 MS/s per run.
Results
V5F busy % (bad samples 0 unless noted):
| chunk | 96 MHz linear | 96 MHz split 1+3 / 1+2 | 156 MHz linear | 156 MHz split |
|---|---|---|---|---|
| 1024 | 65.1 | 59.5 / 59.5 | 44.7 | 43.0 |
| 256 | 67.6 | 62.4 / 62.4 | 47.3 | 45.9 |
| 128 | 71.5 | 67.4 / 67.2 | 51.3 | 49.8 |
| 64 | 78.4 | 79.0 / 78.7 | 58.8 | 58.6 |
| 32 | 0.89 M bad | 1.16 M / 1.08 M bad | 70.6 (0 bad) | 71.6 (0 bad) |
| 1024 at 37.5 MS/s | 31.1 | 29.7 | 21.9 | 21.5 |
Lesson
Test the hypothesis before changing the default: E20 showed block contention matters for the V3F’s code, but for the V5F’s reads the bus rate dominates.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.