Просмотр исходного кода

docs(recovery): record the C-phase 6400 state and the open GET payload defect

Prod2U Recovery 2 месяцев назад
Родитель
Сommit
4cfa29a365
1 измененных файлов с 33 добавлено и 3 удалено
  1. 33 3
      RECOVERY_STATE.md

+ 33 - 3
RECOVERY_STATE.md

@@ -51,12 +51,42 @@ old contract (Windows-authority, 16-bit frames, ACK80/DATA81, hot lease). It is
 | Phase | State | Note |
 |---|---|---|
 | A — preserve input, git, archive rules, restore tools | **done** | see above |
-| B — freeze 8-bit contract, temperature, mapping | in progress | |
-| C — 6400 shared UART / watchdog / 83-byte GET / TD | pending | |
+| B — freeze 8-bit contract, temperature, mapping | **done** | contracts/generators/generated/closures migrated; 17 pytest pass; six golden frames byte-exact vs an independent bitwise CRC; ulw-loop G001 checked complete |
+| C — 6400 shared UART / watchdog / 83-byte GET / TD | in progress | new core committed; e2e bit-level TB shows SET/ACK, NACK and GET framing pass, GET payload PTC field still reads defaults (open defect) |
 | D — MRDIMM 12 axes / 32 slots / DONE / 63-byte GET / fit | pending | |
-| E — HTH, Linux GUI, deploy, smoke | pending | |
+| E — HTH, Linux GUI, deploy, smoke | in progress | `/workspace/hth-platform` rebuilt and green (122 tests); manifests, GUI and deploy pending |
 | F — full verification, Final, recovery drill, off-host copy | pending | |
 
+## 6400 C-phase detail (2026-09-20, this round)
+
+New, committed to `recovery/final-rebuild`:
+
+- `src/control/duty_register_bank.v` — dual duty bank, atomic commit, single `valid` flag,
+  defaults PTC 0 / FAN 20 while invalid; duty presented combinationally from the bank's
+  one-clock registered output.
+- `src/control/watchdog_30s.v` — 30 s watchdog; reload wins over expiry.
+- `src/telemetry/get_data_6400.v` — 83-byte GET_DATA assembler.
+- `src/transport/reply_arbiter.v` — reply group vs DONE transmission arbiter.
+- `src/control/m6400_transaction_core.v` — validate+stage one pass, atomic SET commit,
+  GET assembly, NACK reasons, watchdog feeding on SET_ACCEPT / GET_ACCEPT only.
+- `src/top/prod2u_6400_final_top.v` — the 6400 production top on the new protocol;
+  elaborates with zero warnings under `iverilog -g2012 -Wall`.
+- `src/transport/host_uart_endpoint.v`, `reply_ram.v`, `src/acquisition/{temp_ram,ct7428_scan,bmc_ascii_poll}.v`
+  — shared UART endpoint with independent RX/TX CRC contexts, reply staging RAM and the
+  temperature chain.
+- `tests/sim/final_core_units_tb.v` — PASS (repeatable, plus deliberate-defect RED).
+- `tests/sim/prod2u_6400_final_e2e_tb.v` — real UART bit level; PASS on SET/ACK,
+  NACK BAD_LENGTH, bad-CRC recovery and GET framing; FAIL on the GET payload's PTC field.
+
+### Open 6400 defect (reproduction in the committed TB)
+
+The bank holds the staged values after SET A (`b1[0..23]=0x14`, `b1[28..31]=0x1E`,
+`active=1`, `valid=1`), yet the GET reply's PTC bytes read the connector default `0x00`.
+The defect is in `get_data_6400`'s read rhythm against the bank read path now that
+`duty_register_bank` presents duty combinationally.  Next step: align the assembler's
+bank pass with a one-clock RAM latency (the isolated `gd163` probe passes against a
+direct model) or restore a registered bank read and adjust the PWM scan accordingly.
+
 ## Open risks
 
 - `receipts/` and `reference/original/board|schematics` were excluded from the ZIP; TD