# 6400-front-rear-v1 current-state audit Status: SOURCE audit completed on 2026-08-22 (Pacific/Honolulu). Historical receipts are evidence inputs, not current-run passes. ## Git and workspace - Editable authority: `/root/workspaces/thermal-system/cpld-temperature-control` on the Debian 13 Linux filesystem. - Task branch: `feature/6400-front-rear-v1`, commit `120504e482ab463e9aabeea966c93169f946208a`, clean at audit start. - The Windows 6400 worktree contains unknown staged, unstaged, and untracked changes and was not modified. - The task branch contains the committed 6400 TD packaging tip and current Legacy door/MSE history. The later HTH history is present on `origin/dev` and `origin/hth-r6-watchdog-actor`, not in the task branch tree. HTH must therefore be split from Git history, not copied from the current tree. - `origin/dev` is at `5e676e88c6653b54b6b86d67b93a6f8d18d2d3ca`; the merge base with the task branch is `8fa4dcfbaaa4b049bca675fa4567c0a1b315f339`. ## Existing 6400 implementation The committed `prod2u-6400-front-back` target is a useful board-output and tool-flow baseline, but it is not the active V1 product: - 25 MHz, `EF2L45BG256B`, one Host RS-232 port at 115200. - Host `SET_ALL` directly commits 24 PTC plus 8 fan duties; successful SET has no ACK. - `GET_TEMPERATURE` triggers a 27-channel CT7428 read and returns `0x82`. - A 30-second Host-fed watchdog forces PTC 0 / fan 10. - There is no BMC data plane, autonomous state machine, PI controller, safety supervisor, fixed snapshot, Identification stimulus, dual Host selector, or TTL Host port. - The shared PWM concept is present, but the current module updates output bits during the scan window instead of building a next bitmap and switching all 32 bits atomically at a phase boundary. - The existing dual-bank duty store is suitable evidence for bank-flip semantics, but direct Host duty control is outside the new 6400 production contract. The new implementation must replace this behavior without importing door motors, limits, startup calibration, door-percent payloads, legacy watchdog semantics, or motor status into the 6400 profiles. ## Board and electrical evidence Confirmed from `config/pin_inventory.fcb_fpga_mcu0611.json` plus the board-viewer annotations: - Clock: J1, 25 MHz. - UART1 / CON77: FPGA TX L10 -> U22 -> CON77.1 RS-232; CON77.2 -> U22 -> FPGA RX M9. - UART2 / CON78: FPGA TX M10 -> U23 -> CON78.1 RS-232; CON78.2 -> U23 -> FPGA RX N11. - The active contract assigns UART1/CON77 to BMC at 115200 and UART2/CON78 to Host RS-232 at 921600. - PTC outputs are 24 confirmed active-high channels on the existing HEAT mapping. - Fan outputs are four logical front plus four logical rear channels. Their existing eight FPGA assignments remain the board baseline; fan command-to-pin polarity is active-low at the FPGA output. - CT7428 I2C uses M8/N9 as open-drain signals and scans three devices at 0x49, 0x48, 0x4B, registers 0..8. Not frozen and therefore not guessed: - Host TTL RX/TX connector and FPGA balls. - Physical CT7428 channel-to-DIMM placement and any connector mechanical ordering not proven by current evidence. - Exact BMC two-byte fractional scaling beyond preserving raw bytes. Existing evidence establishes 24 two-byte values and `FF FF` invalid encoding. The exact historical BMC poll command is preserved as evidence: `ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03` followed by LF. The response parser consumes exactly 48 decoded data bytes and treats six echoed command bytes separately. ## Existing tool and evidence state - Debian 13 and Podman are available. The only useful pinned base already present is Debian trixie digest `sha256:fac46bff2e02f51425b6e33b0e1169f55dfb053d83511ca28aa50c09fd5ed7a4`. - The WSL host currently lacks Icarus, Verilator, Yosys, SymbiYosys, solvers, Go, pytest, and `td2026`; these must be supplied through the locked Debian container and persistent tool volumes. - Historical 6400 synthesis estimated 957 gate LUT / 464 REG, but it was synthesis-only, returned `-11`, omitted route/bitstream acceptance, and implemented the superseded direct-duty design. It is not a pass for this task. - Historical Host, Formal, TD, and packaging receipts remain non-authoritative until current Linux commands reproduce the applicable layer. ## Required migration 1. Freeze the new channel, wire, snapshot, fixed-point, and safety contracts. 2. Preserve Legacy as a buildable profile while moving its local authority beneath `products/legacy-door-percent`. 3. Build production, identification, and simulation/debug 6400 profiles from a shared implementation. 4. Split HTH with real Git history from the latest Host-bearing commit lineage. 5. Establish XML-only manifests and an independent lab repository. 6. Replace direct-duty Host control with autonomous BMC-driven 24-channel control and deterministic safety overrides. 7. Re-run every non-hardware gate and bind TD/bitstream/package receipts to exact commits and generated-contract hashes. Hardware, JTAG, COM, real BMC, real UART, and real thermal performance are NOT RUN.