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

Add J6 BMC replay UART packages

Codex 4 месяцев назад
Родитель
Сommit
736f07ecc7
22 измененных файлов с 1715 добавлено и 86 удалено
  1. 61 0
      constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc
  2. 61 0
      constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc
  3. 3 3
      schemas/real_bmc_j6_host_sensor_real_fan_ptc_debug921_v1_receipt.schema.json
  4. 60 0
      src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top.v
  5. 60 0
      src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top.v
  6. 15 0
      td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl
  7. 15 0
      td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl
  8. 17 0
      td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl
  9. 17 0
      td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl
  10. 31 0
      td/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.prj
  11. 31 0
      td/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.prj
  12. 14 0
      tests/test_project_structure.py
  13. 104 0
      tests/unit/test_bmc_replay_tool.py
  14. 29 1
      tests/unit/test_pid_harness.py
  15. 51 0
      tests/unit/test_pin_inventory.py
  16. 179 35
      tests/unit/test_remote_scripts.py
  17. 2 0
      tests/unit/test_uart_receipts.py
  18. 283 0
      tools/bmc_replay_uart.py
  19. 496 29
      tools/package_j6_host_sensor_real_fan_ptc_debug921.ps1
  20. 54 0
      tools/pid_harness.py
  21. 110 18
      tools/pin_inventory.py
  22. 22 0
      tools/uart_receipts.py

+ 61 - 0
constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc

