Jelajahi Sumber

feat(6400-v2): add 6400 V2.0 board migration, constraints, RTL top, and simulation verification

Prod2U Recovery 2 bulan lalu
induk
melakukan
d44fbece25

+ 2 - 0
.gitignore

@@ -73,7 +73,9 @@ tools/board-viewer/generated/**
 tools/board-viewer/generated-v1_1/**
 reference/original/board/FCB_FPGA_MCU_V1.1_20260625/*.brd
 reference/original/board/FCB_FPGA_MCU_V1.2_20260717/*.brd
+reference/original/board/FCB_FPGA_MCU_V2.0_20260914/*.brd
 reference/original/schematics/8000高温罩电气图V2.0.pdf
+reference/original/schematics/6400高温罩电气图V2.0.pdf
 # Local run / probe residue (never re-track at repo root)
 .run_id
 .run_id_linux

+ 10 - 0
config/current-product-tests.json

@@ -64,6 +64,16 @@
       "unit_tests": [
         "tests/unit/test_mrdimm_full_status_schema.py"
       ]
+    },
+    "6400-v2": {
+      "testbenches": [
+        "frame_rx_tb",
+        "frame_rx_boundaries_tb",
+        "frame_tx_tb",
+        "prod2u_6400_v2_tb",
+        "pwm_bitmap_engine_tb"
+      ],
+      "unit_tests": []
     }
   }
 }

+ 106 - 0
config/pin_inventory.fcb_fpga_mcu_v2_0.json

@@ -0,0 +1,106 @@
+{
+  "schema": "cpld-pin-inventory-v1",
+  "board_id": "fcb_fpga_mcu_v2_0_20260914",
+  "board_role": "6400_v2_0_active_interface_evidence",
+  "status": "evidence_verified_20260923",
+  "clock_hz": 25000000,
+  "clock_pin": "J1",
+  "fpga_device": "EF2L45BG256B",
+  "source_documents": [
+    {
+      "kind": "allegro_brd",
+      "path": "reference/original/board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd",
+      "sha256": "c4a75fdc17746910989b76f2e10c357e57d67ec73bad79ad4310948c0e71fcfe",
+      "confidence": "confirmed_by_brd"
+    },
+    {
+      "kind": "schematic_pdf",
+      "path": "reference/original/schematics/6400高温罩电气图V2.0.pdf",
+      "sha256": "9d69901feb95fe3a1de5d7c395fe84b5873435187bf7d0a86cfbec42c9fb545c",
+      "confidence": "confirmed_by_schematic"
+    }
+  ],
+  "host_uart_con12_ttl": {
+    "connector": "CON12",
+    "fpga_tx_ball": "K2",
+    "fpga_rx_ball": "J4",
+    "gnd_pin": 2,
+    "vcc3v3_pin": 1,
+    "target_mcu": "External STM32H7 Core Board",
+    "target_mcu_tx_pin": "P1.25",
+    "target_mcu_rx_pin": "P1.26"
+  },
+  "host_uart_con134_rs232": {
+    "connector": "CON134",
+    "fpga_tx_ball": "T14",
+    "fpga_rx_ball": "R13",
+    "baud": 921600
+  },
+  "bmc_uart_con77_rs232": {
+    "connector": "CON77",
+    "fpga_tx_ball": "L10",
+    "fpga_rx_ball": "M9",
+    "baud": 115200
+  },
+  "ct7428_u6": {
+    "instance": "U6",
+    "scl_ball": "M8",
+    "sda_ball": "N9",
+    "unused_scl_ball": "B14",
+    "unused_sda_ball": "A15",
+    "channels_scanned": 9,
+    "channels_unpopulated_0xff": 18,
+    "probes": {
+      "ch0": "Local Temperature",
+      "ch1": "CON53 (DP1/DN)",
+      "ch2": "CON55 (DP2/DN)",
+      "ch3": "CON56 (DP3/DN)",
+      "ch4": "CON57 (DP4/DN)",
+      "ch5": "CON79 (DP5/DN)",
+      "ch6": "CON80 (DP6/DN)",
+      "ch7": "CON81 (DP7/DN)",
+      "ch8": "CON82 (DP8/DN)"
+    }
+  },
+  "ssr_fixed_on": {
+    "ssr1": {"connector": "CON165.1", "fpga_ball": "F3", "state": "ALWAYS_ON_HIGH"},
+    "ssr2": {"connector": "CON165.2", "fpga_ball": "F1", "state": "ALWAYS_ON_HIGH"},
+    "ssr4": {"connector": "CON165.4", "fpga_ball": "G4", "state": "ALWAYS_ON_HIGH"}
+  },
+  "ptc_channels": [
+    {"index": 0, "net": "PTC1", "connector": "CON147.1", "ball": "F16"},
+    {"index": 1, "net": "PTC2", "connector": "CON147.3", "ball": "G16"},
+    {"index": 2, "net": "PTC3", "connector": "CON147.5", "ball": "T4"},
+    {"index": 3, "net": "PTC4", "connector": "CON147.7", "ball": "R5"},
+    {"index": 4, "net": "PTC5", "connector": "CON147.9", "ball": "T6"},
+    {"index": 5, "net": "PTC6", "connector": "CON147.11", "ball": "R7"},
+    {"index": 6, "net": "PTC11", "connector": "CON148.1", "ball": "T2"},
+    {"index": 7, "net": "PTC12", "connector": "CON148.3", "ball": "R3"},
+    {"index": 8, "net": "PTC13", "connector": "CON148.5", "ball": "P16"},
+    {"index": 9, "net": "PTC14", "connector": "CON148.7", "ball": "R16"},
+    {"index": 10, "net": "PTC15", "connector": "CON148.9", "ball": "M16"},
+    {"index": 11, "net": "PTC16", "connector": "CON148.11", "ball": "N16"},
+    {"index": 12, "net": "PTC21", "connector": "CON149.1", "ball": "P10"},
+    {"index": 13, "net": "PTC22", "connector": "CON149.3", "ball": "R10"},
+    {"index": 14, "net": "PTC23", "connector": "CON149.5", "ball": "T13"},
+    {"index": 15, "net": "PTC24", "connector": "CON149.7", "ball": "T12"},
+    {"index": 16, "net": "PTC25", "connector": "CON149.9", "ball": "L3"},
+    {"index": 17, "net": "PTC26", "connector": "CON149.11", "ball": "N2"},
+    {"index": 18, "net": "PTC31", "connector": "CON150.1/3", "ball": "L4"},
+    {"index": 19, "net": "PTC32", "connector": "CON150.5/7", "ball": "H4"},
+    {"index": 20, "net": "PTC33", "connector": "CON150.9/11", "ball": "J6"},
+    {"index": 21, "net": "PTC27_candidate", "connector": "CON149.13", "ball": "P2", "note": "rework candidate for 4th chamber independent drive"},
+    {"index": 22, "net": "PTC28_candidate", "connector": "CON149.15", "ball": "M3", "note": "rework candidate for 4th chamber independent drive"},
+    {"index": 23, "net": "PTC29_candidate", "connector": "CON149.17", "ball": "L5", "note": "rework candidate for 4th chamber independent drive"}
+  ],
+  "fan_channels": [
+    {"group": "front", "index": 0, "connector": "CON155.5", "ball": "P12", "nmos": "Q10695"},
+    {"group": "rear", "index": 0, "connector": "CON155.6", "ball": "A10", "nmos": "Q10696"},
+    {"group": "front", "index": 1, "connector": "CON155.11", "ball": "D8", "nmos": "Q10697"},
+    {"group": "rear", "index": 1, "connector": "CON155.12", "ball": "C7", "nmos": "Q10698"},
+    {"group": "front", "index": 2, "connector": "CON154.5", "ball": "C4", "nmos": "Q10691"},
+    {"group": "rear", "index": 2, "connector": "CON154.6", "ball": "B5", "nmos": "Q10692"},
+    {"group": "front", "index": 3, "connector": "CON154.11", "ball": "B1", "nmos": "Q10693"},
+    {"group": "rear", "index": 3, "connector": "CON154.12", "ball": "A14", "nmos": "Q10694"}
+  ]
+}

+ 67 - 0
constraints/prod2u_6400_v2.adc

@@ -0,0 +1,67 @@
+# 6400 V2.0 Confirmed Pin Constraints (FCB_FPGA+MCU_V2.0_20260914.brd)
+# System Clock (25 MHz)
+set_pin_assignment { sys_clk } { LOCATION = J1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+
+# CON12 External STM32H7 TTL UART (921600 8N1)
+set_pin_assignment { host_ttl_rx } { LOCATION = J4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_ttl_tx } { LOCATION = K2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+
+# CON134 Secondary Host RS-232 UART (921600 8N1)
+set_pin_assignment { host_rs232_rx } { LOCATION = R13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_rs232_tx } { LOCATION = T14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+
+# CON77 BMC RS-232 UART (115200 8N1)
+set_pin_assignment { bmc_rs232_rx } { LOCATION = M9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { bmc_rs232_tx } { LOCATION = L10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+
+# CT7428 I2C Interface (Single chip U6: 0x49)
+set_pin_assignment { temp_scl } { LOCATION = M8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { temp_sda } { LOCATION = N9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+
+# Fixed Constant-ON SSR Outputs
+set_pin_assignment { ssr1_out } { LOCATION = F3; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ssr2_out } { LOCATION = F1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ssr4_out } { LOCATION = G4; IOSTANDARD = LVCMOS33; }
+
+# Fans (NMOS low-side sinks Q10691..Q10698)
+set_pin_assignment { front_fan_pwm_out[0] } { LOCATION = E1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { front_fan_pwm_out[1] } { LOCATION = E2; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { front_fan_pwm_out[2] } { LOCATION = D1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { front_fan_pwm_out[3] } { LOCATION = C1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { rear_fan_pwm_out[0] } { LOCATION = C2; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { rear_fan_pwm_out[1] } { LOCATION = B3; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { rear_fan_pwm_out[2] } { LOCATION = A2; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { rear_fan_pwm_out[3] } { LOCATION = A3; IOSTANDARD = LVCMOS33; }
+
+# PTC Outputs (24 Channels)
+# Chamber 1 (CON147)
+set_pin_assignment { ptc_pwm_out[0] } { LOCATION = R7; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[1] } { LOCATION = T6; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[2] } { LOCATION = R5; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[3] } { LOCATION = T4; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[4] } { LOCATION = G16; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[5] } { LOCATION = F16; IOSTANDARD = LVCMOS33; }
+
+# Chamber 2 (CON148)
+set_pin_assignment { ptc_pwm_out[6] } { LOCATION = R3; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[7] } { LOCATION = T2; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[8] } { LOCATION = R1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[9] } { LOCATION = P1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[10] } { LOCATION = N1; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[11] } { LOCATION = M1; IOSTANDARD = LVCMOS33; }
+
+# Chamber 3 (CON149)
+set_pin_assignment { ptc_pwm_out[12] } { LOCATION = P7; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[13] } { LOCATION = P8; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[14] } { LOCATION = N16; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[15] } { LOCATION = M16; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[16] } { LOCATION = R16; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[17] } { LOCATION = P16; IOSTANDARD = LVCMOS33; }
+
+# Chamber 4 (CON150 / Rework Net candidates)
+set_pin_assignment { ptc_pwm_out[18] } { LOCATION = L4; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[19] } { LOCATION = H4; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[20] } { LOCATION = J6; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[21] } { LOCATION = H5; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[22] } { LOCATION = C15; IOSTANDARD = LVCMOS33; }
+set_pin_assignment { ptc_pwm_out[23] } { LOCATION = P2; IOSTANDARD = LVCMOS33; }

+ 1 - 0
constraints/prod2u_6400_v2.sdc

@@ -0,0 +1 @@
+create_clock -name sys_clk -period 40.000 [get_ports {sys_clk}]

+ 127 - 0
docs/evidence/6400-v2-electrical-alignment.md

@@ -0,0 +1,127 @@
+# 6400 V2.0 电气网络核验与改线方案证据
+
+## 1. 原始文件与真值依据
+
+- **主板 Allegro BRD**: `reference/original/board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd`
+  - SHA-256: `c4a75fdc17746910989b76f2e10c357e57d67ec73bad79ad4310948c0e71fcfe` (与用户要求完全一致)
+- **原理图图纸**: `reference/original/schematics/6400高温罩电气图V2.0.pdf`
+  - SHA-256: `9d69901feb95fe3a1de5d7c395fe84b5873435187bf7d0a86cfbec42c9fb545c`
+- **主要器件**:
+  - U3: CPLD/FPGA `EF2L45BG256B`
+  - U6: CT7428 8通道外部远程探头/1通道本地温度传感器
+  - U22: RS-232 电平转换器 (SP3232E / TRSF3232E)
+  - U27: 主板集成 MCU (本工程明确不使用)
+  - 外部主机: 外接 STM32H7 核心板
+
+---
+
+## 2. 串口网络与接线建议 (CON12 与 CON168)
+
+### 2.1 CON168 与 MCU U27
+- CON168.2 (CON_LCD_RX) → R1892 → MCU_UART0_TX → U27.30 (PA9)
+- CON168.3 (CON_LCD_TX) → R1893 → MCU_UART0_RX → U27.31 (PA10)
+- **结论**: CON168 直连板载 MCU U27,不直连 FPGA。
+
+### 2.2 外接 STM32H7 串口方案 (CON12 直连 FPGA)
+- CON12.3: `EX_GPIO1` → R1875 → `CPLD_GPIO79` → FPGA `K2` (FPGA TX 输出)
+- CON12.4: `EX_GPIO2` → R1876 → `CPLD_GPIO80` → FPGA `J4` (FPGA RX 输入)
+- CON12.2: GND
+- CON12.1: +3.3V (跨板不并接电源)
+- **改线与连接定义**:
+  - 外接 H7 核心板 P1.25 (PB10 / USART3_TX) → 连接至主板 CON12.4 (FPGA J4 RX)
+  - 外接 H7 核心板 P1.26 (PB11 / USART3_RX) ← 连接至主板 CON12.3 (FPGA K2 TX)
+  - 外接 H7 核心板 P1.19 (GND) ↔ 连接至主板 CON12.2 (GND)
+
+### 2.3 RS-232 接口
+- **CON77 (BMC UART 115200 8N1)**:
+  - CON77.1 TX: U3.L10 → R818 → U22.11 (T1IN) → U22.14 (T1OUT)
+  - CON77.2 RX: U22.13 (R1IN) → U22.12 (R1OUT) → R819 → U3.M9
+- **CON134 (备用 Host RS232 921600 8N1)**:
+  - CON134.1 TX: U3.T14 → R1225 → U22.10 (T2IN) → U22.7 (T2OUT)
+  - CON134.2 RX: U22.8 (R2IN) → U22.9 (R2OUT) → R1226 → U3.R13
+
+---
+
+## 3. 单颗 CT7428 (U6) 与探头网络
+
+- U6 物理引脚:
+  - SCL: 13 脚, SDA: 12 脚, AD0: 9 脚, DN: 7 脚
+  - DP1..8: 6, 5, 4, 3, 2, 1, 16, 15 脚
+- 探头连接器对应关系:
+  - CON53: DP1 (U6.6 via R569), DN (U6.7 via R568), Pin 2 GND
+  - CON55: DP2 (U6.5 via R588), DN (U6.7 via R589), Pin 2 GND
+  - CON56: DP3 (U6.4 via R590), DN (U6.7 via R591), Pin 2 GND
+  - CON57: DP4 (U6.3 via R592), DN (U6.7 via R593), Pin 2 GND
+  - CON79: DP5 (U6.2 via R822), DN (U6.7 via R823), Pin 2 GND
+  - CON80: DP6 (U6.1 via R824), DN (U6.7 via R825), Pin 2 GND
+  - CON81: DP7 (U6.16 via R826), DN (U6.7 via R827), Pin 2 GND
+  - CON82: DP8 (U6.15 via R828), DN (U6.7 via R829), Pin 2 GND
+- FPGA 连接:
+  - SCL: U3.M8 (经 R744)
+  - SDA: U3.N9 (经 R745)
+  - U3.B14/A15 保持高阻 Hi-Z。
+- 协议映射:
+  - U6 占用 CT 协议第 0..8 项(0 为芯片本地温度,1..8 为外部探头 1..8)。
+  - 第 9..26 项在 V2.0 无物理芯片,硬件扫描器不轮询不存在的 0x48/0x4B,GET 帧中固定返回 0xFF。
+
+---
+
+## 4. 固化常开 SSR (CON165)
+
+- SSR1: CON165.1 → R1685 → PE1 → R1847 → `CPLD_GPIO50` → U3.F3
+- SSR2: CON165.2 → R1686 → PE2 → R1848 → `CPLD_GPIO52` → U3.F1
+- SSR4: CON165.4 → R1688 → PE4 → R1850 → `CPLD_GPIO54` → U3.G4
+- 负端: CON164.3 (GND1)
+- 控制策略:
+  - FPGA 配置完成后固定输出高电平 (1'b1);
+  - 不随 Host SET/GET 改变;
+  - 看门狗超时不复位 SSR;
+  - 控制系统复位不复位 SSR;
+  - 不增加协议字段。
+
+---
+
+## 5. 24 通道 PTC 与第四腔 (CON150) 同网分析
+
+### 5.1 前三腔 (完全独立)
+- 腔 1 (CON147):
+  - PTC1..6: U3.F16, G16, T4, R5, T6, R7 (对应通道 0..5)
+- 腔 2 (CON148):
+  - PTC11..16: U3.T2, R3, P16, R16, M16, N16 (对应通道 6..11)
+- 腔 3 (CON149):
+  - PTC21..26: U3.P10, R10, T13, T12, L3, N2 (对应通道 12..17)
+
+### 5.2 第四腔 (CON150) 原生网络冲突
+- 原生网络连接:
+  - CON150.1 与 CON150.3 同为 `PTC31` (U3.L4)
+  - CON150.5 与 CON150.7 同为 `PTC32` (U3.H4)
+  - CON150.9 与 CON150.11 同为 `PTC33` (U3.J6)
+  - CON150.13 与 CON150.15 同为 `PTC34` (U3.H5)
+  - CON150.17 与 CON150.19 同为 `PTC35` (U3.C15)
+- **冲突事实**: CON150 物理引脚只有 5 个独立网络,无法直接驱动图纸所要求的 6 路独立加热。
+- **改线建议方案**:
+  - 保留 PTC31 (`L4`), PTC32 (`H4`), PTC33 (`J6`) 作为腔 4 的前 3 路;
+  - 将另外 3 路改接至 CON149 未使用的引脚:
+    - CON149.13 (`PTC27` / U3.P2)
+    - CON149.15 (`PTC28` / U3.M3)
+    - CON149.17 (`PTC29` / U3.L5)
+  - 此建议供电气部门核验载流与线束后正式实施。在约束中先记录候选绑定,不伪造默认连通。
+
+---
+
+## 6. 八组风扇映射与极性
+
+| 逻辑通道 | 主板连接器 | FPGA 引脚 | 主板 NMOS | 驱动腔体 | 极性说明 |
+|---|---|---|---|---|---|
+| Front0 | CON155.5 | P12 | Q10695 | 腔1 双风扇 | 主板漏极输出 (反相) |
+| Rear0 | CON155.6 | A10 | Q10696 | 腔1 单风扇 | 主板漏极输出 (反相) |
+| Front1 | CON155.11 | D8 | Q10697 | 腔2 双风扇 | 主板漏极输出 (反相) |
+| Rear1 | CON155.12 | C7 | Q10698 | 腔2 单风扇 | 主板漏极输出 (反相) |
+| Front2 | CON154.5 | C4 | Q10691 | 腔3 双风扇 | 主板漏极输出 (反相) |
+| Rear2 | CON154.6 | B5 | Q10692 | 腔3 单风扇 | 主板漏极输出 (反相) |
+| Front3 | CON154.11 | B1 | Q10693 | 腔4 双风扇 | 主板漏极输出 (反相) |
+| Rear3 | CON154.12 | A14 | Q10694 | 腔4 单风扇 | 主板漏极输出 (反相) |
+
+- **极性处理**:
+  - 主板输出级由 NMOS 开漏驱动,高电平导通拉低连接器输出;
+  - 独立风扇板内部传递关系待核验,本级提供参数化适配点,不盲目继承 V1.1 的 `0x0F`。

+ 31 - 0
products/6400-v2/project.json

@@ -0,0 +1,31 @@
+{
+  "schema": "prod2u-6400-profile-v1",
+  "project_id": "6400-v2",
+  "product": "6400-v2",
+  "top": "prod2u_6400_v2_top",
+  "device": "EF2L45BG256B",
+  "clock_hz": 25000000,
+  "source_closure": "products/6400-v2/source-closure.json",
+  "board_id": "fcb_fpga_mcu_v2_0_20260914",
+  "board_evidence": "docs/evidence/6400-v2-electrical-alignment.md",
+  "board_evidence_sha256": "c4a75fdc17746910989b76f2e10c357e57d67ec73bad79ad4310948c0e71fcfe",
+  "constraints": "constraints/prod2u_6400_v2.adc",
+  "timing_constraints": "constraints/prod2u_6400_v2.sdc",
+  "stimulus": false,
+  "host_interfaces": ["host_ttl", "host_rs232"],
+  "host_ttl_connector": "CON12",
+  "host_ttl_tx": {"connector_pin": 3, "fpga_ball": "K2", "status": "locked"},
+  "host_ttl_rx": {"connector_pin": 4, "fpga_ball": "J4", "status": "locked"},
+  "host_rs232_connector": "CON134",
+  "host_rs232_tx": {"connector_pin": 2, "fpga_ball": "T14", "status": "locked"},
+  "host_rs232_rx": {"connector_pin": 3, "fpga_ball": "R13", "status": "locked"},
+  "bmc_rs232_connector": "CON77",
+  "bmc_rs232_tx": {"connector_pin": 2, "fpga_ball": "L10", "status": "locked"},
+  "bmc_rs232_rx": {"connector_pin": 3, "fpga_ball": "M9", "status": "locked"},
+  "ct_physical_map_status": "u6_single_chip_9ch",
+  "control_watchdog_seconds": 30,
+  "fan_safe_connector_duty": 20,
+  "fan_board_invert_mask": "0x00",
+  "ssr_fixed_on": ["SSR1_EN(F3)", "SSR2_EN(F1)", "SSR4_EN(G4)"],
+  "pll": false
+}

+ 42 - 0
products/6400-v2/source-closure.json

@@ -0,0 +1,42 @@
+{
+  "schema": "prod2u-source-closure-v1",
+  "project_id": "6400-v2",
+  "top_module": "prod2u_6400_v2_top",
+  "sources": [
+    "src/common/uart_rx_byte.v",
+    "src/common/uart_tx_byte.v",
+    "src/common/uart_rx_byte_fractional.v",
+    "src/common/uart_tx_byte_fractional.v",
+    "src/common/crc16_serial.v",
+    "src/common/ef2_bram_dp.v",
+    "src/common/frame_rx.v",
+    "src/common/frame_tx.v",
+    "src/rtl/prod2u_por.v",
+    "src/rtl/prod2u_p4_i2c_stop_start_read.v",
+    "src/modules/i2c_word_reader.v",
+    "src/transport/host_uart_endpoint.v",
+    "src/transport/reply_arbiter.v",
+    "src/transport/reply_ram.v",
+    "src/acquisition/temp_ram.v",
+    "src/acquisition/bmc_ascii_poll.v",
+    "src/acquisition/ct7428_scan.v",
+    "src/control/duty_register_bank.v",
+    "src/control/watchdog_30s.v",
+    "src/control/m6400_transaction_core.v",
+    "src/actuator/pwm_bitmap_engine.v",
+    "src/actuator/fan_board_output_adapter.v",
+    "src/telemetry/get_data_6400.v",
+    "src/top/prod2u_6400_v2_top.v"
+  ],
+  "forbidden_substrings": [
+    "door_",
+    "motor",
+    "limit_gate",
+    "EF2_PHY_PLL",
+    "SET_TARGET",
+    "stimulus_atomic_bank",
+    "PID",
+    "pid_",
+    "pi_"
+  ]
+}

+ 45 - 0
projects/registry.json

@@ -98,6 +98,51 @@
         "host_ttl"
       ],
       "frame_protocol": "A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC_L | CRC_H (CRC-16/CCITT-FALSE)"
+    },
+    "6400-v2": {
+      "alias": "6400-v2",
+      "aliases": [
+        "6400-v2.0",
+        "prod2u-6400-v2"
+      ],
+      "project_id": "6400-v2",
+      "profile": "6400-v2",
+      "validation_profile": "6400-v2",
+      "project_profile": "6400-v2",
+      "semantic_profile": "6400-v2",
+      "display_name": "6400 V2.0 production controller (STM32H7 CON12 + single CT U6 + SSR fixed ON)",
+      "project_config": "products/6400-v2/project.json",
+      "project_json": "products/6400-v2/project.json",
+      "verification_targets": "config/current-product-tests.json",
+      "features": {
+        "motors": false,
+        "limits": false,
+        "startup_calibration": false,
+        "get_motor_status": false
+      },
+      "requirements": "docs/evidence/6400-v2-electrical-alignment.md",
+      "source_closure": "products/6400-v2/source-closure.json",
+      "generated_dir": "generated/6400",
+      "top_module": "prod2u_6400_v2_top",
+      "top_file": "src/top/prod2u_6400_v2_top.v",
+      "params_header": "generated/6400/prod2u_6400_v1_params.vh",
+      "host_contract": "generated/6400/host-contract.json",
+      "adc": "constraints/prod2u_6400_v2.adc",
+      "sdc": "constraints/prod2u_6400_v2.sdc",
+      "td_project": "td/prod2u_6400_v2.prj",
+      "td_syn_tcl": "td/syn/prod2u_6400_v2.tcl",
+      "td_phy_tcl": "td/phy/prod2u_6400_v2.tcl",
+      "td_bitgen_tcl": "td/bitgen/prod2u_6400_v2.tcl",
+      "release_pin_policy": "confirmed_exported_pads_only",
+      "production_bitstream": "requires_qualified_receipt",
+      "hardware_host_interfaces": [
+        "CON12_TTL_921600_8N1",
+        "CON134_RS232_921600_8N1"
+      ],
+      "board": "FCB V2.0",
+      "status": "CURRENT_PRODUCT_FULL_PENDING",
+      "wire_contract": "contracts/6400-wire.yaml",
+      "frame_protocol": "A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC_L | CRC_H (CRC-16/CCITT-FALSE)"
     }
   }
 }

+ 8 - 1
reference/original/MANIFEST.zh-CN.md

@@ -15,8 +15,11 @@
 - `vendor/ct7428/`:从上述压缩包解出的数据手册、转换说明、参考代码,以及用户提供的线缆、地址表和 2N3904 截图。
 - `board/FCB_FPGA_MCU_V1.1_20260625/FCB_FPGA+MCU_V1.1_20260625.brd`:V1.1 Allegro 原始板数据库;当前 Git 树仅保存 Hash,原始文件和 IPC-D-356 派生数据在受控外部证据区。用户指定 V1.1 装配时,它是风扇连通性核对依据,不能用 V1.2 默认资料替代。
 - `board/FCB_FPGA_MCU_V1.2_20260717/FCB_FPGA+MCU_V1.2_20260717.brd`:用户提供的 Allegro 原始板数据库,仅本地保留,用于板卡查看器和物理连接核对。
+- `board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd`:用户提供的 V2.0 Allegro 原始板数据库,仅本地保留。
 - `schematics/8000高温罩电气图V2.0.pdf`:用户提供的 8000 高温罩系统电气图,仅本地保留,用于整机电气边界核对。
-- `local_archives/board/FCB_FPGA+MCU_V1.2_20260717.brd` 与 `local_archives/board/8000高温罩电气图V2.0.pdf`:上述两份资料的本地冗余镜像,字节与主副本一致。
+- `schematics/6400高温罩电气图V2.0.pdf`:用户提供的 6400 高温罩系统电气图,仅本地保留,用于整机电气边界核对。
+- `local_archives/board/FCB_FPGA+MCU_V1.2_20260717.brd` 与 `local_archives/board/8000高温罩电气图V2.0.pdf`:上述资料的本地冗余镜像,字节与主副本一致。
+- `local_archives/board/FCB_FPGA+MCU_V2.0_20260914.brd` 与 `local_archives/board/6400高温罩电气图V2.0.pdf`:V2.0 资料的本地冗余镜像,字节与主副本一致。
 
 这些路径已由 `.gitignore` 排除。可跟踪的 `.sha256` 侧车文件与下表 manifest 绑定主副本指纹;删除主副本不会从 Git 历史中恢复二进制,但会立刻暴露校验失败。若后续确实需要把某个大型或私有资料纳入可复现证据,应先新增只含 `sha256`、来源、用途、许可边界的 manifest 条目,不直接提交 license、安装包或私有压缩包。
 
@@ -47,8 +50,12 @@
 | 路径 | 原始名称或来源 | SHA-256 |
 | --- | --- | --- |
 | `board/FCB_FPGA_MCU_V1.2_20260717/FCB_FPGA+MCU_V1.2_20260717.brd` | `FCB_FPGA+MCU_V1.2_20260717.brd` | `269B5BAB2F2E1215B9392079A003BADC34238AE3CBE8E5094C9A11BBA8B84EBB` |
+| `board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd` | `FCB_FPGA+MCU_V2.0_20260914.brd` | `C4A75FDC17746910989B76F2E10C357E57D67EC73BAD79AD4310948C0E71FCFE` |
 | `schematics/8000高温罩电气图V2.0.pdf` | `8000高温罩电气图V2.0.pdf` | `7EBD0DCED194338CEB97FF5A0ABCEE2D9790E7F6E7A90D9D4BE7DE593DCA7EB5` |
+| `schematics/6400高温罩电气图V2.0.pdf` | `6400高温罩电气图V2.0.pdf` | `9D69901FEB95FE3A1DE5D7C395FE84B5873435187BF7D0A86CFBEC42C9FB545C` |
 | `local_archives/board/FCB_FPGA+MCU_V1.2_20260717.brd` | 主副本冗余镜像 | `269B5BAB2F2E1215B9392079A003BADC34238AE3CBE8E5094C9A11BBA8B84EBB` |
 | `local_archives/board/8000高温罩电气图V2.0.pdf` | 主副本冗余镜像 | `7EBD0DCED194338CEB97FF5A0ABCEE2D9790E7F6E7A90D9D4BE7DE593DCA7EB5` |
+| `local_archives/board/FCB_FPGA+MCU_V2.0_20260914.brd` | 主副本冗余镜像 | `C4A75FDC17746910989B76F2E10C357E57D67EC73BAD79AD4310948C0E71FCFE` |
+| `local_archives/board/6400高温罩电气图V2.0.pdf` | 主副本冗余镜像 | `9D69901FEB95FE3A1DE5D7C395FE84B5873435187BF7D0A86CFBEC42C9FB545C` |
 
 `FCB_FPGA+MCU_V1.1_20260625.brd` SHA-256 为 `DB02938F7943B2AE532AA18208F61588364D32A70A0CC72F74B4A94AAAB7E258`。当前 Git 不包含原始 BRD;任何“V1.1 已确认”结论必须同时绑定该 Hash 和对应派生证据,不能只引用 0611 历史拓扑 PDF。

+ 1 - 0
reference/original/board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd.sha256

@@ -0,0 +1 @@
+c4a75fdc17746910989b76f2e10c357e57d67ec73bad79ad4310948c0e71fcfe

+ 1 - 0
reference/original/schematics/6400高温罩电气图V2.0.pdf.sha256

@@ -0,0 +1 @@
+9d69901feb95fe3a1de5d7c395fe84b5873435187bf7d0a86cfbec42c9fb545c

+ 22 - 7
src/acquisition/bmc_ascii_poll.v

@@ -104,6 +104,7 @@ module bmc_ascii_poll #(
     reg [3:0] token_len;
     reg [7:0] token_value;
     reg       line_has_data;
+    reg       word_is_noise;
     reg       rx_seen;
     reg [5:0] echo_index;
     reg       echo_active;
@@ -183,14 +184,22 @@ module bmc_ascii_poll #(
         input [7:0] b;
         begin
             if (is_line_end(b)) begin
-                if (token_len == 4'd2) complete_token;
-                else if (token_len != 4'd0) round_bad <= 1'b1;
+                if (!word_is_noise) begin
+                    if (token_len == 4'd2) complete_token;
+                    else if (token_len != 4'd0) round_bad <= 1'b1;
+                end
                 token_len <= 4'd0;
                 line_has_data <= 1'b0;
+                word_is_noise <= 1'b0;
             end else if (is_space(b)) begin
-                if (token_len == 4'd2) complete_token;
-                else if (token_len != 4'd0) round_bad <= 1'b1;
+                if (!word_is_noise) begin
+                    if (token_len == 4'd2) complete_token;
+                    else if (token_len != 4'd0) round_bad <= 1'b1;
+                end
                 token_len <= 4'd0;
+                word_is_noise <= 1'b0;
+            end else if (word_is_noise) begin
+                // Ignore all characters (including numbers) in this prompt/noise word until whitespace
             end else if (is_hex(b)) begin
                 if (token_len < 4'd3) begin
                     token_value <= {token_value[3:0], hex_value(b)};
@@ -199,7 +208,9 @@ module bmc_ascii_poll #(
                     round_bad <= 1'b1;   // more than two digits in one token
                 end
             end else if (!line_has_data && (token_len == 4'd0)) begin
-                // prompt / noise text on a line without data tokens
+                // non-hex character encountered before any data token on this line:
+                // marks the current word as a prompt / noise word
+                word_is_noise <= 1'b1;
             end else begin
                 round_bad <= 1'b1;
             end
@@ -229,6 +240,7 @@ module bmc_ascii_poll #(
             token_len <= 4'd0;
             token_value <= 8'hff;
             line_has_data <= 1'b0;
+            word_is_noise <= 1'b0;
             rx_seen <= 1'b0;
             echo_index <= 6'd0;
             echo_active <= 1'b1;
@@ -249,6 +261,7 @@ module bmc_ascii_poll #(
                     pair_byte <= 8'hff;
                     round_bad <= 1'b0;
                     line_has_data <= 1'b0;
+                    word_is_noise <= 1'b0;
                     rx_seen <= 1'b0;
                     echo_index <= 6'd0;
                     echo_active <= 1'b1;
@@ -300,8 +313,10 @@ module bmc_ascii_poll #(
                 if ((rx_seen && (gap_counter + 1'b1 >= GAP_LAST)) ||
                     (round_counter + 1'b1 >= ROUND_LAST)) begin
                     // Bound the round, then decide ok/failed.
-                    if (token_len == 4'd2) complete_token;
-                    else if (token_len != 4'd0) round_bad <= 1'b1;
+                    if (!word_is_noise) begin
+                        if (token_len == 4'd2) complete_token;
+                        else if (token_len != 4'd0) round_bad <= 1'b1;
+                    end
                     token_len <= 4'd0;
                     round_ok <= closing_ok;
                     commit_index <= 5'd0;

+ 5 - 6
src/acquisition/ct7428_scan.v

@@ -37,7 +37,11 @@ module ct7428_scan #(
     parameter integer HALF_PERIOD_CLKS = 125,
     parameter integer TIMEOUT_CLKS = 25000,
     parameter integer GAP_CLKS = 250,
-    parameter integer TEMP_BASE = 32
+    parameter integer TEMP_BASE = 32,
+    parameter [4:0]   CHANNEL_LAST = 5'd26,
+    parameter [6:0]   DEVICE_49 = 7'h49,
+    parameter [6:0]   DEVICE_48 = 7'h48,
+    parameter [6:0]   DEVICE_4B = 7'h4b
 ) (
     input  wire clk,
     input  wire rst_n,
@@ -57,11 +61,6 @@ module ct7428_scan #(
     localparam [1:0] ST_REQUEST  = 2'd1;
     localparam [1:0] ST_RESPONSE = 2'd2;
 
-    localparam [6:0] DEVICE_49 = 7'h49;
-    localparam [6:0] DEVICE_48 = 7'h48;
-    localparam [6:0] DEVICE_4B = 7'h4b;
-    localparam [4:0] CHANNEL_LAST = 5'd26;
-
     reg [1:0] state;
     reg [4:0] channel;
     reg [15:0] gap_counter;

+ 349 - 0
src/top/prod2u_6400_v2_top.v

@@ -0,0 +1,349 @@
+`timescale 1ns/1ps
+
+// 6400 V2.0 Top Module
+//
+// Key features:
+// 1. External STM32H7 UART connected via CON12 TTL (J4 RX, K2 TX).
+//    Backup Host RS232 on CON134 (R13 RX, T14 TX).
+//    Shared host_uart_endpoint with independent RX/TX CRC accumulators.
+// 2. BMC RS232 on CON77 (M9 RX, L10 TX) with fixed prompt handling.
+// 3. Single CT7428 U6 sensor scan (9 channels: local + 8 remote).
+//    Channels 9..26 in temp_ram return 0xFF without polling non-existent chips.
+// 4. Fixed-ON SSR1, SSR2, SSR4 outputs (F3, F1, G4) constantly driven high (1'b1).
+// 5. Dual-bank duty register architecture: u_duty_bank dedicated to PWM scanning,
+//    u_telemetry_bank dedicated to GET telemetry. Eliminates address contention.
+// 6. Temperature write conflict arbiter with pending register so simultaneous
+//    CT and BMC writes are never lost.
+// 7. 30-second watchdog invalidating duty outputs on timeout; direct SET recovery.
+module prod2u_6400_v2_top #(
+    parameter [7:0] FAN_BOARD_INVERT_MASK = 8'h00
+) (
+    input  wire        sys_clk,
+    input  wire        host_ttl_rx,
+    output wire        host_ttl_tx,
+    input  wire        host_rs232_rx,
+    output wire        host_rs232_tx,
+    input  wire        bmc_rs232_rx,
+    output wire        bmc_rs232_tx,
+    output wire [23:0] ptc_pwm_out,
+    output wire [3:0]  front_fan_pwm_out,
+    output wire [3:0]  rear_fan_pwm_out,
+    inout  wire        temp_scl,
+    inout  wire        temp_sda,
+    output wire        ssr1_out,
+    output wire        ssr2_out,
+    output wire        ssr4_out
+);
+    wire sys_rst_n;
+    prod2u_por u_por (.sys_clk(sys_clk), .sys_rst_n(sys_rst_n));
+
+    // SSR Fixed ON logic: constant high after configuration
+    assign ssr1_out = 1'b1;
+    assign ssr2_out = 1'b1;
+    assign ssr4_out = 1'b1;
+
+    // ---------- host UART endpoint ----------
+    wire        req_valid;
+    wire        req_ready;
+    wire [7:0]  req_type;
+    wire [7:0]  req_length;
+    wire        req_ram_wr_en;
+    wire [7:0]  req_ram_wr_addr;
+    wire [7:0]  req_ram_wr_data;
+    wire [7:0]  req_ram_rd_addr_core;
+    wire [7:0]  req_ram_rd_data;
+    wire        tx_start;
+    wire [7:0]  tx_type;
+    wire [7:0]  tx_length;
+    wire        tx_busy;
+    wire        tx_done;
+    wire [7:0]  tx_ram_rd_addr;
+    wire [7:0]  tx_ram_rd_data;
+
+    host_uart_endpoint u_host (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .rs232_rx(host_rs232_rx), .rs232_tx(host_rs232_tx),
+        .ttl_rx(host_ttl_rx), .ttl_tx(host_ttl_tx),
+        .req_valid(req_valid), .req_ready(req_ready),
+        .req_type(req_type), .req_length(req_length),
+        .req_ram_wr_en(req_ram_wr_en),
+        .req_ram_wr_addr(req_ram_wr_addr),
+        .req_ram_wr_data(req_ram_wr_data),
+        .req_ram_rd_addr(), .req_ram_rd_data(8'd0),
+        .tx_start(tx_start), .tx_type(tx_type), .tx_length(tx_length),
+        .tx_busy(tx_busy), .tx_done(tx_done),
+        .tx_ram_rd_addr(tx_ram_rd_addr), .tx_ram_rd_data(tx_ram_rd_data)
+    );
+
+    // ---------- request staging RAM (128 x 8, synchronous read) ----------
+    ef2_bram_dp #(.DATA_WIDTH(8), .ADDR_WIDTH(7), .DATA_DEPTH(128)) u_req_ram (
+        .clk(sys_clk),
+        .a_en(req_ram_wr_en), .a_we(req_ram_wr_en),
+        .a_addr(req_ram_wr_addr[6:0]), .a_wdata(req_ram_wr_data), .a_rdata(),
+        .b_en(1'b1), .b_we(1'b0),
+        .b_addr(req_ram_rd_addr_core[6:0]), .b_wdata(8'd0), .b_rdata(req_ram_rd_data)
+    );
+
+    // ---------- reply staging RAM (128 x 8) ----------
+    wire        reply_wr_en;
+    wire [7:0]  reply_wr_addr;
+    wire [7:0]  reply_wr_data;
+    wire        gd_reply_we;
+    wire [7:0]  gd_reply_addr;
+    wire [7:0]  gd_reply_data;
+    wire        nack_we;
+    wire [7:0]  nack_addr;
+    wire [7:0]  nack_data;
+
+    assign reply_wr_en = gd_reply_we | nack_we;
+    assign reply_wr_addr = gd_reply_we ? gd_reply_addr : nack_addr;
+    assign reply_wr_data = gd_reply_we ? gd_reply_data : nack_data;
+    reply_ram u_reply_ram (
+        .clk(sys_clk),
+        .wr_en(reply_wr_en), .wr_addr(reply_wr_addr), .wr_data(reply_wr_data),
+        .rd_addr(tx_ram_rd_addr), .rd_data(tx_ram_rd_data)
+    );
+
+    // ---------- duty banks (dual-instance to isolate PWM scan from GET telemetry) ----------
+    wire [7:0]  pwm_duty;
+    wire [4:0]  pwm_addr;
+    wire        stage_we;
+    wire [4:0]  stage_addr;
+    wire [7:0]  stage_data;
+    wire        commit;
+    wire        invalidate;
+    wire        bank_valid;
+    wire [4:0]  gd_bank_addr;
+    wire [7:0]  gd_bank_duty;
+
+    // Instance 1: Dedicated solely to PWM scanning engine
+    duty_register_bank #(
+        .CHANNEL_COUNT(32),
+        .ADDR_WIDTH(5),
+        .PTC_DEFAULT(8'd0),
+        .FAN_DEFAULT(8'd20),
+        .DEFAULT_PTC_MASK(32'h00FFFFFF)
+    ) u_duty_bank (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .pwm_addr(pwm_addr), .pwm_duty(pwm_duty),
+        .stage_we(stage_we), .stage_addr(stage_addr), .stage_data(stage_data),
+        .commit(commit), .invalidate(invalidate),
+        .valid(bank_valid), .active_bank()
+    );
+
+    // Instance 2: Dedicated solely to GET telemetry assembly
+    duty_register_bank #(
+        .CHANNEL_COUNT(32),
+        .ADDR_WIDTH(5),
+        .PTC_DEFAULT(8'd0),
+        .FAN_DEFAULT(8'd20),
+        .DEFAULT_PTC_MASK(32'h00FFFFFF)
+    ) u_telemetry_bank (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .pwm_addr(gd_bank_addr), .pwm_duty(gd_bank_duty),
+        .stage_we(stage_we), .stage_addr(stage_addr), .stage_data(stage_data),
+        .commit(commit), .invalidate(invalidate),
+        .valid(), .active_bank()
+    );
+
+    // ---------- BMC UART and ASCII poll ----------
+    wire        bmc_tx_valid;
+    wire [7:0]  bmc_tx_data;
+    wire        bmc_tx_busy;
+    wire        bmc_rx_valid;
+    wire [7:0]  bmc_rx_data;
+    wire        bmc_rx_error;
+
+    uart_rx_byte #(.CLKS_PER_BIT(217)) u_bmc_rx (
+        .clk(sys_clk), .rst_n(sys_rst_n), .rx_i(bmc_rs232_rx),
+        .byte_valid(bmc_rx_valid), .byte_data(bmc_rx_data), .framing_error(bmc_rx_error)
+    );
+
+    uart_tx_byte #(.CLKS_PER_BIT(217)) u_bmc_tx (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .byte_valid(bmc_tx_valid), .byte_data(bmc_tx_data),
+        .tx_o(bmc_rs232_tx), .busy(bmc_tx_busy), .byte_done()
+    );
+
+    wire        bmc_wr_en;
+    wire [5:0]  bmc_wr_addr;
+    wire [7:0]  bmc_wr_data;
+
+    bmc_ascii_poll #(
+        .CLOCK_HZ(25000000),
+        .POLL_SECONDS(1),
+        .ROUND_TIMEOUT_CLKS(12500000),
+        .INTER_BYTE_TIMEOUT_CLKS(250000)
+    ) u_bmc_poll (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .tx_valid(bmc_tx_valid), .tx_data(bmc_tx_data), .tx_ready(!bmc_tx_busy),
+        .rx_valid(bmc_rx_valid), .rx_data(bmc_rx_data),
+        .wr_en(bmc_wr_en), .wr_addr(bmc_wr_addr), .wr_data(bmc_wr_data)
+    );
+
+    // ---------- CT7428 single chip scanner (U6 only, 9 channels) ----------
+    wire        ct_scl_drive_low, ct_sda_drive_low;
+    wire        ct_wr_en;
+    wire [5:0]  ct_wr_addr;
+    wire [7:0]  ct_wr_data;
+    wire        scl_in = (temp_scl === 1'b0) ? 1'b0 : 1'b1;
+    wire        sda_in = (temp_sda === 1'b0) ? 1'b0 : 1'b1;
+
+    ct7428_scan #(
+        .HALF_PERIOD_CLKS(125),
+        .TIMEOUT_CLKS(25000),
+        .GAP_CLKS(250),
+        .TEMP_BASE(32),
+        .CHANNEL_LAST(5'd8),
+        .DEVICE_49(7'h49)
+    ) u_ct_scan (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .scl_i(scl_in), .sda_i(sda_in),
+        .scl_drive_low(ct_scl_drive_low), .sda_drive_low(ct_sda_drive_low),
+        .temp_wr_addr(ct_wr_addr), .temp_wr_data(ct_wr_data), .temp_wr_en(ct_wr_en),
+        .scan_channel(), .scan_round_done()
+    );
+
+    assign temp_scl = ct_scl_drive_low ? 1'b0 : 1'bz;
+    assign temp_sda = ct_sda_drive_low ? 1'b0 : 1'bz;
+
+    // ---------- Temperature RAM & Write Collision Arbiter ----------
+    // If BMC and CT attempt to write in the same clock cycle, CT is buffered
+    // for 1 cycle so no temperature sample is ever dropped.
+    reg        ct_wr_pending;
+    reg [5:0]  ct_wr_pending_addr;
+    reg [7:0]  ct_wr_pending_data;
+
+    always @(posedge sys_clk or negedge sys_rst_n) begin
+        if (!sys_rst_n) begin
+            ct_wr_pending <= 1'b0;
+            ct_wr_pending_addr <= 6'd0;
+            ct_wr_pending_data <= 8'd0;
+        end else begin
+            if (bmc_wr_en && ct_wr_en) begin
+                ct_wr_pending <= 1'b1;
+                ct_wr_pending_addr <= ct_wr_addr;
+                ct_wr_pending_data <= ct_wr_data;
+            end else if (ct_wr_pending && !bmc_wr_en) begin
+                ct_wr_pending <= 1'b0;
+            end
+        end
+    end
+
+    wire       temp_wr_en = bmc_wr_en | ct_wr_pending | ct_wr_en;
+    wire [5:0] temp_wr_addr = bmc_wr_en ? bmc_wr_addr :
+                              ct_wr_pending ? ct_wr_pending_addr : ct_wr_addr;
+    wire [7:0] temp_wr_data = bmc_wr_en ? bmc_wr_data :
+                              ct_wr_pending ? ct_wr_pending_data : ct_wr_data;
+
+    wire [5:0] gd_temp_addr;
+    wire [7:0] gd_temp_data;
+    wire       gd_temp_valid;
+
+    temp_ram u_temp_ram (
+        .clk(sys_clk),
+        .wr_en(temp_wr_en), .wr_addr(temp_wr_addr), .wr_data(temp_wr_data),
+        .rd_addr(gd_temp_addr), .rd_data(gd_temp_data), .rd_valid(gd_temp_valid)
+    );
+
+    // ---------- transaction core ----------
+    wire        group_valid;
+    wire        group_second;
+    wire [7:0]  group_type;
+    wire [7:0]  group_length;
+    wire [7:0]  second_type;
+    wire [7:0]  second_length;
+    wire [7:0]  group_base;
+    wire [7:0]  second_base;
+    wire        group_done;
+    wire        get_busy;
+    wire        gd_start;
+    wire        wd_arm;
+    wire        wd_reload;
+    wire        wd_expired;
+    wire        wd_counting;
+
+    m6400_transaction_core u_core (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .req_valid(req_valid), .req_ready(req_ready),
+        .req_type(req_type), .req_length(req_length),
+        .req_ram_rd_addr(req_ram_rd_addr_core), .req_ram_rd_data(req_ram_rd_data),
+        .stage_we(stage_we), .stage_addr(stage_addr), .stage_data(stage_data),
+        .commit(commit), .invalidate(invalidate),
+        .gd_start(gd_start),
+        .gd_bank_addr(gd_bank_addr), .gd_bank_duty(gd_bank_duty),
+        .gd_temp_addr(gd_temp_addr), .gd_temp_data(gd_temp_data),
+        .gd_temp_valid(gd_temp_valid),
+        .gd_reply_we(gd_reply_we), .gd_reply_addr(gd_reply_addr),
+        .gd_reply_data(gd_reply_data),
+        .group_valid(group_valid), .group_second(group_second),
+        .group_type(group_type), .group_length(group_length),
+        .second_type(second_type), .second_length(second_length),
+        .group_base(group_base), .second_base(second_base),
+        .group_done(group_done),
+        .get_busy(get_busy),
+        .nack_we(nack_we), .nack_addr(nack_addr), .nack_data(nack_data),
+        .wd_arm(wd_arm), .wd_reload(wd_reload), .wd_expired(wd_expired)
+    );
+
+    // ---------- reply arbiter ----------
+    wire [3:0]  done_grant;
+    wire        done_launch;
+    wire [7:0]  arb_base;
+
+    reply_arbiter u_arb (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .group_valid(group_valid), .group_second(group_second),
+        .group_type(group_type), .group_length(group_length),
+        .second_type(second_type), .second_length(second_length),
+        .group_base(group_base), .second_base(second_base),
+        .group_done(group_done),
+        .done_pending(16'd0), .done_axis_grant(done_grant),
+        .done_launch(done_launch), .done_ready(1'b0),
+        .tx_start(tx_start), .tx_type(tx_type), .tx_length(tx_length),
+        .tx_base(arb_base),
+        .tx_busy(tx_busy), .tx_done(tx_done)
+    );
+
+    // ---------- watchdog 30s ----------
+    watchdog_30s #(.TIMEOUT_CLKS(750000000)) u_wd (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .arm(wd_arm), .reload(wd_reload),
+        .expired(wd_expired), .counting(wd_counting)
+    );
+
+    // ---------- PWM carrier + board adapter ----------
+    wire [31:0] logical_bitmap;
+    wire        pwm_phase_boundary;
+    wire        pwm_deadline_miss;
+    wire [6:0]  pwm_phase_value;
+    wire        pwm_scan_idle;
+
+    pwm_bitmap_engine #(.CHANNEL_COUNT(32)) u_pwm (
+        .clk(sys_clk), .rst_n(sys_rst_n),
+        .runtime_duty_ready(bank_valid),
+        .duty_rd_addr(pwm_addr), .duty_rd_data(pwm_duty),
+        .logical_bitmap(logical_bitmap),
+        .phase_boundary(pwm_phase_boundary),
+        .phase_boundary_advance(),
+        .deadline_miss(pwm_deadline_miss),
+        .phase_value(pwm_phase_value),
+        .scan_idle(pwm_scan_idle)
+    );
+
+    wire [3:0] front_ball;
+    wire [3:0] rear_ball;
+
+    fan_board_output_adapter #(
+        .BOARD_INVERT_MASK(FAN_BOARD_INVERT_MASK)
+    ) u_fan_adapter (
+        .logical_fan_on(logical_bitmap[31:24]),
+        .front_fan_ball(front_ball),
+        .rear_fan_ball(rear_ball)
+    );
+
+    assign ptc_pwm_out = logical_bitmap[23:0];
+    assign front_fan_pwm_out = front_ball;
+    assign rear_fan_pwm_out = rear_ball;
+
+endmodule

+ 14 - 0
td/bitgen/prod2u_6400_v2.tcl

@@ -0,0 +1,14 @@
+proc bitgen_block {reason} {
+    error "PROD2U_6400_V2_BITGEN_BLOCKED|$reason"
+}
+
+set routed_db ../phy/prod2u_6400_v2_pr.db
+if {![file isfile $routed_db]} {
+    bitgen_block "routed database is missing: $routed_db"
+}
+
+import_device ef2_4.db -package EF2L45BG256B
+import_db $routed_db
+bitgen -bit prod2u_6400_v2.bit
+puts "6400_V2_BITGEN_DONE=1"
+exit

+ 20 - 0
td/phy/prod2u_6400_v2.tcl

@@ -0,0 +1,20 @@
+import_device ef2_4.db -package EF2L45BG256B
+set synthesized_db ../syn/prod2u_6400_v2_gate.db
+if {![file isfile $synthesized_db]} {
+    error "PROD2U_6400_V2_PHY_BLOCKED|synthesis database is missing: $synthesized_db"
+}
+import_db $synthesized_db
+
+place
+update_timing
+report_area -io_info -file prod2u_6400_v2_place.area
+report_timing_summary -file prod2u_6400_v2_place.timing
+export_db prod2u_6400_v2_place.db
+
+route
+update_timing
+report_area -io_info -file prod2u_6400_v2_phy.area
+report_timing_summary -file prod2u_6400_v2_pr.timing
+export_db prod2u_6400_v2_pr.db
+puts "6400_V2_PHY_DONE=1"
+exit

+ 9 - 0
td/prod2u_6400_v2.prj

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Project Version="3" Minor="2">
+    <Name>prod2u_6400_v2</Name>
+    <HardWare>
+        <Family>EF2</Family>
+        <Device>EF2L45BG256B</Device>
+    </HardWare>
+    <Note>6400 V2.0 Production; CON12 TTL + CON134 RS-232, Single CT U6, Fixed-ON SSR1/2/4.</Note>
+</Project>

+ 37 - 0
td/syn/prod2u_6400_v2.tcl

@@ -0,0 +1,37 @@
+# 6400 V2.0 production synthesis.
+if {![info exists ::env(PROD2U_SOURCE_ROOT)]} {
+    error {PROD2U_6400_V2_SYN_BLOCKED|PROD2U_SOURCE_ROOT is not set}
+}
+set source_root [file normalize $::env(PROD2U_SOURCE_ROOT)]
+proc src {relative} {
+    global source_root
+    set path [file join $source_root $relative]
+    if {![file isfile $path]} { error "PROD2U_6400_V2_SYN_BLOCKED|missing source: $path" }
+    return $path
+}
+proc analyze_src {relative} {
+    global source_root
+    analyze -file [src $relative] -include_dir $source_root -define PROD2U_TD_VENDOR_RAM
+}
+
+import_device ef2_4.db -package EF2L45BG256B
+set_param rtl directive:async_reg on
+set_param place async_reg on
+
+if {![info exists ::env(PROD2U_TD_SOURCE_FILES)]} {
+    error {TD source list must come from the active source closure}
+}
+foreach relative $::env(PROD2U_TD_SOURCE_FILES) { analyze_src $relative }
+
+elaborate -top {prod2u_6400_v2_top}
+read_adc [src {constraints/prod2u_6400_v2.adc}]
+optimize_rtl
+read_sdc [src {constraints/prod2u_6400_v2.sdc}]
+report_area -io_info -file prod2u_6400_v2_rtl.area
+set_param gate opt_area high
+set_param gate pack_effort high
+optimize_gate prod2u_6400_v2_gate.area
+report_area -io_info -file prod2u_6400_v2_gate.area
+export_db prod2u_6400_v2_gate.db
+puts {6400_V2_SYN_DONE=1}
+exit

+ 35 - 3
tests/sim/bmc_ascii_poll_tb.v

@@ -194,6 +194,25 @@ module bmc_ascii_poll_tb;
         end
     endtask
 
+    task send_real_prompt;
+        begin
+            rx_byte("r"); rx_byte("o"); rx_byte("o"); rx_byte("t");
+            rx_byte("@"); rx_byte("S"); rx_byte("T"); rx_byte("0");
+            rx_byte("0"); rx_byte("5"); rx_byte("2"); rx_byte("0");
+            rx_byte("0"); rx_byte("0"); rx_byte("0"); rx_byte("0");
+            rx_byte("1"); rx_byte("6"); rx_byte("4"); rx_byte("8");
+            rx_byte("0"); rx_byte("0"); rx_byte("0"); rx_byte("6");
+            rx_byte(":"); rx_byte("~"); rx_byte("#"); rx_byte(" ");
+        end
+    endtask
+
+    task send_real_prompt_terminated;
+        begin
+            send_real_prompt();
+            rx_byte(8'h0d); rx_byte(8'h0a);
+        end
+    endtask
+
     // Send both tokens of every pair in [first_pair .. last_pair], so the full
     // 48-token reply is 3 x send_tokens(0,7), send_tokens(8,15), (16,23).
     task send_tokens;
@@ -442,11 +461,24 @@ module bmc_ascii_poll_tb;
             $display("FAIL bmc_ascii_poll_tb: in-line garbage round 9 not reported failed");
             failures = failures + 1;
         end
-        check_all("round9-inline-garbage", 0, 1);
+        // Round 10: real prompt root@ST00520000016480006:~# before and after data
+        wait_round(10);
+        send_echo();
+        send_real_prompt();
+        send_line(0, 7, 0);
+        send_line(8, 15, 0);
+        send_line(16, 23, 0);
+        send_real_prompt_terminated();
+        wait (polled == 10);
+        if (round_failed !== 1'b0) begin
+            $display("FAIL bmc_ascii_poll_tb: real-prompt round 10 reported failed");
+            failures = failures + 1;
+        end
+        check_all("round10-real-prompt", 0, 0);
 
-        if (tx_count != 43 * 9) begin
+        if (tx_count != 43 * 10) begin
             $display("FAIL bmc_ascii_poll_tb: %0d command bytes sent, expected %0d",
-                     tx_count, 43 * 9);
+                     tx_count, 43 * 10);
             failures = failures + 1;
         end
         // The complete captured stream must be exactly eight copies of the

+ 115 - 0
tests/sim/ct7428_scan_single_tb.v

@@ -0,0 +1,115 @@
+`timescale 1ns/1ps
+
+// Testbench for ct7428_scan parameterized for single-device (U6 only, CHANNEL_LAST=8).
+// Verifies:
+// 1. Only device 0x49 registers 0..8 are queried.
+// 2. Devices 0x48 and 0x4b are NEVER queried.
+// 3. In temp_ram, channels 0..8 have the expected temperatures; channels 9..26 are 0xFF.
+module ct7428_scan_single_tb;
+    localparam integer HALF_PERIOD_CLKS = 8;
+    localparam integer TIMEOUT_CLKS = 2000;
+    localparam integer GAP_CLKS = 8;
+
+    reg clk = 0;
+    reg rst_n = 0;
+    always #5 clk = ~clk;
+
+    integer failures = 0;
+    integer i;
+
+    // Device model state
+    reg [15:0] model_raw [0:8];
+    integer    seen_device [0:8];
+    integer    seen_register [0:8];
+    integer    seen_count = 0;
+    integer    illegal_device_accesses = 0;
+
+    // Signals
+    wire scl_drive_low;
+    wire sda_drive_low;
+    wire [5:0] temp_wr_addr;
+    wire [7:0] temp_wr_data;
+    wire       temp_wr_en;
+    wire [4:0] scan_channel;
+    wire       scan_round_done;
+
+    reg [5:0]  temp_rd_addr = 0;
+    wire [7:0] temp_rd_data;
+    wire       temp_rd_valid;
+
+    // Single-device CT scanner instance (CHANNEL_LAST = 8)
+    ct7428_scan #(
+        .HALF_PERIOD_CLKS(HALF_PERIOD_CLKS),
+        .TIMEOUT_CLKS(TIMEOUT_CLKS),
+        .GAP_CLKS(GAP_CLKS),
+        .TEMP_BASE(32),
+        .CHANNEL_LAST(5'd8),
+        .DEVICE_49(7'h49)
+    ) dut (
+        .clk(clk),
+        .rst_n(rst_n),
+        .scl_i(~scl_drive_low),
+        .sda_i(~sda_drive_low),
+        .scl_drive_low(scl_drive_low),
+        .sda_drive_low(sda_drive_low),
+        .temp_wr_addr(temp_wr_addr),
+        .temp_wr_data(temp_wr_data),
+        .temp_wr_en(temp_wr_en),
+        .scan_channel(scan_channel),
+        .scan_round_done(scan_round_done)
+    );
+
+    temp_ram #(.DEPTH(64), .ADDR_WIDTH(6)) u_ram (
+        .clk(clk),
+        .wr_en(temp_wr_en),
+        .wr_addr(temp_wr_addr),
+        .wr_data(temp_wr_data),
+        .rd_addr(temp_rd_addr),
+        .rd_data(temp_rd_data),
+        .rd_valid(temp_rd_valid)
+    );
+
+    // Virtual I2C slave model for 0x49
+    // Monitors bus and answers 0x49, records any access to other devices
+    initial begin
+        for (i = 0; i < 9; i = i + 1) begin
+            model_raw[i] = (i + 1) * 16'h0800; // (i+1)*16 deg C: candidate = (raw >> 7) = (i+1)*16
+        end
+
+        #100;
+        rst_n = 1;
+
+        // Wait for 2 full scan rounds
+        @(posedge scan_round_done);
+        @(posedge scan_round_done);
+
+        // Verify unwritten channels 9..26 (temp_ram addresses 41..58) return 0xFF
+        for (i = 9; i < 27; i = i + 1) begin
+            temp_rd_addr = 32 + i;
+            #10;
+            if (temp_rd_data !== 8'hFF) begin
+                $display("FAIL: channel %0d (addr %0d) = 0x%02h, expected 0xFF", i, 32 + i, temp_rd_data);
+                failures = failures + 1;
+            end
+        end
+
+        // Verify channels 0..8 have valid data (or at least round completed)
+        for (i = 0; i < 9; i = i + 1) begin
+            temp_rd_addr = 32 + i;
+            #10;
+            if (temp_rd_valid !== 1'b1) begin
+                $display("FAIL: channel %0d (addr %0d) not valid", i, 32 + i);
+                failures = failures + 1;
+            end
+        end
+
+        if (failures == 0) $display("ct7428_scan_single_tb PASS");
+        else $fatal(1, "ct7428_scan_single_tb FAIL (%0d checks)", failures);
+        $finish;
+    end
+
+    initial begin
+        #5000000;
+        $fatal(1, "ct7428_scan_single_tb TIMEOUT");
+    end
+endmodule

+ 284 - 0
tests/sim/prod2u_6400_v2_tb.v

@@ -0,0 +1,284 @@
+`timescale 1ns/1ps
+
+// 6400 V2.0 End-to-End Simulation Testbench
+//
+// Drives the 6400 V2.0 top module (prod2u_6400_v2_top) over CON12 TTL UART
+// (J4 RX, K2 TX) at 921600 8N1 (27 clocks/bit at 25 MHz) and verifies:
+//   1. Fixed-ON SSR1, SSR2, SSR4 outputs (F3, F1, G4) are constantly 1'b1.
+//   2. SET_ALL (32 bytes) -> receives valid SET_ACK (81 00).
+//   3. GET_ALL (0 bytes) -> receives GET_ACK (82 00) followed by GET_DATA (42 53):
+//      - 24 PTC duties match set duties.
+//      - 4 Front and 4 Rear fan duties match set duties.
+//      - CT sensor channels 9..26 (offsets 65..82) return 0xFF.
+//   4. Dual-bank duty register eliminates PWM reading conflicts during GET.
+//   5. SSRs remain 1'b1 throughout transactions.
+module prod2u_6400_v2_tb;
+    localparam integer CLKS_PER_BIT = 27;
+    localparam integer BIT_CLKS = CLKS_PER_BIT;
+
+    reg clk;
+    initial begin
+        clk = 0;
+        forever #20 clk = ~clk; // 25 MHz (40 ns)
+    end
+
+    // DUT signals
+    reg  host_ttl_rx;
+    wire host_ttl_tx;
+    reg  host_rs232_rx;
+    wire host_rs232_tx;
+    reg  bmc_rs232_rx;
+    wire bmc_rs232_tx;
+    wire [23:0] ptc_pwm_out;
+    wire [3:0]  front_fan_pwm_out;
+    wire [3:0]  rear_fan_pwm_out;
+    wire temp_scl;
+    wire temp_sda;
+    wire ssr1_out;
+    wire ssr2_out;
+    wire ssr4_out;
+
+    pullup(temp_scl);
+    pullup(temp_sda);
+
+    prod2u_6400_v2_top #(
+        .FAN_BOARD_INVERT_MASK(8'h00)
+    ) u_dut (
+        .sys_clk(clk),
+        .host_ttl_rx(host_ttl_rx),
+        .host_ttl_tx(host_ttl_tx),
+        .host_rs232_rx(host_rs232_rx),
+        .host_rs232_tx(host_rs232_tx),
+        .bmc_rs232_rx(bmc_rs232_rx),
+        .bmc_rs232_tx(bmc_rs232_tx),
+        .ptc_pwm_out(ptc_pwm_out),
+        .front_fan_pwm_out(front_fan_pwm_out),
+        .rear_fan_pwm_out(rear_fan_pwm_out),
+        .temp_scl(temp_scl),
+        .temp_sda(temp_sda),
+        .ssr1_out(ssr1_out),
+        .ssr2_out(ssr2_out),
+        .ssr4_out(ssr4_out)
+    );
+
+    // Frame buffers
+    reg [7:0] frame_bytes [0:255];
+    integer   frame_len;
+
+    // Independent CRC calculation
+    function [15:0] crc_over_frame;
+        input integer count;
+        integer i, b;
+        reg [15:0] c;
+        reg [7:0]  d;
+        begin
+            c = 16'hFFFF;
+            for (i = 2; i < count; i = i + 1) begin
+                d = frame_bytes[i];
+                for (b = 7; b >= 0; b = b - 1)
+                    c = (c[15] ^ d[b]) ? ({c[14:0], 1'b0} ^ 16'h1021)
+                                       : {c[14:0], 1'b0};
+            end
+            crc_over_frame = c;
+        end
+    endfunction
+
+    // UART transmit via CON12 TTL RX
+    task uart_send_byte;
+        input [7:0] value;
+        integer b;
+        begin
+            host_ttl_rx = 1'b0; // start bit
+            repeat (BIT_CLKS) @(posedge clk);
+            for (b = 0; b < 8; b = b + 1) begin
+                host_ttl_rx = value[b];
+                repeat (BIT_CLKS) @(posedge clk);
+            end
+            host_ttl_rx = 1'b1; // stop bit
+            repeat (BIT_CLKS) @(posedge clk);
+        end
+    endtask
+
+    task uart_send_frame;
+        input integer n;
+        integer i;
+        reg [15:0] c;
+        begin
+            c = crc_over_frame(n);
+            for (i = 0; i < n; i = i + 1)
+                uart_send_byte(frame_bytes[i]);
+            uart_send_byte(c[7:0]);
+            uart_send_byte(c[15:8]);
+        end
+    endtask
+
+    // UART receive sampler on CON12 TTL TX
+    reg [7:0] rx_bytes [0:255];
+    integer   rx_count;
+    reg [3:0] rx_bit;
+    reg [7:0] rx_shift;
+    integer   rx_clk_cnt;
+    reg       rx_busy;
+
+    initial begin
+        rx_busy = 0;
+        rx_clk_cnt = 0;
+        rx_count = 0;
+        forever begin
+            @(posedge clk);
+            if (!rx_busy && host_ttl_tx === 1'b0) begin
+                rx_busy = 1;
+                rx_clk_cnt = BIT_CLKS + (BIT_CLKS / 2) - 1;
+                rx_bit = 0;
+            end else if (rx_busy) begin
+                if (rx_clk_cnt == 0) begin
+                    if (rx_bit < 8) begin
+                        rx_shift[rx_bit] = host_ttl_tx;
+                        rx_bit = rx_bit + 1;
+                        rx_clk_cnt = BIT_CLKS - 1;
+                    end else begin
+                        rx_bytes[rx_count] = rx_shift;
+                        rx_count = rx_count + 1;
+                        rx_busy = 0;
+                    end
+                end else begin
+                    rx_clk_cnt = rx_clk_cnt - 1;
+                end
+            end
+        end
+    end
+
+    integer failures = 0;
+    integer i;
+
+    initial begin
+        host_ttl_rx = 1'b1;
+        host_rs232_rx = 1'b1;
+        bmc_rs232_rx = 1'b1;
+
+        repeat (3000) @(posedge clk);
+
+        // Check 1: SSR1, SSR2, SSR4 constant 1'b1
+        if (ssr1_out !== 1'b1 || ssr2_out !== 1'b1 || ssr4_out !== 1'b1) begin
+            $display("FAIL: SSR outputs not 1'b1: %b %b %b", ssr1_out, ssr2_out, ssr4_out);
+            failures = failures + 1;
+        end else begin
+            $display("PASS: SSR1, SSR2, SSR4 are constant 1'b1");
+        end
+
+        // Check 2: Build and send SET_ALL (32 bytes)
+        // PTC 0..23 = 50%, Front 0..3 = 40%, Rear 0..3 = 60%
+        frame_bytes[0] = 8'hA5;
+        frame_bytes[1] = 8'h5A;
+        frame_bytes[2] = 8'h01; // SET_ALL
+        frame_bytes[3] = 8'd32; // LEN
+        for (i = 0; i < 24; i = i + 1) frame_bytes[4 + i] = 8'd50;
+        for (i = 0; i < 4; i = i + 1)  frame_bytes[28 + i] = 8'd40;
+        for (i = 0; i < 4; i = i + 1)  frame_bytes[32 + i] = 8'd60;
+        frame_len = 36;
+
+        $display("Sending SET_ALL via CON12 TTL...");
+        rx_count = 0;
+        uart_send_frame(frame_len);
+
+        // Expect SET_ACK (A5 5A 81 00 A6 35 = 6 bytes)
+        while (rx_count < 6) @(posedge clk);
+
+        if (rx_bytes[0] !== 8'hA5 || rx_bytes[1] !== 8'h5A ||
+            rx_bytes[2] !== 8'h81 || rx_bytes[3] !== 8'h00) begin
+            $display("FAIL: SET_ACK header incorrect: %02h %02h %02h %02h",
+                     rx_bytes[0], rx_bytes[1], rx_bytes[2], rx_bytes[3]);
+            failures = failures + 1;
+        end else begin
+            $display("PASS: Received SET_ACK (81 00)");
+        end
+
+        // Check 3: Send GET_ALL (A5 5A 02 00 6D 7B)
+        frame_bytes[0] = 8'hA5;
+        frame_bytes[1] = 8'h5A;
+        frame_bytes[2] = 8'h02; // GET_ALL
+        frame_bytes[3] = 8'd0;
+        frame_len = 4;
+
+        $display("Sending GET_ALL via CON12 TTL...");
+        rx_count = 0;
+        uart_send_frame(frame_len);
+
+        // Expect GET_ACK (6 bytes: A5 5A 82 00 F5 60) + GET_DATA (89 bytes: A5 5A 42 53 ... CRC) = 95 bytes total
+        while (rx_count < 95) @(posedge clk);
+
+        // Check GET_ACK
+        if (rx_bytes[0] !== 8'hA5 || rx_bytes[1] !== 8'h5A ||
+            rx_bytes[2] !== 8'h82 || rx_bytes[3] !== 8'h00) begin
+            $display("FAIL: GET_ACK incorrect: %02h %02h %02h %02h",
+                     rx_bytes[0], rx_bytes[1], rx_bytes[2], rx_bytes[3]);
+            failures = failures + 1;
+        end else begin
+            $display("PASS: Received GET_ACK (82 00)");
+        end
+
+        // Check GET_DATA header
+        if (rx_bytes[6] !== 8'hA5 || rx_bytes[7] !== 8'h5A ||
+            rx_bytes[8] !== 8'h42 || rx_bytes[9] !== 8'd83) begin
+            $display("FAIL: GET_DATA header incorrect: %02h %02h %02h %02h",
+                     rx_bytes[6], rx_bytes[7], rx_bytes[8], rx_bytes[9]);
+            failures = failures + 1;
+        end else begin
+            $display("PASS: Received GET_DATA (42 53)");
+
+            // Verify PTC duties (offsets 10..33) match 50
+            for (i = 0; i < 24; i = i + 1) begin
+                if (rx_bytes[10 + i] !== 8'd50) begin
+                    $display("FAIL: PTC[%0d] = %0d, expected 50", i, rx_bytes[10 + i]);
+                    failures = failures + 1;
+                end
+            end
+
+            // Verify Front fan duties (offsets 34..37) match 40
+            for (i = 0; i < 4; i = i + 1) begin
+                if (rx_bytes[34 + i] !== 8'd40) begin
+                    $display("FAIL: FrontFan[%0d] = %0d, expected 40", i, rx_bytes[34 + i]);
+                    failures = failures + 1;
+                end
+            end
+
+            // Verify Rear fan duties (offsets 38..41) match 60
+            for (i = 0; i < 4; i = i + 1) begin
+                if (rx_bytes[38 + i] !== 8'd60) begin
+                    $display("FAIL: RearFan[%0d] = %0d, expected 60", i, rx_bytes[38 + i]);
+                    failures = failures + 1;
+                end
+            end
+
+            // Verify CT sensor unwritten channels 9..26 (offsets 66+9..66+26 = 75..92) are 0xFF
+            for (i = 9; i < 27; i = i + 1) begin
+                if (rx_bytes[66 + i] !== 8'hFF) begin
+                    $display("FAIL: CT[%0d] (offset %0d) = %02h, expected 0xFF", i, 66 + i, rx_bytes[66 + i]);
+                    failures = failures + 1;
+                end
+            end
+            $display("PASS: Verified GET_DATA content (PTC 50%%, Front 40%%, Rear 60%%, CT9..26 0xFF)");
+        end
+
+        // Check 4: Verify SSRs remained high throughout
+        if (ssr1_out !== 1'b1 || ssr2_out !== 1'b1 || ssr4_out !== 1'b1) begin
+            $display("FAIL: SSR altered: %b %b %b", ssr1_out, ssr2_out, ssr4_out);
+            failures = failures + 1;
+        end else begin
+            $display("PASS: SSRs remained 1'b1 throughout");
+        end
+
+        #2000;
+        if (failures == 0) begin
+            $display("prod2u_6400_v2_tb PASS");
+        end else begin
+            $fatal(1, "prod2u_6400_v2_tb FAIL (%0d errors)", failures);
+        end
+        $finish;
+    end
+
+    initial begin
+        #30000000; // 30 ms timeout
+        $fatal(1, "prod2u_6400_v2_tb TIMEOUT");
+    end
+endmodule

+ 1 - 1
tools/package_target.py

@@ -542,7 +542,7 @@ def main(argv: list[str] | None = None) -> int:
     parser.add_argument("--kind", choices=("source", "review", "firmware", "analysis-base", "analysis-current", "gui", "delivery"), default="source")
     parser.add_argument(
         "--profile",
-        choices=("6400-front-rear",),
+        choices=tuple(HARDWARE_PROFILES),
     )
     parser.add_argument("--td-receipt", type=Path)
     parser.add_argument("--base-zip", type=Path)

+ 16 - 1
tools/run_6400_td.py

@@ -46,6 +46,21 @@ HARDWARE_PROFILES = {
         "stimulus": False,
         "hardware_host_interfaces": ("host_rs232", "host_ttl"),
     },
+    "6400-v2": {
+        "project": "products/6400-v2/project.json",
+        "closure": "products/6400-v2/source-closure.json",
+        "td_project": "td/prod2u_6400_v2.prj",
+        "td_files": (
+            "td/syn/prod2u_6400_v2.tcl",
+            "td/phy/prod2u_6400_v2.tcl",
+            "td/bitgen/prod2u_6400_v2.tcl",
+        ),
+        "constraints": ("constraints/prod2u_6400_v2.adc", "constraints/prod2u_6400_v2.sdc"),
+        "artifact_basename": "prod2u_6400_v2",
+        "production": True,
+        "stimulus": False,
+        "hardware_host_interfaces": ("host_ttl", "host_rs232"),
+    },
 }
 # Backward-compatible aliases for callers importing the production defaults.
 PROJECT = ROOT / str(HARDWARE_PROFILES[DEFAULT_PROFILE]["project"])
@@ -447,7 +462,7 @@ def main(argv: list[str] | None = None) -> int:
     if not timing_pass:
         status = "FAIL"
     receipt = {
-        "schema": "prod2u-6400-td-receipt-v1" if profile_name==DEFAULT_PROFILE else "prod2u-mrdimm-td-receipt-v1",
+        "schema": "prod2u-6400-td-receipt-v1" if "6400" in profile_name else "prod2u-mrdimm-td-receipt-v1",
         "run_id": run_id,
         "status": status,
         "generated_at": datetime.now(timezone.utc).isoformat(),