This commit is contained in:
david rice
2026-04-27 13:19:42 +01:00
parent 6a51228d5f
commit a1b66906e9
2 changed files with 7 additions and 6 deletions

View File

@@ -57,9 +57,10 @@ FLICKER_LP_LOW_MAX_NS = 50.0 # ns
# Mode G: LP-low significantly shorter than the baseline seen on this hardware.
# Normal LP-low (THS_PREPARE + THS_ZERO + preamble HS-0 symbols) measures ~379380 ns.
# Flicker-associated short LP-low values cluster at 34194 ns (confirmed: cap 27 at 108 ns).
# The gap between 194 and 379 ns is unambiguous — 250 ns splits the populations cleanly.
LP_LOW_FLICKER_THRESHOLD_NS = 250.0 # ns — below this, LP-low is suspiciously short
# Flicker-associated short LP-low values cluster at 7311 ns (confirmed: cap 8 at 311 ns,
# cap 27 at 108 ns). All healthy captures sit at 379380 ns.
# Threshold set to 360 ns to split the populations cleanly while allowing ~20 ns measurement slack.
LP_LOW_FLICKER_THRESHOLD_NS = 360.0 # ns — below this, LP-low is suspiciously short
# CLK lane LP-00 minimum for SN65DSI83 CLK lane lock (TCLK_PREPARE + TCLK_ZERO ≥ 300 ns)
CLK_LP_LOW_MIN_NS = 300.0
@@ -76,10 +77,10 @@ HS_BURST_AMPLITUDE_MIN_MV = 40.0 # mV — below this, no real HS burst is prese
# exceeds HS_OSC_STD_V. With dynamic video at 432 Mbps DDR each bit spans ~4.6 ns; transitions
# (~1 ns) fire the 1 ns rolling window ~20% of the time → healthy HS → osc_frac ≈ 0.140.22.
# Static solid-colour content (e.g. FF 33 BB repeating) has fewer bit transitions, so healthy
# osc_frac is lower: ~0.110.17. Blanking/control packets → osc_frac ≈ 0.000.02 (normal).
# osc_frac is lower: ~0.120.15. Blanking/control → osc_frac ≈ 0.000.02 (normal).
# Confirmed partial/transient HS dropout (Apr-23, cap 0105): osc_frac = 0.079.
# Suspicious zone must sit below the lowest healthy static-pink value (~0.11) and above true
# dropout values (~0.040.08). Threshold set to 0.10 to give clear separation.
# Healthy static-pink reliably reaches ≥ 0.11; threshold at 0.10 gives clear separation for
# definite HS dropout cases. The 0.120.13 zone overlaps healthy and flicker — not reliable.
HS_OSC_FRACTION_SUSPICIOUS_LO = 0.04 # below this: dead HS — blanking / control (normal)
HS_OSC_FRACTION_SUSPICIOUS_HI = 0.10 # above this: healthy HS; between bands → flag