@@ -0,0 +1,61 @@
+# uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921 constraints.
+# Pin profile: debug-photo-uart-bmc-replay. Derived from config/pin_inventory.fcb_fpga_mcu0611.json.
+# SRAM-only diagnostic constraints; no flash or cable programming command is present.
+# BMC input is a PC replay from a real BMC capture; no live BMC link is claimed.
+# Board: fcb_fpga_mcu0611
+set_pin_assignment { sys_clk } { LOCATION = J1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { sys_rst_n } { LOCATION = N6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[0] } { LOCATION = H16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[1] } { LOCATION = H15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[2] } { LOCATION = J16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[3] } { LOCATION = J15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[4] } { LOCATION = K16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[5] } { LOCATION = K15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[6] } { LOCATION = L16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[7] } { LOCATION = L15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { bmc_uart_rx } { LOCATION = R5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { bmc_uart_tx } { LOCATION = T4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { debug_uart_rx } { LOCATION = P10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { debug_uart_tx } { LOCATION = R10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[0] } { LOCATION = D2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[1] } { LOCATION = D3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[2] } { LOCATION = E6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[3] } { LOCATION = D6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[4] } { LOCATION = C1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[5] } { LOCATION = C2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[6] } { LOCATION = B3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[7] } { LOCATION = B13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[0] } { LOCATION = N10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[1] } { LOCATION = M11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[2] } { LOCATION = P12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[3] } { LOCATION = R11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[0] } { LOCATION = C4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[1] } { LOCATION = B5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[2] } { LOCATION = B1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[3] } { LOCATION = A14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_uart_rx } { LOCATION = P8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_uart_tx } { LOCATION = P7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[0] } { LOCATION = F16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[10] } { LOCATION = T2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[11] } { LOCATION = R3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[12] } { LOCATION = P16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[13] } { LOCATION = R16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[14] } { LOCATION = M16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[15] } { LOCATION = N16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[16] } { LOCATION = M14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[17] } { LOCATION = M15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[18] } { LOCATION = T9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[19] } { LOCATION = P9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[1] } { LOCATION = G16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[20] } { LOCATION = P15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[21] } { LOCATION = N14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[22] } { LOCATION = T13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[23] } { LOCATION = T12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[2] } { LOCATION = P5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[3] } { LOCATION = T8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[4] } { LOCATION = T6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[5] } { LOCATION = R7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[6] } { LOCATION = M1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[7] } { LOCATION = N1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[8] } { LOCATION = P1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[9] } { LOCATION = R1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 61 - 0
constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc

@@ -0,0 +1,61 @@
+# uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921 constraints.
+# Pin profile: formal-uart1-bmc-replay. Derived from config/pin_inventory.fcb_fpga_mcu0611.json.
+# SRAM-only diagnostic constraints; no flash or cable programming command is present.
+# BMC input is a PC replay from a real BMC capture through UART1; no live BMC link is claimed.
+# Board: fcb_fpga_mcu0611
+set_pin_assignment { sys_clk } { LOCATION = J1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { sys_rst_n } { LOCATION = N6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[0] } { LOCATION = H16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[1] } { LOCATION = H15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[2] } { LOCATION = J16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[3] } { LOCATION = J15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[4] } { LOCATION = K16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[5] } { LOCATION = K15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[6] } { LOCATION = L16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { led[7] } { LOCATION = L15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { bmc_uart_rx } { LOCATION = M9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { bmc_uart_tx } { LOCATION = L10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { debug_uart_rx } { LOCATION = P15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { debug_uart_tx } { LOCATION = N14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[0] } { LOCATION = D2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[1] } { LOCATION = D3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[2] } { LOCATION = E6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[3] } { LOCATION = D6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[4] } { LOCATION = C1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[5] } { LOCATION = C2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[6] } { LOCATION = B3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_fg_in[7] } { LOCATION = B13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[0] } { LOCATION = N10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[1] } { LOCATION = M11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[2] } { LOCATION = P12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_install_in[3] } { LOCATION = R11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[0] } { LOCATION = C4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[1] } { LOCATION = B5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[2] } { LOCATION = B1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { fan_pwm_out[3] } { LOCATION = A14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_uart_rx } { LOCATION = N11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { host_uart_tx } { LOCATION = M10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[0] } { LOCATION = F16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[10] } { LOCATION = T2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[11] } { LOCATION = R3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[12] } { LOCATION = P16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[13] } { LOCATION = R16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[14] } { LOCATION = M16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[15] } { LOCATION = N16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[16] } { LOCATION = P8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[17] } { LOCATION = P7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[18] } { LOCATION = T9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[19] } { LOCATION = P9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[1] } { LOCATION = G16; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[20] } { LOCATION = P10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[21] } { LOCATION = R10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[22] } { LOCATION = T13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[23] } { LOCATION = T12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[2] } { LOCATION = T4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[3] } { LOCATION = R5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[4] } { LOCATION = T6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[5] } { LOCATION = R7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[6] } { LOCATION = M1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[7] } { LOCATION = N1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[8] } { LOCATION = P1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { ptc_pwm_out[9] } { LOCATION = R1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 3 - 3
schemas/real_bmc_j6_host_sensor_real_fan_ptc_debug921_v1_receipt.schema.json

@@ -8,7 +8,7 @@
     "status": { "type": "string" },
     "counterparty": { "const": "real_bmc" },
     "diagnostic_scope": { "const": "host_sensor_real_fan_ptc_debug921" },
-    "pin_profile_name": { "enum": ["temp-uart-ptc-remap", "formal-uart"] },
+    "pin_profile_name": { "enum": ["temp-uart-ptc-remap", "formal-uart", "debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay"] },
     "pin_profile": { "$ref": "#/$defs/pin_profile" },
     "programming": {
       "type": "object",
@@ -162,7 +162,7 @@
           "required": ["status", "ptc_count", "fan_count", "fan_fg_count", "fan_install_count"],
           "properties": {
             "status": { "type": "string" },
-            "profile": { "enum": ["temp-uart-ptc-remap", "formal-uart"] },
+            "profile": { "enum": ["temp-uart-ptc-remap", "formal-uart", "debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay"] },
             "ptc_count": { "const": 24 },
             "fan_count": { "const": 4 },
             "fan_fg_count": { "const": 8 },
@@ -245,7 +245,7 @@
       "type": "object",
       "required": ["name", "bmc_tx_ball", "bmc_rx_ball", "host_tx_ball", "host_rx_ball", "debug_rx_ball", "debug_tx_ball"],
       "properties": {
-        "name": { "enum": ["temp-uart-ptc-remap", "formal-uart"] },
+        "name": { "enum": ["temp-uart-ptc-remap", "formal-uart", "debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay"] },
         "connector": { "type": "string" },
         "tx_ball": { "type": "string" },
         "rx_ball": { "type": "string" },

+ 60 - 0
src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top.v

@@ -0,0 +1,60 @@
+`timescale 1ns/1ps
+
+module uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top #(
+    parameter integer BMC_UART_CLKS_PER_BIT = 217,
+    parameter integer HOST_UART_CLKS_PER_BIT = 217,
+    parameter integer DEBUG_UART_CLKS_PER_BIT = 27,
+    parameter integer STARTUP_DELAY_TICKS = 250000,
+    parameter integer COMMAND_GAP_TICKS = 25000000,
+    parameter integer STATUS_PERIOD_TICKS = 25000000,
+    parameter integer HOST_TIMEOUT_TICKS = 125000000,
+    parameter integer PTC_PWM_PERIOD_TICKS = 2500000,
+    parameter integer FAN_PWM_PERIOD_TICKS = 1000,
+    parameter integer HEARTBEAT_TOGGLE_TICKS = 12500000,
+    parameter integer ACTIVITY_HOLD_TICKS = 2500000
+) (
+    input  wire        sys_clk,
+    input  wire        sys_rst_n,
+    input  wire        bmc_uart_rx,
+    output wire        bmc_uart_tx,
+    input  wire        debug_uart_rx,
+    output wire        debug_uart_tx,
+    input  wire        host_uart_rx,
+    output wire        host_uart_tx,
+    output wire [23:0] ptc_pwm_out,
+    output wire [3:0]  fan_pwm_out,
+    input  wire [7:0]  fan_fg_in,
+    input  wire [3:0]  fan_install_in,
+    output wire [7:0]  led
+);
+
+    uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top #(
+        .BMC_UART_CLKS_PER_BIT(BMC_UART_CLKS_PER_BIT),
+        .HOST_UART_CLKS_PER_BIT(HOST_UART_CLKS_PER_BIT),
+        .DEBUG_UART_CLKS_PER_BIT(DEBUG_UART_CLKS_PER_BIT),
+        .STARTUP_DELAY_TICKS(STARTUP_DELAY_TICKS),
+        .COMMAND_GAP_TICKS(COMMAND_GAP_TICKS),
+        .STATUS_PERIOD_TICKS(STATUS_PERIOD_TICKS),
+        .HOST_TIMEOUT_TICKS(HOST_TIMEOUT_TICKS),
+        .PTC_PWM_PERIOD_TICKS(PTC_PWM_PERIOD_TICKS),
+        .FAN_PWM_PERIOD_TICKS(FAN_PWM_PERIOD_TICKS),
+        .HEARTBEAT_TOGGLE_TICKS(HEARTBEAT_TOGGLE_TICKS),
+        .ACTIVITY_HOLD_TICKS(ACTIVITY_HOLD_TICKS),
+        .PIN_PROFILE(0)
+    ) u_core (
+        .sys_clk(sys_clk),
+        .sys_rst_n(sys_rst_n),
+        .bmc_uart_rx(bmc_uart_rx),
+        .bmc_uart_tx(bmc_uart_tx),
+        .debug_uart_rx(debug_uart_rx),
+        .debug_uart_tx(debug_uart_tx),
+        .host_uart_rx(host_uart_rx),
+        .host_uart_tx(host_uart_tx),
+        .ptc_pwm_out(ptc_pwm_out),
+        .fan_pwm_out(fan_pwm_out),
+        .fan_fg_in(fan_fg_in),
+        .fan_install_in(fan_install_in),
+        .led(led)
+    );
+
+endmodule

+ 60 - 0
src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top.v

@@ -0,0 +1,60 @@
+`timescale 1ns/1ps
+
+module uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top #(
+    parameter integer BMC_UART_CLKS_PER_BIT = 217,
+    parameter integer HOST_UART_CLKS_PER_BIT = 217,
+    parameter integer DEBUG_UART_CLKS_PER_BIT = 27,
+    parameter integer STARTUP_DELAY_TICKS = 250000,
+    parameter integer COMMAND_GAP_TICKS = 25000000,
+    parameter integer STATUS_PERIOD_TICKS = 25000000,
+    parameter integer HOST_TIMEOUT_TICKS = 125000000,
+    parameter integer PTC_PWM_PERIOD_TICKS = 2500000,
+    parameter integer FAN_PWM_PERIOD_TICKS = 1000,
+    parameter integer HEARTBEAT_TOGGLE_TICKS = 12500000,
+    parameter integer ACTIVITY_HOLD_TICKS = 2500000
+) (
+    input  wire        sys_clk,
+    input  wire        sys_rst_n,
+    input  wire        bmc_uart_rx,
+    output wire        bmc_uart_tx,
+    input  wire        debug_uart_rx,
+    output wire        debug_uart_tx,
+    input  wire        host_uart_rx,
+    output wire        host_uart_tx,
+    output wire [23:0] ptc_pwm_out,
+    output wire [3:0]  fan_pwm_out,
+    input  wire [7:0]  fan_fg_in,
+    input  wire [3:0]  fan_install_in,
+    output wire [7:0]  led
+);
+
+    uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top #(
+        .BMC_UART_CLKS_PER_BIT(BMC_UART_CLKS_PER_BIT),
+        .HOST_UART_CLKS_PER_BIT(HOST_UART_CLKS_PER_BIT),
+        .DEBUG_UART_CLKS_PER_BIT(DEBUG_UART_CLKS_PER_BIT),
+        .STARTUP_DELAY_TICKS(STARTUP_DELAY_TICKS),
+        .COMMAND_GAP_TICKS(COMMAND_GAP_TICKS),
+        .STATUS_PERIOD_TICKS(STATUS_PERIOD_TICKS),
+        .HOST_TIMEOUT_TICKS(HOST_TIMEOUT_TICKS),
+        .PTC_PWM_PERIOD_TICKS(PTC_PWM_PERIOD_TICKS),
+        .FAN_PWM_PERIOD_TICKS(FAN_PWM_PERIOD_TICKS),
+        .HEARTBEAT_TOGGLE_TICKS(HEARTBEAT_TOGGLE_TICKS),
+        .ACTIVITY_HOLD_TICKS(ACTIVITY_HOLD_TICKS),
+        .PIN_PROFILE(1)
+    ) u_core (
+        .sys_clk(sys_clk),
+        .sys_rst_n(sys_rst_n),
+        .bmc_uart_rx(bmc_uart_rx),
+        .bmc_uart_tx(bmc_uart_tx),
+        .debug_uart_rx(debug_uart_rx),
+        .debug_uart_tx(debug_uart_tx),
+        .host_uart_rx(host_uart_rx),
+        .host_uart_tx(host_uart_tx),
+        .ptc_pwm_out(ptc_pwm_out),
+        .fan_pwm_out(fan_pwm_out),
+        .fan_fg_in(fan_fg_in),
+        .fan_install_in(fan_install_in),
+        .led(led)
+    );
+
+endmodule

+ 15 - 0
td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl

@@ -0,0 +1,15 @@
+import_device ef2_4.db -package EF2L45BG256B
+import_db ../syn/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_gate.db
+read_adc {constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc}
+read_sdc {constraints/pid_study_01.sdc}
+place
+update_timing -mode manhattan
+report_area -io_info -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_phy.area
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_place.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_place.db
+route
+update_timing
+report_area -io_info -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_phy.area
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_pr.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_pr.db
+bitgen -bit uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.bit

+ 15 - 0
td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl

@@ -0,0 +1,15 @@
+import_device ef2_4.db -package EF2L45BG256B
+import_db ../syn/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_gate.db
+read_adc {constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc}
+read_sdc {constraints/pid_study_01.sdc}
+place
+update_timing -mode manhattan
+report_area -io_info -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_phy.area
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_place.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_place.db
+route
+update_timing
+report_area -io_info -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_phy.area
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_pr.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_pr.db
+bitgen -bit uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.bit

+ 17 - 0
td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl

@@ -0,0 +1,17 @@
+import_device ef2_4.db -package EF2L45BG256B
+analyze -file {src/rtl/uart_rx_8n1.v}
+analyze -file {src/rtl/uart_tx_8n1.v}
+analyze -file {src/rtl/bmc_uart_raw48_poll_lite.v}
+analyze -file {src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top.v}
+analyze -file {src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top.v}
+elaborate -top {uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top}
+read_adc {constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc}
+read_sdc {constraints/pid_study_01.sdc}
+optimize_rtl
+report_area -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_rtl.area
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_rtl.db
+optimize_gate uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_gate.area
+legalize_phy_inst
+update_timing
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_gate.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_gate.db

+ 17 - 0
td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl

@@ -0,0 +1,17 @@
+import_device ef2_4.db -package EF2L45BG256B
+analyze -file {src/rtl/uart_rx_8n1.v}
+analyze -file {src/rtl/uart_tx_8n1.v}
+analyze -file {src/rtl/bmc_uart_raw48_poll_lite.v}
+analyze -file {src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top.v}
+analyze -file {src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top.v}
+elaborate -top {uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top}
+read_adc {constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc}
+read_sdc {constraints/pid_study_01.sdc}
+optimize_rtl
+report_area -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_rtl.area
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_rtl.db
+optimize_gate uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_gate.area
+legalize_phy_inst
+update_timing
+report_timing_summary -file uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_gate.timing
+export_db uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_gate.db

+ 31 - 0
td/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.prj

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Project Version="3" Minor="2" RunTime="2026-07-03T00:00:00">
+    <Project_Created_Time></Project_Created_Time>
+    <TD_Version>6.2.2.198412</TD_Version>
+    <Name>uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921</Name>
+    <HardWare>
+        <Family>EF2</Family>
+        <Device>EF2L45BG256B</Device>
+        <Speed></Speed>
+    </HardWare>
+    <Source_Files>
+        <Verilog>
+            <File Path="../src/rtl/uart_rx_8n1.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="1"/></FileInfo></File>
+            <File Path="../src/rtl/uart_tx_8n1.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="2"/></FileInfo></File>
+            <File Path="../src/rtl/bmc_uart_raw48_poll_lite.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="3"/></FileInfo></File>
+            <File Path="../src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="4"/></FileInfo></File>
+            <File Path="../src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="5"/></FileInfo></File>
+        </Verilog>
+        <ADC_FILE>
+            <File Path="../constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="1"/></FileInfo></File>
+        </ADC_FILE>
+        <SDC_FILE>
+            <File Path="../constraints/pid_study_01.sdc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="2"/></FileInfo></File>
+        </SDC_FILE>
+    </Source_Files>
+    <TOP_MODULE>
+        <LABEL></LABEL>
+        <MODULE>uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top</MODULE>
+        <CREATEINDEX>user</CREATEINDEX>
+    </TOP_MODULE>
+</Project>

+ 31 - 0
td/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.prj

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Project Version="3" Minor="2" RunTime="2026-07-03T00:00:00">
+    <Project_Created_Time></Project_Created_Time>
+    <TD_Version>6.2.2.198412</TD_Version>
+    <Name>uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921</Name>
+    <HardWare>
+        <Family>EF2</Family>
+        <Device>EF2L45BG256B</Device>
+        <Speed></Speed>
+    </HardWare>
+    <Source_Files>
+        <Verilog>
+            <File Path="../src/rtl/uart_rx_8n1.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="1"/></FileInfo></File>
+            <File Path="../src/rtl/uart_tx_8n1.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="2"/></FileInfo></File>
+            <File Path="../src/rtl/bmc_uart_raw48_poll_lite.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="3"/></FileInfo></File>
+            <File Path="../src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="4"/></FileInfo></File>
+            <File Path="../src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="5"/></FileInfo></File>
+        </Verilog>
+        <ADC_FILE>
+            <File Path="../constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="1"/></FileInfo></File>
+        </ADC_FILE>
+        <SDC_FILE>
+            <File Path="../constraints/pid_study_01.sdc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="2"/></FileInfo></File>
+        </SDC_FILE>
+    </Source_Files>
+    <TOP_MODULE>
+        <LABEL></LABEL>
+        <MODULE>uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top</MODULE>
+        <CREATEINDEX>user</CREATEINDEX>
+    </TOP_MODULE>
+</Project>

+ 14 - 0
tests/test_project_structure.py

@@ -60,16 +60,27 @@ class ProjectStructureTests(unittest.TestCase):
             "src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top.v",
             "src/top/uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921_top.v",
             "src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921_top.v",
+            "src/top/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top.v",
+            "src/top/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top.v",
             "tests/sim/uart_rs232_j6_host_sensor_real_fan_ptc_debug921_top_tb.v",
             "constraints/uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921.adc",
             "constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921.adc",
+            "constraints/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.adc",
+            "constraints/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.adc",
             "td/uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921.prj",
             "td/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921.prj",
+            "td/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.prj",
+            "td/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.prj",
             "td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921.tcl",
             "td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921.tcl",
+            "td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl",
+            "td/syn/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl",
             "td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921.tcl",
             "td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921.tcl",
+            "td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl",
+            "td/phy/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl",
             "tools/pid_harness.py",
+            "tools/bmc_replay_uart.py",
             "tools/uart_receipts.py",
             "tools/pin_inventory.py",
             "tools/package_j6_host_sensor_real_fan_ptc_debug921.ps1",
@@ -103,6 +114,7 @@ class ProjectStructureTests(unittest.TestCase):
                 if rel in {
                     "tools/uart_receipts.py",
                     "tools/pid_harness.py",
+            "tools/bmc_replay_uart.py",
                     "docs/verification-gates-v2.zh-CN.md",
                     "schemas/real_bmc_j6_windows_gate_v2_receipt.schema.json",
                 }:
@@ -171,6 +183,8 @@ class ProjectStructureTests(unittest.TestCase):
         profiles = {
             "uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921": 0,
             "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921": 1,
+            "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921": 0,
+            "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921": 1,
         }
         for stem, pin_profile in profiles.items():
             with self.subTest(stem=stem):

+ 104 - 0
tests/unit/test_bmc_replay_tool.py

@@ -0,0 +1,104 @@
+#!/usr/bin/env python3
+"""Tests for the CPLD BMC poll/response replay helper."""
+
+from __future__ import annotations
+
+import json
+import sys
+import tempfile
+import unittest
+from pathlib import Path
+
+
+sys.dont_write_bytecode = True
+ROOT = Path(__file__).resolve().parents[2]
+sys.path.insert(0, str(ROOT / "tools"))
+
+from bmc_replay_uart import (  # noqa: E402
+    POLL_COMMAND_TEXT,
+    FakeSerialEndpoint,
+    build_replay_payload,
+    normalize_bmc_capture_text,
+    run_poll_response_session,
+)
+
+
+VALID_BMC_TEXT = """root@bmc:~# ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03
+28 00 29 00 2a 00 2b 00 2c 00 2d 00 2e 00 2f 00
+30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00
+38 00 39 00 3a 00 3b 00 3c 00 3d 00 3e 00 3f 00
+"""
+
+
+class BmcReplayToolTests(unittest.TestCase):
+    def test_normalize_capture_writes_cpld_safe_48_byte_ascii_payload(self) -> None:
+        payload = normalize_bmc_capture_text(VALID_BMC_TEXT, seq=7)
+
+        self.assertEqual(payload["schema"], "j6-bmc-replay-payload-v1")
+        self.assertEqual(payload["status"], "pass")
+        self.assertEqual(payload["source"], "real_bmc_capture")
+        self.assertEqual(payload["replay_mode"], "poll_response")
+        self.assertEqual(payload["byte_count"], 48)
+        self.assertEqual(payload["valid_count"], 24)
+        self.assertEqual(payload["missing_count"], 0)
+        self.assertEqual(payload["reply_text"].split()[0:4], ["28", "00", "29", "00"])
+        self.assertTrue(payload["reply_text"].endswith("\r\n"))
+        self.assertEqual(len(payload["reply_sha256"]), 64)
+        self.assertEqual(payload["temperatures"][0]["temperature_c"], 40)
+
+    def test_normalize_capture_rejects_bad_fraction(self) -> None:
+        bad_text = VALID_BMC_TEXT.replace("28 00", "28 7f", 1)
+
+        with self.assertRaises(ValueError) as ctx:
+            normalize_bmc_capture_text(bad_text, seq=1)
+
+        self.assertIn("fraction", str(ctx.exception).lower())
+
+    def test_poll_response_session_waits_for_cpld_poll_before_replying(self) -> None:
+        payload = build_replay_payload(VALID_BMC_TEXT, seq=1)
+        endpoint = FakeSerialEndpoint(initial_rx=b"\r\r" + POLL_COMMAND_TEXT.encode("ascii"))
+
+        receipt = run_poll_response_session(endpoint, payload, iterations=1, timeout_sec=0.1)
+
+        self.assertEqual(receipt["status"], "pass")
+        self.assertEqual(receipt["matched_poll_count"], 1)
+        self.assertEqual(receipt["reply_count"], 1)
+        self.assertEqual(endpoint.written.decode("ascii"), payload["reply_text"])
+        self.assertFalse(receipt["unsolicited_reply_attempted"])
+
+    def test_poll_response_session_does_not_reply_to_wrong_command(self) -> None:
+        payload = build_replay_payload(VALID_BMC_TEXT, seq=1)
+        endpoint = FakeSerialEndpoint(initial_rx=b"ipmitool raw 0x00 0x01\n")
+
+        receipt = run_poll_response_session(endpoint, payload, iterations=1, timeout_sec=0.01)
+
+        self.assertEqual(receipt["status"], "blocked_waiting_for_cpld_poll")
+        self.assertEqual(receipt["matched_poll_count"], 0)
+        self.assertEqual(endpoint.written, b"")
+
+    def test_cli_normalize_capture_outputs_json_and_payload_file(self) -> None:
+        with tempfile.TemporaryDirectory() as tmp:
+            capture = Path(tmp) / "bmc.txt"
+            payload_path = Path(tmp) / "payload.json"
+            capture.write_text(VALID_BMC_TEXT, encoding="utf-8")
+            from bmc_replay_uart import main
+
+            exit_code = main(
+                [
+                    "normalize-capture",
+                    "--input",
+                    str(capture),
+                    "--payload",
+                    str(payload_path),
+                    "--json",
+                ]
+            )
+
+            self.assertEqual(exit_code, 0)
+            payload = json.loads(payload_path.read_text(encoding="utf-8"))
+            self.assertEqual(payload["status"], "pass")
+            self.assertEqual(payload["byte_count"], 48)
+
+
+if __name__ == "__main__":
+    unittest.main()

+ 29 - 1
tests/unit/test_pid_harness.py

@@ -268,6 +268,8 @@ Clock Summary
         for top in [
             "uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921",
             "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921",
+            "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921",
+            "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921",
         ]:
             with self.subTest(top=top):
                 payload = td_build_payload(run=False, top=top)
@@ -279,7 +281,12 @@ Clock Summary
     def test_two_latest_user_td_profiles_are_registered(self) -> None:
         temp_top = "uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921"
         formal_top = "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921"
-        self.assertEqual(set(TD_TOP_PROFILES), {"system_contract", "debug_max", temp_top, formal_top})
+        debug_replay_top = "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921"
+        formal_replay_top = "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921"
+        self.assertEqual(
+            set(TD_TOP_PROFILES),
+            {"system_contract", "debug_max", temp_top, formal_top, debug_replay_top, formal_replay_top},
+        )
 
         profile = TD_TOP_PROFILES[temp_top]
         self.assertEqual(profile["mode"], "implementation")
@@ -308,10 +315,31 @@ Clock Summary
         self.assertEqual(formal["debug_uart_tx_ball"], "N14")
         self.assertIn("reserved UART1/2", formal["authority_boundary"])
 
+        debug_replay = TD_TOP_PROFILES[debug_replay_top]
+        self.assertEqual(debug_replay["pin_profile"], "debug-photo-uart-bmc-replay")
+        self.assertEqual(debug_replay["bmc_source"], "pc_replay_from_real_bmc_capture")
+        self.assertEqual(debug_replay["tx_ball"], "T4")
+        self.assertEqual(debug_replay["rx_ball"], "R5")
+        self.assertIn("photo-visible", debug_replay["authority_boundary"])
+
+        formal_replay = TD_TOP_PROFILES[formal_replay_top]
+        self.assertEqual(formal_replay["pin_profile"], "formal-uart1-bmc-replay")
+        self.assertEqual(formal_replay["bmc_source"], "pc_replay_from_real_bmc_capture")
+        self.assertEqual(formal_replay["tx_ball"], "L10")
+        self.assertEqual(formal_replay["rx_ball"], "M9")
+        self.assertEqual(formal_replay["host_uart_tx_ball"], "M10")
+        self.assertEqual(formal_replay["host_uart_rx_ball"], "N11")
+        self.assertEqual(formal_replay["debug_uart_rx_ball"], "P15")
+        self.assertEqual(formal_replay["debug_uart_tx_ball"], "N14")
+        self.assertIn("SPARE_GPIO44/45", formal_replay["authority_boundary"])
+        self.assertIn("UART1/2", formal_replay["authority_boundary"])
+
     def test_latest_td_project_and_scripts_are_build_only(self) -> None:
         stems = [
             "uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921",
             "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921",
+            "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921",
+            "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921",
         ]
         for stem in stems:
             with self.subTest(stem=stem):

+ 51 - 0
tests/unit/test_pin_inventory.py

@@ -163,6 +163,57 @@ class PinInventoryTests(unittest.TestCase):
         self.assertEqual(payload["ptc_substitutions"], {})
         self.assertEqual(payload["conflict_check"]["status"], "pass")
 
+    def test_debug_photo_uart_bmc_replay_profile_keeps_photo_visible_serials_and_marks_bmc_as_pc_replay(self) -> None:
+        inventory = load_pin_inventory(PRODUCT_INVENTORY)
+        payload = diagnostic_profile_assignments(inventory, "debug-photo-uart-bmc-replay")
+
+        self.assertEqual(payload["status"], "pass")
+        self.assertEqual(payload["profile"], "debug-photo-uart-bmc-replay")
+        self.assertEqual(payload["bmc_source"], "pc_replay_from_real_bmc_capture")
+        self.assertEqual(payload["live_bmc_link_status"], "not_used")
+        self.assertEqual(payload["uart_assignments"]["bmc_replay_uart_tx"]["fpga_ball"], "T4")
+        self.assertEqual(payload["uart_assignments"]["bmc_replay_uart_rx"]["fpga_ball"], "R5")
+        self.assertEqual(payload["uart_assignments"]["host_uart_tx"]["fpga_ball"], "P7")
+        self.assertEqual(payload["uart_assignments"]["host_uart_rx"]["fpga_ball"], "P8")
+        self.assertEqual(payload["uart_assignments"]["debug_uart_rx"]["fpga_ball"], "P10")
+        self.assertEqual(payload["uart_assignments"]["debug_uart_tx"]["fpga_ball"], "R10")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[2]"], "P5")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[3]"], "T8")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[16]"], "M14")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[17]"], "M15")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[20]"], "P15")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[21]"], "N14")
+        self.assertEqual(payload["ptc_substitutions"]["PTC03"]["reason"], "photo_visible_uart_overlap_remap")
+        self.assertFalse(payload["uses_reserved_future_uart"])
+        self.assertEqual(payload["hardware_access_status"], "photo_visible_header")
+        self.assertEqual(payload["conflict_check"]["status"], "pass")
+
+    def test_formal_uart1_bmc_replay_profile_uses_uart1_uart2_and_keeps_real_ptc(self) -> None:
+        inventory = load_pin_inventory(PRODUCT_INVENTORY)
+        payload = diagnostic_profile_assignments(inventory, "formal-uart1-bmc-replay")
+
+        self.assertEqual(payload["status"], "pass")
+        self.assertEqual(payload["profile"], "formal-uart1-bmc-replay")
+        self.assertEqual(payload["bmc_source"], "pc_replay_from_real_bmc_capture")
+        self.assertEqual(payload["live_bmc_link_status"], "not_used")
+        self.assertEqual(payload["hardware_access_status"], "blocked_waiting_for_uart1_uart2_access")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[2]"], "T4")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[3]"], "R5")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[16]"], "P8")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[17]"], "P7")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[20]"], "P10")
+        self.assertEqual(payload["assignments"]["ptc_pwm_out[21]"], "R10")
+        self.assertEqual(payload["uart_assignments"]["bmc_replay_uart_tx"]["fpga_ball"], "L10")
+        self.assertEqual(payload["uart_assignments"]["bmc_replay_uart_rx"]["fpga_ball"], "M9")
+        self.assertEqual(payload["uart_assignments"]["host_uart_tx"]["fpga_ball"], "M10")
+        self.assertEqual(payload["uart_assignments"]["host_uart_rx"]["fpga_ball"], "N11")
+        self.assertEqual(payload["uart_assignments"]["debug_uart_rx"]["fpga_ball"], "P15")
+        self.assertEqual(payload["uart_assignments"]["debug_uart_tx"]["fpga_ball"], "N14")
+        self.assertIn("SPARE_GPIO44/45", payload["authority_boundary"])
+        self.assertTrue(payload["uses_reserved_future_uart"])
+        self.assertEqual(payload["ptc_substitutions"], {})
+        self.assertEqual(payload["conflict_check"]["status"], "pass")
+
 
 if __name__ == "__main__":
     unittest.main()

+ 179 - 35
tests/unit/test_remote_scripts.py

@@ -599,25 +599,32 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
 
         for marker in [
             "START-HERE.zh-CN.md",
-            "tools\\remote\\collect-j6-host-sensor-real-fan-ptc.ps1",
-            "bitstreams",
-            "td-receipts",
-            "commands",
-            "pin_inventory.fcb_fpga_mcu0611.json",
-            "sha256-inventory.json",
+            "tools\\remote\\collect-j6-host-sensor-real-fan-ptc.ps1",
+            "tools\\bmc_replay_uart.py",
+            "bitstreams",
+            "td-receipts",
+            "commands",
+            "bmc-replay",
+            "pin_inventory.fcb_fpga_mcu0611.json",
+            "sha256-inventory.json",
             "Compress-Archive",
             ".zip.sha256.txt",
-            "j6tmp-v2-tailfix",
+            "j6-bmc-replay",
             "j6tmp.bit",
             "collect.ps1",
+            "capture-bmc.ps1",
+            "replay-bmc.ps1",
             "td.json",
-            "temp-uart-ptc-remap",
+            "debug-photo-uart-bmc-replay",
+            "formal-uart1-bmc-replay",
+            "pc_replay_from_real_bmc_capture",
             "startup-preflight.json",
-            "READY profile=temp-uart-ptc-remap",
             "collector first, then PROGRAM_SRAM",
             "tail drain",
             "ForceOverwrite",
-            "SET PTC 01 10",
+            "FormalBlocked",
+            "FORMAL-BLOCKED.zh-CN.md",
+            "SET PTC 01 10",
             "SET PTC 24 20",
             "SET FAN 01 40",
             "SET FAN 04 30",
@@ -625,13 +632,11 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
         ]:
             self.assertIn(marker, script)
         self.assertNotIn("Set-ExecutionPolicy", script)
-        self.assertNotIn("-AssumeManualSramProgrammed $true", script)
-        for marker in [
-            "formal-uart",
-            "j6-host-sensor-real-fan-ptc-formal-uart-debug921-v1",
+        self.assertNotIn("-AssumeManualSramProgrammed $true", script)
+        for marker in [
             "j6-host-sensor-real-fan-ptc-temp-uart-ptc-remap-debug921-v2-epochfix-psarrayfix-tailfix",
             "debug115",
-            "swapped",
+            "swapped",
             "-ManualSramAttestation",
             "$att.status",
             "blocked_edit_required",
@@ -639,15 +644,14 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
             r"-Bitstream .\bitstreams\uart_rs232_j6_host_sensor_real_fan_ptc_debug921_primary.bit",
             "SET PTC 00",
             "SET FAN 00",
-            "SET FAN 05",
-            "SET FAN 06",
-            "pip install",
-            "pyserial",
-            "python",
-        ]:
-            self.assertNotIn(marker.lower(), script.lower())
-
-    def test_j6_host_sensor_real_fan_ptc_package_output_contains_temp_profile_artifacts(self) -> None:
+            "SET FAN 05",
+            "SET FAN 06",
+            "pip install",
+            "pyserial",
+        ]:
+            self.assertNotIn(marker.lower(), script.lower())
+
+    def test_j6_host_sensor_real_fan_ptc_package_output_contains_bmc_replay_profile_artifacts(self) -> None:
         powershell = shutil.which("powershell")
         if powershell is None:
             self.skipTest("PowerShell is not available")
@@ -667,8 +671,29 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                 ),
                 encoding="utf-8",
             )
-            for profile, package_name in [
-                ("temp-uart-ptc-remap", "j6tmp-v2-tailfix-test"),
+            for profile, package_name, expected in [
+                (
+                    "debug-photo-uart-bmc-replay",
+                    "j6-bmc-replay-debug-test",
+                    {
+                        "host_ports": "-HostPort COM8 -DebugPort COM7 -BmcReplayPort COM9",
+                        "bmc_tx": "T4",
+                        "bmc_rx": "R5",
+                        "hardware_access_status": "photo_visible_header",
+                        "ptc_note": "PTC03/PTC04/PTC17/PTC18/PTC21/PTC22",
+                    },
+                ),
+                (
+                    "formal-uart1-bmc-replay",
+                    "j6-bmc-replay-formal-test",
+                    {
+                        "host_ports": "-HostPort COM8 -DebugPort COM7 -BmcReplayPort COM9",
+                        "bmc_tx": "L10",
+                        "bmc_rx": "M9",
+                        "hardware_access_status": "blocked_waiting_for_uart1_uart2_access",
+                        "ptc_note": "HEAT/PTC/FAN",
+                    },
+                ),
             ]:
                 with self.subTest(profile=profile):
                     result = subprocess.run(
@@ -708,6 +733,10 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                     self.assertTrue(short_collect.is_file())
                     self.assertTrue(short_td.is_file())
                     self.assertTrue((stage / "collector" / "collect-j6-host-sensor-real-fan-ptc.ps1").is_file())
+                    self.assertTrue((stage / "bmc-replay" / "bmc_replay_uart.py").is_file())
+                    self.assertTrue((stage / "capture-bmc.ps1").is_file())
+                    self.assertTrue((stage / "replay-bmc.ps1").is_file())
+                    self.assertTrue((stage / "bmc-replay-payload.example.json").is_file())
                     self.assertTrue((stage / "commands" / "collect-template.ps1").is_file())
                     self.assertTrue((stage / "bitstreams" / bitstream.name).is_file())
                     self.assertTrue((stage / "td-receipts" / td_receipt.name).is_file())
@@ -718,12 +747,28 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                     self.assertTrue((stage / "schemas" / "real_bmc_j6_host_sensor_real_fan_ptc_debug921_v1_receipt.schema.json").is_file())
                     self.assertFalse((stage / "blocked").exists())
                     self.assertTrue((Path(tmp) / f"{package_name}.zip").is_file())
-                    self.assertTrue((Path(tmp) / f"{package_name}.zip.sha256.txt").is_file())
-                    start_here = (stage / "START-HERE.zh-CN.md").read_text(encoding="utf-8-sig")
-                    self.assertIn("PROGRAM_SRAM", start_here)
-                    self.assertIn("先启动 collector", start_here)
+                    self.assertTrue((Path(tmp) / f"{package_name}.zip.sha256.txt").is_file())
+                    start_here = (stage / "START-HERE.zh-CN.md").read_text(encoding="utf-8-sig")
+                    self.assertIn("PROGRAM_SRAM", start_here)
+                    self.assertIn("先准备并启动 BMC replay", start_here)
+                    self.assertIn("再启动 collector", start_here)
                     self.assertIn("collector first, then PROGRAM_SRAM", start_here)
                     self.assertIn(f"-Profile {profile}", start_here)
+                    self.assertIn(expected["host_ports"], start_here)
+                    self.assertIn("pc_replay_from_real_bmc_capture", start_here)
+                    self.assertIn("collector_protocol_profile=temp-uart-ptc-remap", start_here)
+                    self.assertIn(expected["bmc_tx"], start_here)
+                    self.assertIn(expected["bmc_rx"], start_here)
+                    self.assertIn("capture-bmc.ps1", start_here)
+                    self.assertIn("replay-bmc.ps1", start_here)
+                    self.assertLess(start_here.index("replay-bmc.ps1"), start_here.index("collect.ps1"))
+                    self.assertLess(start_here.index("collect.ps1"), start_here.index("PROGRAM_SRAM"))
+                    self.assertIn("bmc-replay-payload.example.json", start_here)
+                    self.assertIn("Python", start_here)
+                    self.assertIn("does not install Python/pip/driver", start_here)
+                    self.assertIn(expected["ptc_note"], start_here)
+                    if profile == "formal-uart1-bmc-replay":
+                        self.assertNotIn("PTC03/PTC04/PTC17/PTC18/PTC21/PTC22 使用临时", start_here)
                     self.assertIn(".\\j6tmp.bit", start_here)
                     self.assertIn(".\\td.json", start_here)
                     self.assertIn("-File .\\collect.ps1", start_here)
@@ -766,7 +811,18 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                     manifest = json.loads((stage / "manifest.json").read_text(encoding="utf-8-sig"))
                     self.assertEqual(manifest["status"], "pass")
                     self.assertEqual(manifest["pin_profile"], profile)
-                    self.assertIn("j6tmp-v2-tailfix", manifest["package_name"])
+                    self.assertIn("j6-bmc-replay", manifest["package_name"])
+                    self.assertEqual(manifest["collector"]["user_profile_argument"], profile)
+                    self.assertEqual(manifest["collector"]["collector_protocol_profile"], "temp-uart-ptc-remap")
+                    self.assertEqual(manifest["collector"]["ready_profile_string"], "temp-uart-ptc-remap")
+                    self.assertEqual(manifest["bmc_source"], "pc_replay_from_real_bmc_capture")
+                    self.assertEqual(manifest["live_bmc_link_status"], "not_used")
+                    self.assertIn("Python", manifest["remote_dependencies"])
+                    self.assertIn("no pip setup", manifest["remote_dependencies"])
+                    self.assertIn("no driver", manifest["remote_dependencies"])
+                    self.assertEqual(manifest["pin_map"]["hardware_access_status"], expected["hardware_access_status"])
+                    self.assertEqual(manifest["pin_map"]["uart_assignments"]["bmc_replay_uart_tx"]["fpga_ball"], expected["bmc_tx"])
+                    self.assertEqual(manifest["pin_map"]["uart_assignments"]["bmc_replay_uart_rx"]["fpga_ball"], expected["bmc_rx"])
                     self.assertEqual(manifest["programming_mode"], "PROGRAM_SRAM")
                     self.assertEqual(manifest["bitstream"]["path"], "j6tmp.bit")
                     self.assertEqual(manifest["td_receipt"]["path"], "td.json")
@@ -774,6 +830,7 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                     self.assertEqual(manifest["short_path_aliases"]["td_receipt"]["source"], f"td-receipts/{td_receipt.name}")
                     self.assertIn("host_control_commands", manifest)
                     self.assertIn("pin_map", manifest)
+                    self.assertIn("bmc_replay", manifest)
                     self.assertIn("tail_drain", manifest)
                     self.assertNotIn("pin_conflicts", manifest)
 
@@ -786,10 +843,97 @@ if ($events[2].fields.cmd -ne "FANCH") { throw "ack cmd was $($events[2].fields.
                     self.assertIn("collect.ps1", inventory_paths)
                     self.assertIn("td.json", inventory_paths)
                     self.assertIn("collector/collect-j6-host-sensor-real-fan-ptc.ps1", inventory_paths)
-                    self.assertIn("commands/collect-template.ps1", inventory_paths)
-                    self.assertNotIn("sha256-inventory.json", inventory_paths)
-
-    def test_j6_host_sensor_real_fan_ptc_runbook_is_chinese_copy_paste_ready_with_english_paths(self) -> None:
+                    self.assertIn("bmc-replay/bmc_replay_uart.py", inventory_paths)
+                    self.assertIn("capture-bmc.ps1", inventory_paths)
+                    self.assertIn("replay-bmc.ps1", inventory_paths)
+                    self.assertIn("bmc-replay-payload.example.json", inventory_paths)
+                    self.assertIn("commands/collect-template.ps1", inventory_paths)
+                    self.assertNotIn("sha256-inventory.json", inventory_paths)
+
+    def test_j6_host_sensor_real_fan_ptc_package_script_creates_formal_blocked_package_without_bitstream(self) -> None:
+        powershell = shutil.which("powershell")
+        if powershell is None:
+            self.skipTest("PowerShell is not available")
+
+        with tempfile.TemporaryDirectory() as tmp:
+            td_receipt = Path(tmp) / "td-formal-fail.json"
+            td_receipt.write_text(
+                json.dumps(
+                    {
+                        "schema": "td-build-receipt-v1",
+                        "status": "fail",
+                        "top": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921",
+                        "pin_profile": "formal-uart1-bmc-replay",
+                        "phy": {"log_has_error": True},
+                        "bitstream": None,
+                    }
+                ),
+                encoding="utf-8",
+            )
+
+            result = subprocess.run(
+                [
+                    powershell,
+                    "-NoProfile",
+                    "-ExecutionPolicy",
+                    "Bypass",
+                    "-File",
+                    str(ROOT / "tools" / "package_j6_host_sensor_real_fan_ptc_debug921.ps1"),
+                    "-OutputDir",
+                    tmp,
+                    "-PackageName",
+                    "j6-bmc-replay-formal-blocked-test",
+                    "-Profile",
+                    "formal-uart1-bmc-replay",
+                    "-TdReceipt",
+                    str(td_receipt),
+                    "-FormalBlocked",
+                ],
+                cwd=ROOT,
+                capture_output=True,
+                check=False,
+            )
+
+            output = (result.stderr or b"").decode("utf-8", errors="replace") + (
+                result.stdout or b""
+            ).decode("utf-8", errors="replace")
+            self.assertEqual(result.returncode, 0, output)
+            stage = Path(tmp) / "j6-bmc-replay-formal-blocked-test"
+            self.assertTrue(stage.is_dir())
+            self.assertFalse((stage / "j6tmp.bit").exists())
+            self.assertFalse((stage / "collect.ps1").exists())
+            self.assertTrue((stage / "FORMAL-BLOCKED.zh-CN.md").is_file())
+            self.assertTrue((stage / "START-HERE.zh-CN.md").is_file())
+            self.assertTrue((stage / "td.json").is_file())
+            self.assertTrue((Path(tmp) / "j6-bmc-replay-formal-blocked-test.zip").is_file())
+
+            start_here = (stage / "START-HERE.zh-CN.md").read_text(encoding="utf-8-sig")
+            self.assertIn("blocked_td_mslice_over_limit", start_here)
+            self.assertIn("1137", start_here)
+            self.assertIn("1131", start_here)
+            self.assertIn("1120", start_here)
+            self.assertIn("不能刷机", start_here)
+            self.assertNotIn("PROGRAM_SRAM", start_here)
+            self.assertNotIn("j6tmp.bit", start_here)
+
+            manifest = json.loads((stage / "manifest.json").read_text(encoding="utf-8-sig"))
+            self.assertEqual(manifest["status"], "blocked_td_mslice_over_limit")
+            self.assertEqual(manifest["pin_profile"], "formal-uart1-bmc-replay")
+            self.assertEqual(manifest["bitstream"], None)
+            self.assertEqual(manifest["real_fan_ptc_hardware_status"], "not_run")
+            self.assertEqual(manifest["bmc_source"], "pc_replay_from_real_bmc_capture")
+            self.assertEqual(manifest["blocked_reason"]["latest_attempt_mslices"], 1137)
+            self.assertEqual(manifest["blocked_reason"]["best_observed_mslices"], 1131)
+            self.assertEqual(manifest["pin_map"]["uart_assignments"]["debug_uart_tx"]["fpga_ball"], "N14")
+            self.assertEqual(manifest["pin_map"]["uart_assignments"]["debug_uart_rx"]["fpga_ball"], "P15")
+
+            inventory = json.loads((stage / "sha256-inventory.json").read_text(encoding="utf-8-sig"))
+            inventory_paths = {item["path"] for item in inventory["inventory"]}
+            self.assertIn("FORMAL-BLOCKED.zh-CN.md", inventory_paths)
+            self.assertIn("td.json", inventory_paths)
+            self.assertNotIn("j6tmp.bit", inventory_paths)
+
+    def test_j6_host_sensor_real_fan_ptc_runbook_is_chinese_copy_paste_ready_with_english_paths(self) -> None:
         runbook = (ROOT / "docs" / "j6-host-sensor-real-fan-ptc-debug921-runbook.zh-CN.md").read_text(
             encoding="utf-8"
         )

+ 2 - 0
tests/unit/test_uart_receipts.py

@@ -17,6 +17,8 @@ ROOT = Path(__file__).resolve().parents[2]
 sys.path.insert(0, str(ROOT / "tools"))
 
 from uart_receipts import (  # noqa: E402
+    REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_PIN_PROFILES,
+    REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_TOP_MODULES_BY_PIN_PROFILE,
     _host_sensor_row_fields,
     _parse_host_sensor_report_text,
     _parse_j6raw_frames,

+ 283 - 0
tools/bmc_replay_uart.py

@@ -0,0 +1,283 @@
+#!/usr/bin/env python3
+"""Normalize and replay J6 BMC UART poll responses.
+
+The helper is dependency-free. It normalizes loose real-BMC serial text into
+the 48-byte DIMM payload expected by the CPLD poller, and the replay routine
+only writes a reply after the CPLD poll text has been observed.
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import re
+import time
+from dataclasses import dataclass
+from datetime import datetime, timezone
+from pathlib import Path
+from typing import Any, Protocol
+
+
+POLL_COMMAND_TEXT = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03\n"
+POLL_COMMAND_BYTES = [0x36, 0x6C, 0xDF, 0xDD, 0x00, 0x03]
+EXPECTED_DIMM_COUNT = 24
+EXPECTED_PAYLOAD_BYTES = EXPECTED_DIMM_COUNT * 2
+
+
+class ReplayEndpoint(Protocol):
+    def read(self, size: int = 1) -> bytes: ...
+
+    def write(self, data: bytes) -> int: ...
+
+
+@dataclass
+class FakeSerialEndpoint:
+    initial_rx: bytes = b""
+
+    def __post_init__(self) -> None:
+        self._rx = bytearray(self.initial_rx)
+        self.written = b""
+
+    def read(self, size: int = 1) -> bytes:
+        if not self._rx:
+            return b""
+        count = min(size, len(self._rx))
+        chunk = bytes(self._rx[:count])
+        del self._rx[:count]
+        return chunk
+
+    def write(self, data: bytes) -> int:
+        self.written += data
+        return len(data)
+
+
+def utc_now() -> str:
+    return datetime.now(timezone.utc).isoformat(timespec="seconds").replace("+00:00", "Z")
+
+
+def _extract_hex_bytes(text: str) -> list[int]:
+    values: list[int] = []
+    for match in re.finditer(r"(?<![0-9A-Za-z])(?:0x)?([0-9A-Fa-f]{2})(?![0-9A-Za-z])", text):
+        values.append(int(match.group(1), 16))
+    return values
+
+
+def _echo_ranges(values: list[int]) -> list[range]:
+    ranges: list[range] = []
+    width = len(POLL_COMMAND_BYTES)
+    if len(values) < width:
+        return ranges
+    for index in range(0, len(values) - width + 1):
+        if values[index : index + width] == POLL_COMMAND_BYTES:
+            ranges.append(range(index, index + width))
+    return ranges
+
+
+def _overlaps_echo(start: int, width: int, ranges: list[range]) -> bool:
+    end = start + width
+    return any(start < echo.stop and end > echo.start for echo in ranges)
+
+
+def _validate_temperature_window(window: list[int]) -> list[dict[str, Any]]:
+    temperatures: list[dict[str, Any]] = []
+    valid_count = 0
+    for index in range(EXPECTED_DIMM_COUNT):
+        integer = window[index * 2]
+        fraction = window[index * 2 + 1]
+        if integer == 0xFF and fraction == 0xFF:
+            temperatures.append(
+                {
+                    "id": index,
+                    "dimm": index + 1,
+                    "temperature_c": None,
+                    "integer_c": None,
+                    "fraction": None,
+                    "valid": False,
+                    "status": "missing",
+                    "raw_pair": [integer, fraction],
+                    "reason": "missing",
+                }
+            )
+            continue
+        if fraction > 99:
+            raise ValueError(f"DIMM {index:02d} fraction byte out of 0..99 range: 0x{fraction:02x}")
+        valid_count += 1
+        temperatures.append(
+            {
+                "id": index,
+                "dimm": index + 1,
+                "temperature_c": integer,
+                "integer_c": integer,
+                "fraction": fraction,
+                "valid": True,
+                "status": "valid",
+                "raw_pair": [integer, fraction],
+            }
+        )
+    if valid_count == 0:
+        raise ValueError("no present DIMM temperatures in BMC payload")
+    return temperatures
+
+
+def _find_payload_bytes(text: str) -> tuple[list[int], list[dict[str, Any]], int]:
+    values = _extract_hex_bytes(text)
+    if len(values) < EXPECTED_PAYLOAD_BYTES:
+        raise ValueError(f"BMC capture has {len(values)} data byte(s), expected at least 48")
+
+    echo_ranges = _echo_ranges(values)
+    rejected_echo_windows = 0
+    last_error: ValueError | None = None
+    for start in range(0, len(values) - EXPECTED_PAYLOAD_BYTES + 1):
+        if _overlaps_echo(start, EXPECTED_PAYLOAD_BYTES, echo_ranges):
+            rejected_echo_windows += 1
+            continue
+        window = values[start : start + EXPECTED_PAYLOAD_BYTES]
+        try:
+            return window, _validate_temperature_window(window), rejected_echo_windows
+        except ValueError as exc:
+            last_error = exc
+    if last_error is not None:
+        raise last_error
+    raise ValueError("no non-echo 48-byte DIMM payload candidate found")
+
+
+def normalize_bmc_capture_text(text: str, *, seq: int) -> dict[str, Any]:
+    values, temperatures, rejected_echo_windows = _find_payload_bytes(text)
+    reply_text = " ".join(f"{value:02x}" for value in values) + "\r\n"
+    valid_count = sum(1 for item in temperatures if item["valid"])
+    missing_count = len(temperatures) - valid_count
+    return {
+        "schema": "j6-bmc-replay-payload-v1",
+        "status": "pass",
+        "generated_at": utc_now(),
+        "source": "real_bmc_capture",
+        "bmc_source": "pc_replay_from_real_bmc_capture",
+        "live_bmc_link_status": "not_used",
+        "replay_mode": "poll_response",
+        "seq": seq,
+        "poll_text": POLL_COMMAND_TEXT.strip(),
+        "poll_command_text": POLL_COMMAND_TEXT,
+        "reply_text": reply_text,
+        "reply_sha256": hashlib.sha256(reply_text.encode("ascii")).hexdigest(),
+        "capture_text_sha256": hashlib.sha256(text.encode("utf-8")).hexdigest(),
+        "byte_count": len(values),
+        "valid_count": valid_count,
+        "missing_count": missing_count,
+        "rejected_echo_windows": rejected_echo_windows,
+        "payload_hex": [f"{value:02x}" for value in values],
+        "temperatures": temperatures,
+        "safety": {
+            "unsolicited_reply_attempted": False,
+            "driver_install_attempted": False,
+            "programs_nonvolatile": False,
+        },
+        "authority_boundary": (
+            "PC replay replies only after observing the CPLD BMC poll text. "
+            "The payload comes from a prior real BMC capture and is not live BMC evidence."
+        ),
+    }
+
+
+def build_replay_payload(text: str, *, seq: int) -> dict[str, Any]:
+    return normalize_bmc_capture_text(text, seq=seq)
+
+
+def run_poll_response_session(
+    endpoint: ReplayEndpoint,
+    payload: dict[str, Any],
+    *,
+    iterations: int,
+    timeout_sec: float,
+) -> dict[str, Any]:
+    poll_text = str(payload.get("poll_command_text") or payload.get("poll_text") or POLL_COMMAND_TEXT)
+    poll = poll_text.encode("ascii")
+    reply = str(payload["reply_text"]).encode("ascii")
+    window = bytearray()
+    matched = 0
+    replies = 0
+    started = time.monotonic()
+    deadline = started + timeout_sec
+
+    while matched < iterations and time.monotonic() < deadline:
+        chunk = endpoint.read(1)
+        if not chunk:
+            time.sleep(min(0.001, max(0.0, deadline - time.monotonic())))
+            continue
+        window += chunk
+        if len(window) > max(4096, len(poll) * 2):
+            del window[: len(window) - max(4096, len(poll) * 2)]
+        if poll in window:
+            endpoint.write(reply)
+            matched += 1
+            replies += 1
+            window.clear()
+
+    return {
+        "schema": "j6-bmc-replay-session-v1",
+        "status": "pass" if matched == iterations else "blocked_waiting_for_cpld_poll",
+        "generated_at": utc_now(),
+        "replay_mode": "poll_response",
+        "bmc_source": "pc_replay_from_real_bmc_capture",
+        "live_bmc_link_status": "not_used",
+        "matched_poll_count": matched,
+        "reply_count": replies,
+        "unsolicited_reply_attempted": False,
+        "elapsed_sec": round(time.monotonic() - started, 6),
+        "safety": {
+            "unsolicited_reply_attempted": False,
+            "driver_install_attempted": False,
+            "programs_nonvolatile": False,
+        },
+    }
+
+
+def cmd_normalize_capture(args: argparse.Namespace) -> int:
+    payload = normalize_bmc_capture_text(Path(args.input).read_text(encoding="utf-8", errors="replace"), seq=args.seq)
+    Path(args.payload).parent.mkdir(parents=True, exist_ok=True)
+    Path(args.payload).write_text(json.dumps(payload, indent=2) + "\n", encoding="utf-8")
+    if args.json:
+        print(json.dumps(payload, indent=2))
+    return 0
+
+
+def cmd_selftest(args: argparse.Namespace) -> int:
+    del args
+    sample = "\n".join(
+        [
+            "root@bmc:~# " + POLL_COMMAND_TEXT.strip(),
+            " ".join(f"{40 + index:02x} 00" for index in range(EXPECTED_DIMM_COUNT)),
+        ]
+    )
+    payload = build_replay_payload(sample, seq=1)
+    endpoint = FakeSerialEndpoint(initial_rx=b"\r\r" + POLL_COMMAND_TEXT.encode("ascii"))
+    receipt = run_poll_response_session(endpoint, payload, iterations=1, timeout_sec=0.1)
+    if receipt["status"] != "pass":
+        raise RuntimeError("poll-response selftest failed")
+    print("selftest=pass")
+    return 0
+
+
+def build_parser() -> argparse.ArgumentParser:
+    parser = argparse.ArgumentParser(description=__doc__)
+    sub = parser.add_subparsers(dest="command", required=True)
+
+    normalize = sub.add_parser("normalize-capture")
+    normalize.add_argument("--input", required=True)
+    normalize.add_argument("--payload", required=True)
+    normalize.add_argument("--seq", type=int, default=1)
+    normalize.add_argument("--json", action="store_true")
+    normalize.set_defaults(func=cmd_normalize_capture)
+
+    selftest = sub.add_parser("selftest")
+    selftest.set_defaults(func=cmd_selftest)
+    return parser
+
+
+def main(argv: list[str] | None = None) -> int:
+    args = build_parser().parse_args(argv)
+    return args.func(args)
+
+
+if __name__ == "__main__":
+    raise SystemExit(main())

+ 496 - 29
tools/package_j6_host_sensor_real_fan_ptc_debug921.ps1

@@ -2,12 +2,12 @@
     [string]$OutputDir = ".\j6tmp-v2-tailfix-package",
     [string]$PackageName = "",
     [Parameter(Mandatory = $true)]
-    [ValidateSet("temp-uart-ptc-remap")]
+    [ValidateSet("temp-uart-ptc-remap", "debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")]
     [string]$Profile,
-    [Parameter(Mandatory = $true)]
-    [string]$Bitstream,
+    [string]$Bitstream = "",
     [Parameter(Mandatory = $true)]
     [string]$TdReceipt,
+    [switch]$FormalBlocked,
     [switch]$ForceOverwrite
 )
 
@@ -15,8 +15,10 @@ $ErrorActionPreference = "Stop"
 
 # Package profile:
 # temp-uart-ptc-remap -> j6tmp-v2-tailfix
+# debug-photo-uart-bmc-replay/formal-uart1-bmc-replay -> j6-bmc-replay package profiles
 # The copied collector is tools\remote\collect-j6-host-sensor-real-fan-ptc.ps1.
-# Start the collector first, then run manual PROGRAM_SRAM so READY/J6READY is captured.
+# The copied BMC replay helper is tools\bmc_replay_uart.py.
+# Start BMC replay first, then collector, then manual PROGRAM_SRAM so READY/J6READY is captured.
 
 $ShortBitName = "j6tmp.bit"
 $ShortTdName = "td.json"
@@ -28,6 +30,17 @@ function Get-Sha256([string]$Path) {
     return (Get-FileHash -LiteralPath $Path -Algorithm SHA256).Hash.ToLowerInvariant()
 }
 
+function Get-StringSha256([string]$Text) {
+    $sha = [System.Security.Cryptography.SHA256]::Create()
+    try {
+        $bytes = [System.Text.Encoding]::ASCII.GetBytes($Text)
+        $hash = $sha.ComputeHash($bytes)
+        return ([System.BitConverter]::ToString($hash)).Replace("-", "").ToLowerInvariant()
+    } finally {
+        $sha.Dispose()
+    }
+}
+
 function Copy-IntoPackage([string]$Source, [string]$DestinationDir) {
     if (-not (Test-Path -LiteralPath $Source -PathType Leaf)) {
         throw "File not found: $Source"
@@ -51,10 +64,14 @@ function New-InventoryItem([string]$Path, [string]$Root) {
 }
 
 function New-PinMap([string]$SelectedProfile) {
-    if ($SelectedProfile -ne "temp-uart-ptc-remap") {
-        throw "Only temp-uart-ptc-remap is supported by this v2 packager"
+    $commonReservedFutureUart = [ordered]@{
+        UART1_TX = [ordered]@{ fpga_ball = "L10"; bank_io_net = "BANK2_GPIO52"; used = ($SelectedProfile -eq "formal-uart1-bmc-replay") }
+        UART1_RX = [ordered]@{ fpga_ball = "M9"; bank_io_net = "BANK2_GPIO53"; used = ($SelectedProfile -eq "formal-uart1-bmc-replay") }
+        UART2_TX = [ordered]@{ fpga_ball = "M10"; bank_io_net = "BANK2_GPIO54"; used = ($SelectedProfile -eq "formal-uart1-bmc-replay") }
+        UART2_RX = [ordered]@{ fpga_ball = "N11"; bank_io_net = "BANK2_GPIO55"; used = ($SelectedProfile -eq "formal-uart1-bmc-replay") }
     }
-    return [ordered]@{
+    if ($SelectedProfile -eq "temp-uart-ptc-remap") {
+        return [ordered]@{
         name = "temp-uart-ptc-remap"
         bmc_tx_ball = "T4"
         bmc_rx_ball = "R5"
@@ -70,35 +87,123 @@ function New-PinMap([string]$SelectedProfile) {
             PTC21 = [ordered]@{ original_ball = "P10"; substitute_ball = "P15"; bank_io_net = "BANK2_GPIO44" }
             PTC22 = [ordered]@{ original_ball = "R10"; substitute_ball = "N14"; bank_io_net = "BANK2_GPIO45" }
         }
-        reserved_future_uart = [ordered]@{
-            UART1_TX = [ordered]@{ fpga_ball = "L10"; bank_io_net = "BANK2_GPIO52"; used = $false }
-            UART1_RX = [ordered]@{ fpga_ball = "M9"; bank_io_net = "BANK2_GPIO53"; used = $false }
-            UART2_TX = [ordered]@{ fpga_ball = "M10"; bank_io_net = "BANK2_GPIO54"; used = $false }
-            UART2_RX = [ordered]@{ fpga_ball = "N11"; bank_io_net = "BANK2_GPIO55"; used = $false }
+        reserved_future_uart = $commonReservedFutureUart
+        }
+    }
+    if ($SelectedProfile -eq "debug-photo-uart-bmc-replay") {
+        return [ordered]@{
+            name = "debug-photo-uart-bmc-replay"
+            bmc_source = "pc_replay_from_real_bmc_capture"
+            live_bmc_link_status = "not_used"
+            hardware_access_status = "photo_visible_header"
+            bmc_tx_ball = "T4"
+            bmc_rx_ball = "R5"
+            host_tx_ball = "P7"
+            host_rx_ball = "P8"
+            debug_rx_ball = "P10"
+            debug_tx_ball = "R10"
+            uart_assignments = [ordered]@{
+                bmc_replay_uart_tx = [ordered]@{ fpga_ball = "T4"; role = "pc_replay_bmc_tx" }
+                bmc_replay_uart_rx = [ordered]@{ fpga_ball = "R5"; role = "pc_replay_bmc_rx" }
+                host_uart_tx = [ordered]@{ fpga_ball = "P7"; role = "host_control_tx" }
+                host_uart_rx = [ordered]@{ fpga_ball = "P8"; role = "host_control_rx" }
+                debug_uart_rx = [ordered]@{ fpga_ball = "P10"; role = "debug921_rx" }
+                debug_uart_tx = [ordered]@{ fpga_ball = "R10"; role = "debug921_tx" }
+            }
+            ptc_substitutions = [ordered]@{
+                PTC03 = [ordered]@{ original_ball = "T4"; substitute_ball = "P5"; bank_io_net = "BANK2_GPIO40"; reason = "photo_visible_uart_overlap_remap" }
+                PTC04 = [ordered]@{ original_ball = "R5"; substitute_ball = "T8"; bank_io_net = "BANK2_GPIO41"; reason = "photo_visible_uart_overlap_remap" }
+                PTC17 = [ordered]@{ original_ball = "P8"; substitute_ball = "M14"; bank_io_net = "BANK2_GPIO42"; reason = "photo_visible_uart_overlap_remap" }
+                PTC18 = [ordered]@{ original_ball = "P7"; substitute_ball = "M15"; bank_io_net = "BANK2_GPIO43"; reason = "photo_visible_uart_overlap_remap" }
+                PTC21 = [ordered]@{ original_ball = "P10"; substitute_ball = "P15"; bank_io_net = "BANK2_GPIO44"; reason = "photo_visible_uart_overlap_remap" }
+                PTC22 = [ordered]@{ original_ball = "R10"; substitute_ball = "N14"; bank_io_net = "BANK2_GPIO45"; reason = "photo_visible_uart_overlap_remap" }
+            }
+            reserved_future_uart = $commonReservedFutureUart
+        }
+    }
+    if ($SelectedProfile -eq "formal-uart1-bmc-replay") {
+        return [ordered]@{
+            name = "formal-uart1-bmc-replay"
+            bmc_source = "pc_replay_from_real_bmc_capture"
+            live_bmc_link_status = "not_used"
+            hardware_access_status = "blocked_waiting_for_uart1_uart2_access"
+            bmc_tx_ball = "L10"
+            bmc_rx_ball = "M9"
+            host_tx_ball = "M10"
+            host_rx_ball = "N11"
+            debug_rx_ball = "P15"
+            debug_tx_ball = "N14"
+            uart_assignments = [ordered]@{
+                bmc_replay_uart_tx = [ordered]@{ fpga_ball = "L10"; role = "pc_replay_bmc_tx" }
+                bmc_replay_uart_rx = [ordered]@{ fpga_ball = "M9"; role = "pc_replay_bmc_rx" }
+                host_uart_tx = [ordered]@{ fpga_ball = "M10"; role = "host_control_tx" }
+                host_uart_rx = [ordered]@{ fpga_ball = "N11"; role = "host_control_rx" }
+                debug_uart_rx = [ordered]@{ fpga_ball = "P15"; role = "debug921_rx" }
+                debug_uart_tx = [ordered]@{ fpga_ball = "N14"; role = "debug921_tx" }
+            }
+            ptc_substitutions = [ordered]@{}
+            reserved_future_uart = $commonReservedFutureUart
         }
     }
+    throw "Unsupported profile: $SelectedProfile"
 }
 
 function New-StartHereText([string]$SelectedProfile, [string]$BitName, [string]$TdName, [string]$ShortBit, [string]$ShortTd) {
-    if ($SelectedProfile -ne "temp-uart-ptc-remap") {
-        throw "Only temp-uart-ptc-remap is supported by this v2 packager"
+    $pinMap = New-PinMap $SelectedProfile
+    $isBmcReplay = $SelectedProfile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")
+    $title = if ($isBmcReplay) { "J6 BMC replay Debug921 short-path package" } else { "J6 temp-uart-ptc-remap Debug921 v2 tailfix short-path package" }
+    $ptcLine = if ($SelectedProfile -eq "formal-uart1-bmc-replay") {
+        "- HEAT/PTC/FAN/FG/INSTALL use the PDF/inventory real schematic pins; no PTC substitution is active in this formal profile."
+    } else {
+        "- PTC03/PTC04/PTC17/PTC18/PTC21/PTC22 使用临时替代引脚;具体替代关系见 manifest.json。"
     }
-    $title = "J6 temp-uart-ptc-remap Debug921 v2 tailfix short-path package"
     $wiring = @"
-- BMC UART:CPLD TX=T4,RX=R5。
-- DebugPort:COM7,P10/R10,921600 8N1。
-- HostPort:COM8,P7/P8,115200 8N1。
-- PTC03/PTC04/PTC17/PTC18/PTC21/PTC22 使用临时替代引脚;具体替代关系见 manifest.json。
+- BMC UART:CPLD TX=$($pinMap.bmc_tx_ball),RX=$($pinMap.bmc_rx_ball)。
+- BMC source:pc_replay_from_real_bmc_capture,live_bmc_link_status=not_used。
+- DebugPort:COM7,CPLD RX=$($pinMap.debug_rx_ball),TX=$($pinMap.debug_tx_ball),921600 8N1。
+- HostPort:COM8,CPLD TX=$($pinMap.host_tx_ball),RX=$($pinMap.host_rx_ball),115200 8N1。
+- BmcReplayPort:COM9,115200 8N1,由 replay-bmc.ps1 只在看到 CPLD poll 后回复。
+$ptcLine
 - HostPort 上电后先输出 READY profile=temp-uart-ptc-remap seq=00000000。collector 会等待 HostPort READY 和 DebugPort J6READY 都出现,保存 startup-preflight.json,再进入严格 12 条正式命令序列。
+- collector_protocol_profile=temp-uart-ptc-remap:这是当前 RTL/collector 的 READY/J6READY 协议别名,不改变本包 pin_profile=$SelectedProfile。
 "@
-    $hardwareNote = "本 temp profile 保持当前三路调试串口接线不变,只把 6 路与串口冲突的 PTC 输出临时改到复核空闲 GPIO。"
+    $hardwareNote = if ($SelectedProfile -eq "formal-uart1-bmc-replay") {
+        "本 formal-uart1-bmc-replay profile 使用 UART1/UART2 预留引脚承载 PC BMC replay 与 HostPort,保留真实 PTC/FAN 映射;DebugPort 为 SPARE_GPIO44/45,TX=N14/RX=P15;hardware_access_status=blocked_waiting_for_uart1_uart2_access。"
+    } elseif ($SelectedProfile -eq "debug-photo-uart-bmc-replay") {
+        "本 debug-photo-uart-bmc-replay profile 保持照片可见调试串口接线,BMC 链路改为 PC replay,并把 6 路与串口冲突的 PTC 输出临时改到复核空闲 GPIO;hardware_access_status=photo_visible_header。"
+    } else {
+        "本 temp profile 保持当前三路调试串口接线不变,只把 6 路与串口冲突的 PTC 输出临时改到复核空闲 GPIO。"
+    }
 
     return @"
 # $title
 
-## 1. 先启动 collector
+## 1. 先准备并启动 BMC replay
+
+BMC replay profiles use a PC replay source instead of a live BMC link. 先把真实 BMC 抓到的文本规范化成 payload,再在单独 PowerShell 窗口启动 replay-bmc.ps1。replay-bmc.ps1 会一直等待 CPLD 发出完整 poll,看到 poll 后才回复一帧历史 payload。
 
-在本包根目录打开 PowerShell,先复制执行下面这一条命令。collector 会先打开 COM8/COM7、等待 READY/J6READY,并把启动同步写入 startup-preflight.json。
+capture-bmc.ps1 uses Python only to normalize a saved real-BMC text capture into the 48-byte replay payload. The package does not install Python/pip/driver and does not enumerate COM ports.
+
+~~~powershell
+powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\capture-bmc.ps1 -Input .\bmc-capture.txt -Payload .\bmc-replay-payload.json
+powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\replay-bmc.ps1 -BmcReplayPort COM9 -Payload .\bmc-replay-payload.json
+~~~
+
+临时只想验证 CPLD poll/response 链路时,也可以先用包内 bmc-replay-payload.example.json:
+
+~~~powershell
+powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\replay-bmc.ps1 -BmcReplayPort COM9 -Payload .\bmc-replay-payload.example.json
+~~~
+
+example payload 只能用于 debug fallback;严格 evidence 里 BMC source 仍应来自 `capture-bmc.ps1` 规范化的真实 BMC capture。
+
+若 Windows 机器还没有 Python,请先由用户手动安装 Python;本包不会自动安装 Python/pip/driver。
+
+## 2. 再启动 collector
+
+确认 replay-bmc.ps1 已经在单独窗口等待后,在本包根目录打开另一个 PowerShell,复制执行下面这一条命令。collector 会先打开 COM8/COM7、等待 READY/J6READY,并把启动同步写入 startup-preflight.json。
+
+端口参数:-HostPort COM8 -DebugPort COM7 -BmcReplayPort COM9
 
 ~~~powershell
 powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\collect.ps1 -HostPort COM8 -DebugPort COM7 -DurationSeconds 180 -OutputDir .\evidence-com8-host-com7-debug -Profile $SelectedProfile -Bitstream .\$ShortBit -TdReceipt .\$ShortTd
@@ -110,7 +215,7 @@ powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\collect.ps1 -HostPort
 powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\commands\collect-template.ps1
 ~~~
 
-## 2. collector 启动后手动刷 SRAM
+## 3. collector 启动后手动刷 SRAM
 
 collector 开始等待后,在 TD/ChipWatcher/BitWriter 中只执行 PROGRAM_SRAM,选择本包根目录下面这个短路径 bitstream:
 
@@ -149,9 +254,55 @@ $hardwareNote
 本包只声明 SRAM-only 诊断链路、HostPort 控制、BMC raw 采样、温度解析和证据采集成立;不声明非易失存储写入、真实热性能、真实 PTC/FAN 负载或 PID 闭环通过。
 "@
 }
+
+function New-FormalBlockedText([string]$SelectedProfile) {
+    $pinMap = New-PinMap $SelectedProfile
+    return @"
+# J6 BMC replay formal-uart1 blocked package
+
+本包不是可刷机包,不能刷机。
+
+## 结论
+
+- status=blocked_td_mslice_over_limit
+- 最新 formal-uart1-bmc-replay P15/N14 DebugPort 尝试结果为 1137 mslices,器件限制为 1120 mslices。
+- 历史最佳 T8/P5 DebugPort 候选观察到 1131 mslices,仍超过 1120 限制。
+- 因此本轮没有生成 formal-uart1-bmc-replay SRAM bitstream,也没有短路径 bitstream 别名。
+- 不能把 debug-photo-uart-bmc-replay 的 bitstream 当作 formal 版使用,因为 debug-photo 版仍有 6 路 PTC remap,formal 版目标是全 HEAT/PTC/FAN 使用真实原理图引脚。
+
+## formal 设计方向
+
+- BMC-Replay UART:CPLD TX=$($pinMap.bmc_tx_ball),RX=$($pinMap.bmc_rx_ball),PC 串口回放真实 BMC capture。
+- HostPort:CPLD TX=$($pinMap.host_tx_ball),RX=$($pinMap.host_rx_ball)。
+- DebugPort 候选:CPLD TX=$($pinMap.debug_tx_ball),RX=$($pinMap.debug_rx_ball)。这是 SPARE_GPIO44/45 候选,不占 HEAT/FAN/FG/INSTALL、UART1/2、时钟、复位或 LED。
+- HEAT1..24、FAN_PWM1..4、FAN_FG1..8、FAN_INSTALL1..4 保持 PDF/inventory 真实映射。
+
+## 还需要什么才可发布 formal 可刷包
+
+1. 先做 debug921 RTL 资源削减或 TD packing 策略实验,至少减少 11 个 mslices,并保留 UART/Host/BMC replay/Debug evidence 行为。
+2. 重新跑 TD build,必须实际生成 formal `.bit`。
+3. 重新跑 package/selftest/hash/safety scan。
+4. UART1/2 与 DebugPort 候选脚还需要现场连通性或可接线复核;在复核前 hardware_access_status 仍为 blocked_waiting_for_uart1_uart2_access。
+
+## 边界
+
+- BMC source=pc_replay_from_real_bmc_capture,不声明 live_bmc_pass。
+- real_fan_ptc_hardware_status=not_run。
+- 不声明 flash、真实热性能、真实 PID 闭环或真实 PTC/FAN 负载通过。
+
+包内 `td.json` 是 TD 失败 receipt,`manifest.json` 是本 blocked 包的机器可读说明。
+"@
+}
 $repoRoot = Resolve-Path -LiteralPath (Join-Path $PSScriptRoot "..")
 $out = (Resolve-Path -LiteralPath (New-Item -ItemType Directory -Force -Path $OutputDir)).Path
 
+if ($FormalBlocked -and $Profile -ne "formal-uart1-bmc-replay") {
+    throw "-FormalBlocked is only valid with -Profile formal-uart1-bmc-replay."
+}
+if (-not $FormalBlocked -and [string]::IsNullOrWhiteSpace($Bitstream)) {
+    throw "-Bitstream is required unless -FormalBlocked is specified."
+}
+
 if ([string]::IsNullOrWhiteSpace($PackageName)) {
     $stamp = Get-Date -Format "yyyyMMdd-HHmmss"
     $PackageName = "j6tmp-v2-tailfix-$stamp"
@@ -170,18 +321,97 @@ if (Test-Path -LiteralPath $stage) {
     Remove-Item -LiteralPath $resolvedStage -Recurse -Force
 }
 
-foreach ($dir in @("bitstreams", "td-receipts", "collector", "commands", "schemas", "docs", "config")) {
+foreach ($dir in @("bitstreams", "td-receipts", "collector", "commands", "schemas", "docs", "config", "bmc-replay")) {
     New-Item -ItemType Directory -Force -Path (Join-Path $stage $dir) | Out-Null
 }
 
 $collectorPath = Join-Path $repoRoot "tools\remote\collect-j6-host-sensor-real-fan-ptc.ps1"
+$bmcReplayPath = Join-Path $repoRoot "tools\bmc_replay_uart.py"
 $schemaPath = Join-Path $repoRoot "schemas\real_bmc_j6_host_sensor_real_fan_ptc_debug921_v1_receipt.schema.json"
 $runbookPath = Join-Path $repoRoot "docs\j6-host-sensor-real-fan-ptc-debug921-runbook.zh-CN.md"
 $pinInventoryPath = Join-Path $repoRoot "config\pin_inventory.fcb_fpga_mcu0611.json"
 
+if ($FormalBlocked) {
+    $tdReceiptCopy = Copy-IntoPackage $TdReceipt (Join-Path $stage "td-receipts")
+    Copy-IntoPackage $schemaPath (Join-Path $stage "schemas") | Out-Null
+    Copy-IntoPackage $runbookPath (Join-Path $stage "docs") | Out-Null
+    Copy-IntoPackage $pinInventoryPath (Join-Path $stage "config") | Out-Null
+    Copy-Item -LiteralPath $tdReceiptCopy -Destination (Join-Path $stage $ShortTdName) -Force
+    Set-Content -LiteralPath (Join-Path $stage "START-HERE.zh-CN.md") -Encoding UTF8 -Value (New-FormalBlockedText $Profile)
+    Set-Content -LiteralPath (Join-Path $stage "FORMAL-BLOCKED.zh-CN.md") -Encoding UTF8 -Value (New-FormalBlockedText $Profile)
+
+    $pinMap = New-PinMap $Profile
+    $manifest = [ordered]@{
+        schema = "j6-host-sensor-real-fan-ptc-debug921-package-manifest-v1"
+        status = "blocked_td_mslice_over_limit"
+        generated_at = (Get-Date).ToUniversalTime().ToString("o")
+        package_name = $PackageName
+        diagnostic_scope = "host_sensor_real_fan_ptc_debug921"
+        pin_profile = $Profile
+        programming_mode = "not_available"
+        bitstream = $null
+        td_receipt = [ordered]@{ path = $ShortTdName; sha256 = Get-Sha256 (Join-Path $stage $ShortTdName) }
+        blocked_reason = [ordered]@{
+            code = "blocked_td_mslice_over_limit"
+            latest_attempt_mslices = 1137
+            latest_attempt_debug_uart_rx_ball = "P15"
+            latest_attempt_debug_uart_tx_ball = "N14"
+            best_observed_mslices = 1131
+            best_observed_debug_uart_rx_ball = "T8"
+            best_observed_debug_uart_tx_ball = "P5"
+            device_mslice_limit = 1120
+            no_flashable_formal_bitstream = $true
+        }
+        bmc_source = "pc_replay_from_real_bmc_capture"
+        live_bmc_link_status = "not_used"
+        pin_map = $pinMap
+        real_fan_ptc_hardware_status = "not_run"
+        remote_dependencies = "None for this blocked package."
+        authority_boundary = "Blocked formal package. It records TD failure evidence only and must not be used for device programming."
+    }
+    $manifest | ConvertTo-Json -Depth 64 | Set-Content -LiteralPath (Join-Path $stage "manifest.json") -Encoding UTF8
+
+    $inventory = New-Object System.Collections.Generic.List[object]
+    Get-ChildItem -LiteralPath $stage -Recurse -File | Sort-Object FullName | ForEach-Object {
+        if ($_.Name -eq "sha256-inventory.json") {
+            return
+        }
+        $inventory.Add((New-InventoryItem $_.FullName $stage)) | Out-Null
+    }
+    [ordered]@{
+        schema = "j6-host-sensor-real-fan-ptc-debug921-package-sha256-inventory-v1"
+        generated_at = (Get-Date).ToUniversalTime().ToString("o")
+        self_hash_policy = "excluded_self_referential_file"
+        inventory = $inventory
+    } | ConvertTo-Json -Depth 32 | Set-Content -LiteralPath (Join-Path $stage "sha256-inventory.json") -Encoding UTF8
+
+    $zipPath = Join-Path $out ($PackageName + ".zip")
+    if (Test-Path -LiteralPath $zipPath) {
+        if (-not $ForceOverwrite) {
+            throw "Package zip already exists: $zipPath. Move it aside, choose a different -PackageName, or pass -ForceOverwrite."
+        }
+        Remove-Item -LiteralPath $zipPath -Force
+    }
+    $zipSidecar = $zipPath + ".sha256.txt"
+    if (Test-Path -LiteralPath $zipSidecar) {
+        if (-not $ForceOverwrite) {
+            throw "Package zip sidecar already exists: $zipSidecar. Move it aside, choose a different -PackageName, or pass -ForceOverwrite."
+        }
+        Remove-Item -LiteralPath $zipSidecar -Force
+    }
+    Compress-Archive -Path (Join-Path $stage "*") -DestinationPath $zipPath -Force
+    $zipSha = Get-Sha256 $zipPath
+    Set-Content -LiteralPath $zipSidecar -Encoding ASCII -Value ("{0}  {1}" -f $zipSha, (Split-Path -Leaf $zipPath))
+    Write-Host "Wrote $stage"
+    Write-Host "Wrote $zipPath"
+    Write-Host ("SHA256 {0} {1}" -f $zipSha, $zipPath)
+    exit 0
+}
+
 $bitstreamCopy = Copy-IntoPackage $Bitstream (Join-Path $stage "bitstreams")
 $tdReceiptCopy = Copy-IntoPackage $TdReceipt (Join-Path $stage "td-receipts")
 Copy-IntoPackage $collectorPath (Join-Path $stage "collector") | Out-Null
+Copy-IntoPackage $bmcReplayPath (Join-Path $stage "bmc-replay") | Out-Null
 Copy-IntoPackage $schemaPath (Join-Path $stage "schemas") | Out-Null
 Copy-IntoPackage $runbookPath (Join-Path $stage "docs") | Out-Null
 Copy-IntoPackage $pinInventoryPath (Join-Path $stage "config") | Out-Null
@@ -197,7 +427,7 @@ param(
     [string]$DebugPort = "",
     [int]$DurationSeconds = 180,
     [string]$OutputDir = ".\evidence-com8-host-com7-debug",
-    [ValidateSet("temp-uart-ptc-remap")]
+    [ValidateSet("temp-uart-ptc-remap", "debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")]
     [string]$Profile = "temp-uart-ptc-remap",
     [string]$Bitstream = ".\j6tmp.bit",
     [string]$TdReceipt = ".\td.json",
@@ -209,6 +439,7 @@ $packageRoot = $PSScriptRoot
 $collector = Join-Path $packageRoot "collector\collect-j6-host-sensor-real-fan-ptc.ps1"
 $bitstreamPath = if ([System.IO.Path]::IsPathRooted($Bitstream)) { $Bitstream } else { Join-Path $packageRoot $Bitstream }
 $tdReceiptPath = if ([System.IO.Path]::IsPathRooted($TdReceipt)) { $TdReceipt } else { Join-Path $packageRoot $TdReceipt }
+$collectorProfile = if ($Profile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")) { "temp-uart-ptc-remap" } else { $Profile }
 $argsList = @(
     "-NoProfile",
     "-ExecutionPolicy", "Bypass",
@@ -222,7 +453,7 @@ if ($SelfTest) {
         "-DebugPort", $DebugPort,
         "-DurationSeconds", $DurationSeconds,
         "-OutputDir", $OutputDir,
-        "-Profile", $Profile,
+        "-Profile", $collectorProfile,
         "-Bitstream", $bitstreamPath,
         "-TdReceipt", $tdReceiptPath
     )
@@ -234,6 +465,221 @@ if ($LASTEXITCODE -ne 0) {
 '@
 Set-Content -LiteralPath (Join-Path $stage "collect.ps1") -Encoding UTF8 -Value $shortcut
 
+$captureBmc = @'
+param(
+    [ValidatePattern('^COM[0-9]+$')]
+    [string]$BmcCapturePort = "",
+    [string]$Input = ".\bmc-capture.txt",
+    [string]$Payload = ".\bmc-replay-payload.json",
+    [int]$Seq = 1,
+    [int]$TimeoutSeconds = 3
+)
+
+$ErrorActionPreference = "Stop"
+$packageRoot = $PSScriptRoot
+$helper = Join-Path $packageRoot "bmc-replay\bmc_replay_uart.py"
+$inputPath = if ([System.IO.Path]::IsPathRooted($Input)) { $Input } else { Join-Path $packageRoot $Input }
+$payloadPath = if ([System.IO.Path]::IsPathRooted($Payload)) { $Payload } else { Join-Path $packageRoot $Payload }
+
+if (-not [string]::IsNullOrWhiteSpace($BmcCapturePort)) {
+    $serial = New-Object System.IO.Ports.SerialPort
+    $serial.PortName = $BmcCapturePort
+    $serial.BaudRate = 115200
+    $serial.DataBits = 8
+    $serial.Parity = [System.IO.Ports.Parity]::None
+    $serial.StopBits = [System.IO.Ports.StopBits]::One
+    $serial.Handshake = [System.IO.Ports.Handshake]::None
+    $serial.DtrEnable = $false
+    $serial.RtsEnable = $false
+    $serial.ReadTimeout = 50
+    $serial.WriteTimeout = 1000
+    $rawCommand = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03`n"
+    $chunks = New-Object System.Collections.Generic.List[byte]
+    try {
+        $serial.Open()
+        $bytes = [System.Text.Encoding]::ASCII.GetBytes($rawCommand)
+        $serial.Write($bytes, 0, $bytes.Length)
+        $deadline = (Get-Date).ToUniversalTime().AddSeconds($TimeoutSeconds)
+        while ((Get-Date).ToUniversalTime() -lt $deadline) {
+            try {
+                $value = $serial.ReadByte()
+                if ($value -ge 0) {
+                    $chunks.Add([byte]$value) | Out-Null
+                }
+            } catch [System.TimeoutException] {
+                Start-Sleep -Milliseconds 10
+            }
+        }
+    } finally {
+        if ($serial.IsOpen) {
+            $serial.Close()
+        }
+    }
+    $text = [System.Text.Encoding]::ASCII.GetString($chunks.ToArray())
+    if ([string]::IsNullOrWhiteSpace($text)) {
+        throw "No BMC capture text received from $BmcCapturePort"
+    }
+    Set-Content -LiteralPath $inputPath -Encoding ASCII -Value $text
+}
+& python $helper normalize-capture --input $inputPath --payload $payloadPath --seq $Seq --json
+if ($LASTEXITCODE -ne 0) {
+    exit $LASTEXITCODE
+}
+'@
+Set-Content -LiteralPath (Join-Path $stage "capture-bmc.ps1") -Encoding UTF8 -Value $captureBmc
+
+$examplePayload = [ordered]@{
+    schema = "j6-bmc-replay-payload-v1"
+    status = "debug_example_only"
+    source = "synthetic_example"
+    bmc_source = "example_payload_not_real_bmc_capture"
+    live_bmc_link_status = "not_used"
+    replay_mode = "poll_response"
+    seq = 0
+    poll_text = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
+    poll_command_text = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03`n"
+    reply_text = "28 00 29 00 2a 00 2b 00 2c 00 2d 00 2e 00 2f 00 30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3a 00 3b 00 3c 00 3d 00 3e 00 3f 00`r`n"
+    reply_sha256 = ""
+    byte_count = 48
+    valid_count = 24
+    missing_count = 0
+    safety = [ordered]@{
+        unsolicited_reply_attempted = $false
+        driver_install_attempted = $false
+        programs_nonvolatile = $false
+    }
+    authority_boundary = "Synthetic example payload for temporary BMC replay wiring debug only. It is not real BMC evidence."
+}
+$examplePayload.reply_sha256 = Get-StringSha256 $examplePayload.reply_text
+$examplePayload | ConvertTo-Json -Depth 16 | Set-Content -LiteralPath (Join-Path $stage "bmc-replay-payload.example.json") -Encoding UTF8
+
+$replayBmc = @'
+param(
+    [ValidatePattern('^COM[0-9]+$')]
+    [string]$BmcReplayPort = "COM9",
+    [string]$Payload = ".\bmc-replay-payload.json",
+    [int]$Iterations = 0,
+    [int]$TimeoutSeconds = 0,
+    [switch]$SelfTest
+)
+
+$ErrorActionPreference = "Stop"
+$packageRoot = $PSScriptRoot
+$payloadPath = if ([System.IO.Path]::IsPathRooted($Payload)) { $Payload } else { Join-Path $packageRoot $Payload }
+
+function Read-Payload([string]$Path) {
+    if (-not (Test-Path -LiteralPath $Path -PathType Leaf)) {
+        throw "Payload file not found: $Path"
+    }
+    $payload = Get-Content -LiteralPath $Path -Raw | ConvertFrom-Json
+    if ([string]::IsNullOrWhiteSpace([string]$payload.reply_text)) {
+        throw "Payload missing reply_text"
+    }
+    $pollText = [string]$payload.poll_command_text
+    if ([string]::IsNullOrWhiteSpace($pollText)) {
+        $pollText = [string]$payload.poll_text
+        if (-not $pollText.EndsWith("`n")) {
+            $pollText = $pollText + "`n"
+        }
+    }
+    return [ordered]@{
+        poll = $pollText
+        reply = [string]$payload.reply_text
+        sha256 = [string]$payload.reply_sha256
+    }
+}
+
+function Invoke-ReplayCore($Endpoint, [string]$PollText, [string]$ReplyText, [int]$MaxIterations, [int]$MaxSeconds) {
+    $poll = [System.Text.Encoding]::ASCII.GetBytes($PollText)
+    $reply = [System.Text.Encoding]::ASCII.GetBytes($ReplyText)
+    $window = New-Object System.Collections.Generic.List[byte]
+    $matched = 0
+    $deadline = if ($MaxSeconds -gt 0) { (Get-Date).ToUniversalTime().AddSeconds($MaxSeconds) } else { [DateTime]::MaxValue }
+    while ($matched -lt $MaxIterations -or $MaxIterations -eq 0) {
+        if ((Get-Date).ToUniversalTime() -gt $deadline) {
+            break
+        }
+        $value = $Endpoint.ReadByte()
+        if ($value -lt 0) {
+            Start-Sleep -Milliseconds 2
+            continue
+        }
+        $window.Add([byte]$value) | Out-Null
+        $limit = [Math]::Max(4096, $poll.Length * 2)
+        while ($window.Count -gt $limit) {
+            $window.RemoveAt(0)
+        }
+        if ($window.Count -ge $poll.Length) {
+            $match = $true
+            for ($i = 0; $i -lt $poll.Length; $i++) {
+                if ($window[$window.Count - $poll.Length + $i] -ne $poll[$i]) {
+                    $match = $false
+                    break
+                }
+            }
+            if ($match) {
+                $Endpoint.Write($reply, 0, $reply.Length)
+                $matched += 1
+                $window.Clear()
+                Write-Host ("replay_reply_count={0}" -f $matched)
+            }
+        }
+    }
+    return [ordered]@{
+        status = if ($matched -gt 0) { "pass" } else { "blocked_waiting_for_cpld_poll" }
+        matched_poll_count = $matched
+        reply_count = $matched
+        unsolicited_reply_attempted = $false
+    }
+}
+
+if ($SelfTest) {
+    $tmp = Join-Path $env:TEMP ("j6-bmc-replay-selftest-" + [Guid]::NewGuid().ToString("N") + ".json")
+    try {
+        $sample = [ordered]@{
+            reply_text = "28 00 29 00 2a 00 2b 00 2c 00 2d 00 2e 00 2f 00 30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3a 00 3b 00 3c 00 3d 00 3e 00 3f 00`r`n"
+            reply_sha256 = ""
+            poll_command_text = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03`n"
+        }
+        $sample | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $tmp -Encoding UTF8
+        $p = Read-Payload $tmp
+        if (-not $p.poll.Contains("ipmitool raw")) { throw "poll selftest failed" }
+        if (-not $p.reply.EndsWith("`n")) { throw "reply selftest failed" }
+        Write-Host "selftest=pass"
+        exit 0
+    } finally {
+        if (Test-Path -LiteralPath $tmp) {
+            Remove-Item -LiteralPath $tmp -Force
+        }
+    }
+}
+
+$replayPayload = Read-Payload $payloadPath
+$serial = New-Object System.IO.Ports.SerialPort
+$serial.PortName = $BmcReplayPort
+$serial.BaudRate = 115200
+$serial.DataBits = 8
+$serial.Parity = [System.IO.Ports.Parity]::None
+$serial.StopBits = [System.IO.Ports.StopBits]::One
+$serial.Handshake = [System.IO.Ports.Handshake]::None
+$serial.DtrEnable = $false
+$serial.RtsEnable = $false
+$serial.ReadTimeout = 25
+$serial.WriteTimeout = 1000
+try {
+    $serial.Open()
+    Write-Host "Ready to replay BMC payload on $BmcReplayPort from $payloadPath"
+    Write-Host "Safety: reply only after CPLD poll; no dependency setup, no COM enumeration, no device programming."
+    $receipt = Invoke-ReplayCore $serial $replayPayload.poll $replayPayload.reply $Iterations $TimeoutSeconds
+    $receipt | ConvertTo-Json -Depth 8
+} finally {
+    if ($serial.IsOpen) {
+        $serial.Close()
+    }
+}
+'@
+Set-Content -LiteralPath (Join-Path $stage "replay-bmc.ps1") -Encoding UTF8 -Value $replayBmc
+
 $template = @'
 & "$PSHOME\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File .\collect.ps1 -HostPort COM8 -DebugPort COM7 -DurationSeconds 180 -OutputDir .\evidence-com8-host-com7-debug -Profile __PROFILE__ -Bitstream .\j6tmp.bit -TdReceipt .\td.json
 '@
@@ -278,7 +724,28 @@ $manifest = [ordered]@{
             sha256 = Get-Sha256 (Join-Path $stage $ShortTdName)
         }
     }
-    collector = [ordered]@{ path = "collector/collect-j6-host-sensor-real-fan-ptc.ps1"; shortcut = "collect.ps1"; profile_argument = $Profile }
+    collector = [ordered]@{
+        path = "collector/collect-j6-host-sensor-real-fan-ptc.ps1"
+        shortcut = "collect.ps1"
+        user_profile_argument = $Profile
+        profile_argument = $Profile
+        collector_protocol_profile = if ($Profile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")) { "temp-uart-ptc-remap" } else { $Profile }
+        ready_profile_string = "temp-uart-ptc-remap"
+    }
+    bmc_source = if ($Profile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")) { "pc_replay_from_real_bmc_capture" } else { "live_bmc_uart" }
+    live_bmc_link_status = if ($Profile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")) { "not_used" } else { "used" }
+    bmc_replay = [ordered]@{
+        helper = "bmc-replay/bmc_replay_uart.py"
+        capture_shortcut = "capture-bmc.ps1"
+        replay_shortcut = "replay-bmc.ps1"
+        example_payload = "bmc-replay-payload.example.json"
+        strict_payload_source = "capture-bmc.ps1 normalized real BMC capture"
+        example_payload_authority = "debug fallback only; not real BMC evidence"
+        port_argument = "BmcReplayPort"
+        default_port = "COM9"
+        mode = "pc_replay_from_real_bmc_capture"
+        unsolicited_reply_attempted = $false
+    }
     host_control_commands = $hostControlCommands
     startup_preflight = [ordered]@{
         expected_artifact = "startup-preflight.json"
@@ -294,9 +761,9 @@ $manifest = [ordered]@{
     }
     pin_map = $pinMap
     real_fan_ptc_hardware_status = "not_run"
-    remote_dependencies = "PowerShell and .NET SerialPort only; no remote dependency install."
+    remote_dependencies = if ($Profile -in @("debug-photo-uart-bmc-replay", "formal-uart1-bmc-replay")) { "PowerShell, .NET SerialPort, and user-provided Python for capture-bmc.ps1 normalization only; no pip setup, no driver setup, no COM enumeration." } else { "PowerShell and .NET SerialPort only; no remote dependency setup." }
     sha256_inventory_policy = "sha256-inventory.json excludes itself because it is self-referential; the package zip is sealed by the adjacent .zip.sha256.txt file."
-    authority_boundary = "SRAM-only diagnostic package. It does not program nonvolatile memory, install drivers, enumerate unknown COM ports, write DebugPort, claim thermal performance, or claim PID closed-loop pass."
+    authority_boundary = "SRAM-only diagnostic package. It does not program nonvolatile memory, change drivers, enumerate unknown COM ports, write DebugPort, claim thermal performance, or claim PID closed-loop pass."
 }
 $manifestPath = Join-Path $stage "manifest.json"
 $manifest | ConvertTo-Json -Depth 64 | Set-Content -LiteralPath $manifestPath -Encoding UTF8

+ 54 - 0
tools/pid_harness.py

@@ -137,6 +137,60 @@ TD_TOP_PROFILES = {
         "requires_verified_real_fan_ptc_pin_map": True,
         "authority_boundary": "SRAM-only formal-uart diagnostic evidence. Schematic HEAT/FAN/FG/INSTALL pins are retained, diagnostic UARTs use spare GPIO, and reserved UART1/2 pins remain unused. It does not claim real thermal performance, production PTC/FAN qualification, flash, or PID closed-loop pass.",
     },
+    "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921": {
+        "mode": "implementation",
+        "display_name": "J6 host sensor real FAN/PTC debug-photo UART diagnostic with PC replay from a real BMC capture",
+        "top_module": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top",
+        "source_prj": "td/uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.prj",
+        "build_subdir": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921",
+        "syn_script": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl",
+        "phy_script": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.tcl",
+        "bitstream": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921.bit",
+        "area_report": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_phy.area",
+        "timing_report": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_pr.timing",
+        "pin_profile": "debug-photo-uart-bmc-replay",
+        "bmc_source": "pc_replay_from_real_bmc_capture",
+        "tx_ball": "T4",
+        "rx_ball": "R5",
+        "host_uart_tx_ball": "P7",
+        "host_uart_rx_ball": "P8",
+        "debug_uart_rx_ball": "P10",
+        "debug_uart_tx_ball": "R10",
+        "host_uart_baud": 115200,
+        "bmc_uart_baud": 115200,
+        "debug_uart_baud": 921600,
+        "debug_uart_clks_per_bit": 27,
+        "live_bmc_link_status": "not_used",
+        "requires_verified_real_fan_ptc_pin_map": True,
+        "authority_boundary": "SRAM-only debug-photo-uart-bmc-replay diagnostic evidence. photo-visible UART wiring is retained while the BMC UART stream is driven by PC replay from a real BMC capture; it does not claim a live BMC link, real thermal performance, production PTC/FAN qualification, flash, or PID closed-loop pass.",
+    },
+    "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921": {
+        "mode": "implementation",
+        "display_name": "J6 host sensor real FAN/PTC formal UART1/2 diagnostic with PC replay from a real BMC capture",
+        "top_module": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top",
+        "source_prj": "td/uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.prj",
+        "build_subdir": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921",
+        "syn_script": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl",
+        "phy_script": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.tcl",
+        "bitstream": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921.bit",
+        "area_report": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_phy.area",
+        "timing_report": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_pr.timing",
+        "pin_profile": "formal-uart1-bmc-replay",
+        "bmc_source": "pc_replay_from_real_bmc_capture",
+        "tx_ball": "L10",
+        "rx_ball": "M9",
+        "host_uart_tx_ball": "M10",
+        "host_uart_rx_ball": "N11",
+        "debug_uart_rx_ball": "P15",
+        "debug_uart_tx_ball": "N14",
+        "host_uart_baud": 115200,
+        "bmc_uart_baud": 115200,
+        "debug_uart_baud": 921600,
+        "debug_uart_clks_per_bit": 27,
+        "live_bmc_link_status": "not_used",
+        "requires_verified_real_fan_ptc_pin_map": True,
+        "authority_boundary": "SRAM-only formal-uart1-bmc-replay diagnostic evidence. BMC replay uses reserved UART1 pins and host control uses reserved UART2 pins, with debug UART on SPARE_GPIO44/45 as TX=N14/RX=P15. It does not claim a live BMC link, UART1/2 hardware access, real thermal performance, production PTC/FAN qualification, flash, or PID closed-loop pass.",
+    },
 }
 TD_GENERATED_SUFFIXES = {
     ".area",

+ 110 - 18
tools/pin_inventory.py

@@ -40,6 +40,15 @@ FORMAL_UART_ASSIGNMENTS = {
     "debug_uart_tx": "N14",
 }
 
+FORMAL_UART1_BMC_REPLAY_ASSIGNMENTS = {
+    "bmc_uart_tx": "L10",
+    "bmc_uart_rx": "M9",
+    "host_uart_tx": "M10",
+    "host_uart_rx": "N11",
+    "debug_uart_rx": "P15",
+    "debug_uart_tx": "N14",
+}
+
 RESERVED_FUTURE_UART_SIGNALS = ["UART1_TX", "UART1_RX", "UART2_TX", "UART2_RX"]
 
 REQUIRED_IO_GROUPS = [
@@ -196,17 +205,35 @@ def _reserved_future_uart(inventory: dict[str, Any]) -> dict[str, dict[str, Any]
     return {name: _pin_ref(pins_by_signal.get(name), role="reserved_future_uart") for name in RESERVED_FUTURE_UART_SIGNALS}
 
 
-def _uart_assignment_rows(inventory: dict[str, Any], assignments: dict[str, str]) -> dict[str, dict[str, Any]]:
+def _uart_assignment_rows(
+    inventory: dict[str, Any],
+    assignments: dict[str, str],
+    *,
+    aliases: dict[str, str] | None = None,
+) -> dict[str, dict[str, Any]]:
     pins_by_ball = _pin_by_ball(inventory)
     rows: dict[str, dict[str, Any]] = {}
     for signal, ball in assignments.items():
         pin = pins_by_ball.get(ball)
         rows[signal] = _pin_ref(pin, role="uart")
         rows[signal]["fpga_ball"] = ball
+    for alias, signal in (aliases or {}).items():
+        if signal not in assignments:
+            continue
+        ball = assignments[signal]
+        pin = pins_by_ball.get(ball)
+        rows[alias] = _pin_ref(pin, role="uart")
+        rows[alias]["fpga_ball"] = ball
+        rows[alias]["hdl_signal"] = signal
     return rows
 
 
-def _ptc_substitution_rows(inventory: dict[str, Any], assignments: dict[str, str]) -> dict[str, dict[str, Any]]:
+def _ptc_substitution_rows(
+    inventory: dict[str, Any],
+    assignments: dict[str, str],
+    *,
+    reason: str = "temporary_uart_overlap_remap",
+) -> dict[str, dict[str, Any]]:
     real_assignments = real_fan_ptc_assignments(inventory)
     pins_by_ball = _pin_by_ball(inventory)
     rows: dict[str, dict[str, Any]] = {}
@@ -222,14 +249,20 @@ def _ptc_substitution_rows(inventory: dict[str, Any], assignments: dict[str, str
             "substitute_bank_io_net": subst["bank_io_net"],
             "active_ball": assignments.get(signal),
             "substitute_pin": _pin_ref(pins_by_ball.get(substitute_ball), role="HEAT_substitute"),
-            "reason": "temporary_uart_overlap_remap",
+            "reason": reason,
         }
     return rows
 
 
 def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> dict[str, Any]:
-    """Return complete board assignments for the active two diagnostic profiles."""
-    if profile not in {"temp-uart-ptc-remap", "formal-uart"}:
+    """Return complete board assignments for the active diagnostic profiles."""
+    supported_profiles = {
+        "temp-uart-ptc-remap",
+        "formal-uart",
+        "debug-photo-uart-bmc-replay",
+        "formal-uart1-bmc-replay",
+    }
+    if profile not in supported_profiles:
         return {
             "schema": "cpld-diagnostic-pin-profile-v1",
             "generated_at": utc_now(),
@@ -241,17 +274,43 @@ def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> d
         }
 
     assignments = real_fan_ptc_assignments(inventory)
-    if profile == "temp-uart-ptc-remap":
+    bmc_source = "live_bmc_j6_uart"
+    live_bmc_link_status = "used"
+    hardware_access_status = "not_run"
+    reserved_uart_use_policy = "reserved_unused"
+    uart_aliases: dict[str, str] = {}
+    allowed_reserved_balls: set[str] = set()
+    if profile in {"temp-uart-ptc-remap", "debug-photo-uart-bmc-replay"}:
         uart_assignments = dict(LOCKED_DEBUG_UART_ASSIGNMENTS)
         for item in TEMP_UART_PTC_REMAP_SUBSTITUTIONS.values():
             assignments[item["signal"]] = item["substitute_ball"]
-        ptc_substitutions = _ptc_substitution_rows(inventory, assignments)
-        hardware_status = "not_run"
-        boundary = (
-            "Temporary debug pin profile: current J6/COM7/COM8 UART wiring is kept, "
-            "and six overlapping HEAT/PTC channels are moved to verified spare GPIO for signal-level diagnostic use."
+        substitution_reason = (
+            "photo_visible_uart_overlap_remap"
+            if profile == "debug-photo-uart-bmc-replay"
+            else "temporary_uart_overlap_remap"
         )
-    else:
+        ptc_substitutions = _ptc_substitution_rows(inventory, assignments, reason=substitution_reason)
+        hardware_status = "not_run"
+        if profile == "debug-photo-uart-bmc-replay":
+            bmc_source = "pc_replay_from_real_bmc_capture"
+            live_bmc_link_status = "not_used"
+            hardware_access_status = "photo_visible_header"
+            uart_aliases = {
+                "bmc_replay_uart_tx": "bmc_uart_tx",
+                "bmc_replay_uart_rx": "bmc_uart_rx",
+            }
+            boundary = (
+                "BMC-replay debug-photo profile: photo-visible/current J6/COM7/COM8 UART wiring is kept, "
+                "the CPLD BMC UART talks to a PC poll-response replay emulator instead of a live BMC, "
+                "and six overlapping HEAT/PTC channels are moved to verified spare GPIO. "
+                "It is debug-only and does not claim full real HEAT pinout pass."
+            )
+        else:
+            boundary = (
+                "Temporary debug pin profile: current J6/COM7/COM8 UART wiring is kept, "
+                "and six overlapping HEAT/PTC channels are moved to verified spare GPIO for signal-level diagnostic use."
+            )
+    elif profile == "formal-uart":
         uart_assignments = dict(FORMAL_UART_ASSIGNMENTS)
         ptc_substitutions = {}
         hardware_status = "not_run"
@@ -259,8 +318,27 @@ def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> d
             "Formal debug pin profile: all HEAT/PTC/FAN/FG/INSTALL pins use the schematic mapping, "
             "and all three diagnostic UARTs move to verified spare GPIO; schematic UART1/2 are reserved unused."
         )
+    else:
+        uart_assignments = dict(FORMAL_UART1_BMC_REPLAY_ASSIGNMENTS)
+        ptc_substitutions = {}
+        hardware_status = "not_run"
+        bmc_source = "pc_replay_from_real_bmc_capture"
+        live_bmc_link_status = "not_used"
+        hardware_access_status = "blocked_waiting_for_uart1_uart2_access"
+        reserved_uart_use_policy = "intentional_uart1_uart2_bmc_replay_host"
+        uart_aliases = {
+            "bmc_replay_uart_tx": "bmc_uart_tx",
+            "bmc_replay_uart_rx": "bmc_uart_rx",
+        }
+        allowed_reserved_balls = {"L10", "M9", "M10", "N11"}
+        boundary = (
+            "BMC-replay formal-uart1 profile: HEAT/FAN/FG/INSTALL stay on the schematic pins, "
+            "BMC replay uses UART1 L10/M9, HostPort uses UART2 M10/N11, and DebugPort uses SPARE_GPIO44/45 "
+            "as TX=N14/RX=P15. "
+            "Photo evidence did not prove UART1/2 are physically accessible, so hardware access remains blocked until continuity/header access is verified."
+        )
     assignments.update(uart_assignments)
-    conflict = check_pin_conflicts(inventory, assignments)
+    conflict = check_pin_conflicts(inventory, assignments, allowed_reserved_balls=allowed_reserved_balls)
     reserved_future_uart = _reserved_future_uart(inventory)
     used_balls = {str(ball) for ball in assignments.values()}
     reserved_balls = {
@@ -270,9 +348,9 @@ def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> d
     }
     uses_reserved_future_uart = bool(used_balls & reserved_balls)
     errors = list(conflict.get("errors") or [])
-    if uses_reserved_future_uart:
+    if uses_reserved_future_uart and reserved_uart_use_policy != "intentional_uart1_uart2_bmc_replay_host":
         errors.append("uses_reserved_future_uart")
-    status = "pass" if conflict["status"] == "pass" and not uses_reserved_future_uart else "fail"
+    status = "pass" if conflict["status"] == "pass" and not errors else "fail"
     return {
         "schema": "cpld-diagnostic-pin-profile-v1",
         "generated_at": utc_now(),
@@ -280,10 +358,14 @@ def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> d
         "profile": profile,
         "status": status,
         "assignments": dict(sorted(assignments.items())),
-        "uart_assignments": _uart_assignment_rows(inventory, uart_assignments),
+        "uart_assignments": _uart_assignment_rows(inventory, uart_assignments, aliases=uart_aliases),
         "ptc_substitutions": ptc_substitutions,
         "reserved_future_uart": reserved_future_uart,
         "uses_reserved_future_uart": uses_reserved_future_uart,
+        "reserved_uart_use_policy": reserved_uart_use_policy,
+        "bmc_source": bmc_source,
+        "live_bmc_link_status": live_bmc_link_status,
+        "hardware_access_status": hardware_access_status,
         "real_fan_ptc_hardware_status": hardware_status,
         "conflict_check": conflict,
         "errors": sorted(set(errors)),
@@ -291,8 +373,14 @@ def diagnostic_profile_assignments(inventory: dict[str, Any], profile: str) -> d
     }
 
 
-def check_pin_conflicts(inventory: dict[str, Any], assignments: dict[str, str]) -> dict[str, Any]:
+def check_pin_conflicts(
+    inventory: dict[str, Any],
+    assignments: dict[str, str],
+    *,
+    allowed_reserved_balls: set[str] | None = None,
+) -> dict[str, Any]:
     pins = _pin_by_ball(inventory)
+    allowed_reserved_balls = allowed_reserved_balls or set()
     seen: dict[str, str] = {}
     errors: list[str] = []
     warnings: list[str] = []
@@ -309,7 +397,11 @@ def check_pin_conflicts(inventory: dict[str, Any], assignments: dict[str, str])
             assignment_rows.append({"signal": signal, "fpga_ball": ball_text, "status": "unknown_ball"})
             continue
         capabilities = set(pin.get("capability") or [])
-        if pin.get("reserved") or pin.get("role") not in {"user_io", "HEAT", "FAN_PWM", "FAN_FG", "FAN_INSTALL"} or "gpio" not in capabilities:
+        if (
+            (pin.get("reserved") and ball_text not in allowed_reserved_balls)
+            or pin.get("role") not in {"user_io", "HEAT", "FAN_PWM", "FAN_FG", "FAN_INSTALL"}
+            or "gpio" not in capabilities
+        ):
             errors.append(f"reserved_or_not_gpio:{ball_text}")
         if pin.get("manually_verified") is not True:
             warnings.append(f"unverified_pin:{ball_text}")

+ 22 - 0
tools/uart_receipts.py

@@ -219,6 +219,8 @@ REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_TOP_MODULE = (
 REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_TOP_MODULES_BY_PIN_PROFILE = {
     "temp-uart-ptc-remap": "uart_rs232_j6_host_sensor_real_fan_ptc_temp_uart_ptc_remap_debug921_top",
     "formal-uart": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart_debug921_top",
+    "debug-photo-uart-bmc-replay": "uart_rs232_j6_host_sensor_real_fan_ptc_debug_photo_uart_bmc_replay_debug921_top",
+    "formal-uart1-bmc-replay": "uart_rs232_j6_host_sensor_real_fan_ptc_formal_uart1_bmc_replay_debug921_top",
 }
 REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_PIN_PROFILES = {
     "temp-uart-ptc-remap": {
@@ -241,6 +243,26 @@ REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_ALLOWED_PIN_PROFILES = {
         "debug_rx_ball": "P15",
         "debug_tx_ball": "N14",
     },
+    "debug-photo-uart-bmc-replay": {
+        "tx_ball": "T4",
+        "rx_ball": "R5",
+        "bmc_tx_ball": "T4",
+        "bmc_rx_ball": "R5",
+        "host_tx_ball": "P7",
+        "host_rx_ball": "P8",
+        "debug_rx_ball": "P10",
+        "debug_tx_ball": "R10",
+    },
+    "formal-uart1-bmc-replay": {
+        "tx_ball": "L10",
+        "rx_ball": "M9",
+        "bmc_tx_ball": "L10",
+        "bmc_rx_ball": "M9",
+        "host_tx_ball": "M10",
+        "host_rx_ball": "N11",
+        "debug_rx_ball": "P15",
+        "debug_tx_ball": "N14",
+    },
 }
 REAL_BMC_J6_HOST_SENSOR_REAL_FAN_PTC_EXPECTED_COMMANDS = [
     "SET PTC 01 10",