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

feat(v3.2.0): V3.0 CON165 EPB1/SB1/SB2 pass-through, 4kHz 80% buzzer, BMC LUT reduction, board-viewer sync

Prod2U Recovery 6 дней назад
Родитель
Сommit
459d11c9c5
75 измененных файлов с 1901 добавлено и 936 удалено
  1. 1 1
      VERSION
  2. 17 7
      VERSION.json
  3. 83 18
      config/pin_inventory.fcb_fpga_mcu_v2_0.json
  4. 8 4
      constraints/prod2u_6400_v2.adc
  5. 35 8
      contracts/6400-v2-manual.yaml
  6. 14 4
      contracts/6400-v2-snapshot.yaml
  7. 5 5
      contracts/6400-v2-wire.yaml
  8. 5 1
      contracts/mrdimm-wire.yaml
  9. 11 5
      docs/evidence/6400-v2-electrical-alignment.md
  10. 1 1
      generated/6400-v2/channel-map.json
  11. 1 1
      generated/6400-v2/contract-sha256.txt
  12. 1 1
      generated/6400-v2/fan-control-parameters.json
  13. 1 1
      generated/6400-v2/golden-vectors.json
  14. 1 1
      generated/6400-v2/host-contract.json
  15. 1 1
      generated/6400-v2/manual-uart-contract.json
  16. 2 2
      generated/6400-v2/prod2u_6400_v2_params.vh
  17. 1 1
      generated/6400-v2/snapshot-layout.json
  18. 1 1
      generated/mrdimm/contract-sha256.txt
  19. 1 1
      generated/mrdimm/golden-vectors.json
  20. 1 1
      generated/mrdimm/prod2u_mrdimm_params.vh
  21. 1 1
      generated/mrdimm/snapshot-layout.json
  22. 62 19
      products/6400-v2/project.json
  23. 1 0
      products/6400-v2/source-closure.json
  24. 1 0
      products/mrdimm-chamber/source-closure.json
  25. BIN
      reference/original/schematics/6400高温罩电气图V3.0.pdf
  26. 1 0
      reference/original/schematics/6400高温罩电气图V3.0.pdf.sha256
  27. 71 114
      src/acquisition/bmc_ascii_poll.v
  28. 43 0
      src/actuator/buzzer_pwm_4khz.v
  29. 25 20
      src/control/m6400_transaction_core.v
  30. 1 1
      src/control/mrdimm_transaction_core.v
  31. 26 15
      src/telemetry/get_data_6400.v
  32. 3 1
      src/top/prod2u_6400_final_top.v
  33. 54 24
      src/top/prod2u_6400_v2_top.v
  34. 12 2
      src/top/prod2u_mrdimm_final_top.v
  35. 2 1
      tests/board_viewer/board-logic.test.mjs
  36. 45 14
      tests/board_viewer/current-wiring.test.mjs
  37. 1 1
      tests/board_viewer/fixtures/candidate_count_expectation.json
  38. 1 1
      tests/board_viewer/test_web_shell.py
  39. 83 0
      tests/sim/buzzer_pwm_4khz_tb.v
  40. 14 9
      tests/sim/full_chain_6400_v2_pty_e2e.py
  41. 1 0
      tests/sim/full_chain_pty_e2e.py
  42. 10 8
      tests/sim/prod2u_6400_v2_acquisition_tb.v
  43. 36 15
      tests/sim/prod2u_6400_v2_connector_tb.v
  44. 54 32
      tests/sim/prod2u_6400_v2_tb.v
  45. 13 3
      tests/sim/prod2u_mrdimm_final_e2e_tb.v
  46. 12 2
      tests/sim/prod2u_mrdimm_ttl_e2e_tb.v
  47. 36 18
      tests/sim/prod2u_v3_protocol_tb.v
  48. 25 7
      tests/sim/pty_6400_v2_bridge_tb.v
  49. 5 4
      tests/sim/pwm_commit_handshake_tb.v
  50. 50 16
      tests/unit/test_6400_v2_electrical_contract.py
  51. 6 2
      tests/unit/test_final_golden_frames.py
  52. 1 1
      tests/unit/test_gui_current_release.py
  53. 2 2
      tests/unit/test_gui_stress_current.py
  54. 25 11
      tests/unit/test_gui_v3_ssr_diagnostic.py
  55. 26 7
      tools/_vendor/prod2u_status.py
  56. 5 4
      tools/board-viewer/README.zh-CN.md
  57. 23 0
      tools/board-viewer/board_viewer/regression_v2.py
  58. 2 0
      tools/board-viewer/board_viewer/server.py
  59. 150 37
      tools/board-viewer/generate_v2_0_assets.py
  60. 528 363
      tools/board-viewer/generated-v2_0/board-data.json
  61. 11 7
      tools/board-viewer/generated-v2_0/build-info.json
  62. 1 1
      tools/board-viewer/generated-v2_0/import-report.json
  63. 3 3
      tools/board-viewer/generated-v2_0_fan/build-info.json
  64. 1 1
      tools/board-viewer/generated-v2_0_fan/import-report.json
  65. 115 21
      tools/board-viewer/web/board-logic.mjs
  66. 43 39
      tools/board-viewer/web/cpld-arch-data.mjs
  67. 9 4
      tools/generate_6400_manual.py
  68. 8 3
      tools/get_all.py
  69. 36 17
      tools/prod2u_gui.py
  70. 12 12
      tools/pwm_scope.py
  71. 1 1
      tools/run_6400_acquisition.py
  72. 9 3
      tools/run_6400_connector.py
  73. 1 1
      tools/stream_receiver.py
  74. 1 1
      tools/stress_test_35ptc_24h.py
  75. 2 2
      tools/thermal_test_server.py

+ 1 - 1
VERSION

@@ -1 +1 @@
-3.1.0
+3.2.0

+ 17 - 7
VERSION.json

@@ -1,6 +1,6 @@
 {
   "schema": "prod2u-version-v3",
-  "version": "3.1.0",
+  "version": "3.2.0",
   "release_branch": "dev",
   "clock_hz": 25000000,
   "host_baud": 921600,
@@ -12,6 +12,8 @@
   ],
   "bmc_baud": 115200,
   "pwm_hz": 20,
+  "buzzer_pwm_hz": 4000,
+  "buzzer_duty_percent": 80,
   "baud_selection": "fixed at build; GUI baud must match the selected BIT",
   "artifact_identity": "Actual commit, BIT/EXE SHA256, TD/test results live in release RUN.json and receipts; no fixed historical hashes here",
   "products": {
@@ -21,17 +23,23 @@
       "top_wrapper": "src/top/prod2u_6400_v2_top.v",
       "constraints": "constraints/prod2u_6400_v2.adc",
       "active_telemetry": true,
-      "autonomous_frame": "0x42 GET_DATA 88 bytes (hood_switch=0 on auto) + 0x52 diagnostic 20 bytes, nominal 1 second interval",
+      "autonomous_frame": "0x42 GET_DATA 90 bytes (EPB1/SB1/SB2=0 on auto) + 0x52 diagnostic 20 bytes, nominal 1 second interval",
       "set_payload_bytes": 36,
-      "get_payload_bytes": 88,
+      "get_payload_bytes": 90,
       "ptc_count": 24,
       "fan_count": 8,
       "ssr_count": 3,
       "ssr_pwm_hz": 20,
-      "hood_switch_ball": "F7",
-      "hood_switch_connector": "CON165.3",
+      "estop_btn_ball": "F8",
+      "estop_btn_connector": "CON165.10",
+      "hood_open_btn_ball": "C11",
+      "hood_open_btn_connector": "CON165.9",
+      "hood_close_btn_ball": "A11",
+      "hood_close_btn_connector": "CON165.8",
       "buzzer_ball": "H6",
-      "buzzer_connector": "CON146.1"
+      "buzzer_connector": "CON146.1",
+      "buzzer_pwm_hz": 4000,
+      "buzzer_duty_percent": 80
     },
     "mrdimm-chamber": {
       "board": "FCB V1.2",
@@ -49,7 +57,9 @@
       "hood_switch_ball": "L3",
       "hood_switch_connector": "CON140.3",
       "buzzer_ball": "H6",
-      "buzzer_connector": "CON146.1"
+      "buzzer_connector": "CON146.1",
+      "buzzer_pwm_hz": 4000,
+      "buzzer_duty_percent": 80
     }
   }
 }

+ 83 - 18
config/pin_inventory.fcb_fpga_mcu_v2_0.json

@@ -2,7 +2,7 @@
   "schema": "cpld-pin-inventory-v1",
   "board_id": "fcb_fpga_mcu_v2_0_20260914",
   "board_role": "6400_v2_0_active_interface_evidence",
-  "status": "brd_and_pdf_reviewed_20261023_physical_test_pending",
+  "status": "brd_and_v3_0_pdf_reviewed_v3_2_0_aligned",
   "clock_hz": 25000000,
   "clock_pin": "J1",
   "fpga_device": "EF2L45BG256B",
@@ -14,10 +14,16 @@
       "confidence": "confirmed_by_brd"
     },
     {
-      "kind": "schematic_pdf",
+      "kind": "schematic_pdf_v2_0",
       "path": "reference/original/schematics/6400高温罩电气图V2.0.pdf",
       "sha256": "a8309e680714a389c38ffdeefb2e6d11b8535d50feecdf4efd1f610e0c7fc42c",
-      "confidence": "confirmed_by_schematic"
+      "confidence": "historical_v2_0_schematic"
+    },
+    {
+      "kind": "schematic_pdf",
+      "path": "reference/original/schematics/6400高温罩电气图V3.0.pdf",
+      "sha256": "ec9b2e67710639451b8cac3979aa888f6347ef021135497054d134645743a4c1",
+      "confidence": "confirmed_by_v3_0_schematic"
     }
   ],
   "host_uart_con12_ttl": {
@@ -432,27 +438,27 @@
   },
   "ssr_control": {
     "ssr1": {
-      "connector": "CON165.1",
+      "connector": "CON165.14",
       "fpga_ball": "E14",
-      "state": "SET_ALL_PERCENT_500HZ_DEFAULT_ZERO",
-      "resistor_path": "R1698 -> PE14 -> R1860",
+      "state": "SET_ALL_PERCENT_20HZ_DEFAULT_ZERO",
+      "resistor_path": "CON_PE14 -> R1698(22R) -> PE14 -> R1860(0R) -> CPLD_GPIO64 -> U3.E14",
       "load": "-1-7E (110W/24V 辅助加热块)",
-      "pwm_hz": 500,
+      "pwm_hz": 20,
       "set_offset": 32,
       "get_offset": 83,
       "chambers": [
         1
       ],
       "cad_connector": "CON165.14",
-      "pin_number_basis": "field pin = 15 - CAD pin; user scope 2026-10-27"
+      "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
     },
     "ssr2": {
-      "connector": "CON165.2",
+      "connector": "CON165.13",
       "fpga_ball": "E8",
-      "state": "SET_ALL_PERCENT_500HZ_DEFAULT_ZERO",
-      "resistor_path": "R1695 -> PE13 -> R1859",
+      "state": "SET_ALL_PERCENT_20HZ_DEFAULT_ZERO",
+      "resistor_path": "CON_PE13 -> R1695(22R) -> PE13 -> R1859(0R) -> ADC0_CH7 -> U3.E8",
       "load": "-2-7E (220W/24V, chambers 2+3 shared heater cloth)",
-      "pwm_hz": 500,
+      "pwm_hz": 20,
       "set_offset": 33,
       "get_offset": 84,
       "chambers": [
@@ -460,22 +466,81 @@
         3
       ],
       "cad_connector": "CON165.13",
-      "pin_number_basis": "field pin = 15 - CAD pin; user scope 2026-10-27"
+      "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
     },
     "ssr4": {
-      "connector": "CON165.4",
+      "connector": "CON165.11",
       "fpga_ball": "D9",
-      "state": "SET_ALL_PERCENT_500HZ_DEFAULT_ZERO",
-      "resistor_path": "R1694 -> PE11 -> R1857",
+      "state": "SET_ALL_PERCENT_20HZ_DEFAULT_ZERO",
+      "resistor_path": "CON_PE11 -> R1694(22R) -> PE11 -> R1857(0R) -> ADC0_CH5 -> U3.D9",
       "load": "-4-7E (110W/24V 辅助加热块)",
-      "pwm_hz": 500,
+      "pwm_hz": 20,
       "set_offset": 34,
       "get_offset": 85,
       "chambers": [
         4
       ],
       "cad_connector": "CON165.11",
-      "pin_number_basis": "field pin = 15 - CAD pin; user scope 2026-10-27"
+      "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
     }
+  },
+  "button_inputs": {
+    "estop_btn": {
+      "designator": "EPB1",
+      "label": "急停按钮",
+      "connector": "CON165.10",
+      "schematic_io": "IO10",
+      "fpga_ball": "F8",
+      "resistor_path": "CON165.10 (CON_PE10) -> R1696(22R) -> PE10 -> R1856(0R) -> ADC0_CH0 -> U3.F8",
+      "external_pullup_nc": "R1724 (10K/NC)",
+      "io_standard": "LVCMOS33",
+      "pulltype": "PULLDOWN",
+      "get_offset": 86,
+      "sampled_only_on_get_all": true,
+      "cpld_interlock": false
+    },
+    "hood_open_btn": {
+      "designator": "SB1",
+      "label": "开罩按钮",
+      "connector": "CON165.9",
+      "schematic_io": "IO9",
+      "fpga_ball": "C11",
+      "resistor_path": "CON165.9 (CON_PE9) -> R1693(22R) -> PE9 -> R1855(0R) -> BANK0_GPIO2 -> U3.C11",
+      "external_pullup_nc": "R1717 (10K/NC)",
+      "io_standard": "LVCMOS33",
+      "pulltype": "PULLDOWN",
+      "get_offset": 87,
+      "sampled_only_on_get_all": true
+    },
+    "hood_close_btn": {
+      "designator": "SB2",
+      "label": "合罩按钮",
+      "connector": "CON165.8",
+      "schematic_io": "IO8",
+      "fpga_ball": "A11",
+      "resistor_path": "CON165.8 (CON_PE8) -> R1692(22R) -> PE8 -> R1854(0R) -> BANK0_GPIO1 -> U3.A11",
+      "external_pullup_nc": "R1723 (10K/NC)",
+      "io_standard": "LVCMOS33",
+      "pulltype": "PULLDOWN",
+      "get_offset": 88,
+      "sampled_only_on_get_all": true
+    },
+    "con165_pin12_status": "NC in V3.0 (empty pin; old temporary U3.F7 binding removed)"
+  },
+  "buzzer_output": {
+    "connector": "CON146.1",
+    "gnd_connector": "CON146.2",
+    "net": "KEYLED_V3",
+    "fpga_ball": "H6",
+    "resistor_path": "U3.H6 -> R1301(0R) -> SW_KEYLED3 -> R1297(220R) -> Q10621(2N7002) -> Q10620(HL2309 +24V via R1294) -> CON146.1 (KEYLED_V3)",
+    "external_level": "+24V high-side switched output (NOT TTL)",
+    "pwm_hz": 4000,
+    "duty_percent": 80,
+    "period_clks_25mhz": 6250,
+    "high_clks_25mhz": 5000,
+    "low_clks_25mhz": 1250,
+    "default_and_watchdog": 0,
+    "set_offset": 35,
+    "get_offset": 89
   }
 }

+ 8 - 4
constraints/prod2u_6400_v2.adc

@@ -21,7 +21,7 @@ set_pin_assignment { temp_sda } { LOCATION = A15; IOSTANDARD = LVCMOS33; PULLTYP
 set_pin_assignment { temp_scl_alt } { LOCATION = M8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { temp_sda_alt } { LOCATION = N9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 
-# Controlled SSR: 20 Hz; field CON165.1/.2/.4 = CAD .14/.13/.11 (2026-10-27)
+# Controlled SSR: 20 Hz; 6400高温罩电气图V3.0 Page 4 CON165.14/.13/.11 (CON165.12 NC)
 set_pin_assignment { ssr1_out } { LOCATION = E14; IOSTANDARD = LVCMOS33; }
 set_pin_assignment { ssr2_out } { LOCATION = E8; IOSTANDARD = LVCMOS33; }
 set_pin_assignment { ssr4_out } { LOCATION = D9; IOSTANDARD = LVCMOS33; }
@@ -96,6 +96,10 @@ set_pin_assignment { ssr_unused_zero[0] } { LOCATION = F3; IOSTANDARD = LVCMOS33
 set_pin_assignment { ssr_unused_zero[1] } { LOCATION = F1; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { ssr_unused_zero[2] } { LOCATION = G4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 
-# V3.1.0 Hood Open/Close Switch (CON165.3 / IO3, no external pullup, active-HIGH when pressed) & Buzzer (CON146.1 high-side 24V switch)
-set_pin_assignment { hood_switch_in } { LOCATION = F7; IOSTANDARD = LVCMOS33; PULLTYPE = PULLDOWN; }
-set_pin_assignment { buzzer_out }     { LOCATION = H6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+# V3.2.0 Button Inputs (6400高温罩电气图V3.0 Page 4/7; R1724/R1717/R1723 NC -> internal PULLDOWN; CON165.12 NC, F7 unbound)
+set_pin_assignment { estop_btn_in }      { LOCATION = F8;  IOSTANDARD = LVCMOS33; PULLTYPE = PULLDOWN; }  # EPB1 CON165.10 -> R1696/R1856 -> ADC0_CH0
+set_pin_assignment { hood_open_btn_in }  { LOCATION = C11; IOSTANDARD = LVCMOS33; PULLTYPE = PULLDOWN; }  # SB1  CON165.9  -> R1693/R1855 -> BANK0_GPIO2
+set_pin_assignment { hood_close_btn_in } { LOCATION = A11; IOSTANDARD = LVCMOS33; PULLTYPE = PULLDOWN; }  # SB2  CON165.8  -> R1692/R1854 -> BANK0_GPIO1
+
+# V3.2.0 Buzzer Output (CON146.1 KEYLED_V3 +24V high-side via R1301/R1297/Q10621/Q10620; 4000 Hz 80% duty when enabled)
+set_pin_assignment { buzzer_out }        { LOCATION = H6;  IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 35 - 8
contracts/6400-v2-manual.yaml

@@ -23,7 +23,7 @@ uart:
   nack_type: 192
   motor_done_type: 80
   set_all_payload_bytes: 36
-  get_data_payload_bytes: 88
+  get_data_payload_bytes: 90
   unlisted_types: UNSUPPORTED
   response_types_are_requests: UNSUPPORTED
 host_interfaces:
@@ -109,31 +109,58 @@ outputs:
     name: SSR1
     chambers:
     - 1
-    connector: CON165.1
+    connector: CON165.14
     ball: E14
   - index: 1
     name: SSR2
     chambers:
     - 2
     - 3
-    connector: CON165.2
+    connector: CON165.13
     ball: E8
   - index: 2
     name: SSR4
     chambers:
     - 4
-    connector: CON165.4
+    connector: CON165.11
     ball: D9
   buzzer_count: 1
   default_buzzer: 0
   buzzer_connector: CON146.1
   buzzer_ball: H6
   buzzer_active_level: high
+  buzzer_pwm_hz: 4000
+  buzzer_duty_percent: 80
+  buzzer_period_clks: 6250
+  buzzer_high_clks: 5000
 inputs:
-  hood_switch:
-    connector: CON165.3
-    cad_connector: CON165.12
-    ball: F7
+  estop_btn:
+    designator: EPB1
+    connector: CON165.10
+    net_chain: IO10/CON_PE10 -> R1696/R1856 -> ADC0_CH0
+    ball: F8
+    external_pullup: R1724_NC
+    active_level: high
+    default_unpressed: low
+    pulltype: PULLDOWN
+    sampled_only_on_get_all: true
+    cpld_interlock: false
+  hood_open_btn:
+    designator: SB1
+    connector: CON165.9
+    net_chain: IO9/CON_PE9 -> R1693/R1855 -> BANK0_GPIO2
+    ball: C11
+    external_pullup: R1717_NC
+    active_level: high
+    default_unpressed: low
+    pulltype: PULLDOWN
+    sampled_only_on_get_all: true
+  hood_close_btn:
+    designator: SB2
+    connector: CON165.8
+    net_chain: IO8/CON_PE8 -> R1692/R1854 -> BANK0_GPIO1
+    ball: A11
+    external_pullup: R1723_NC
     active_level: high
     default_unpressed: low
     pulltype: PULLDOWN

+ 14 - 4
contracts/6400-v2-snapshot.yaml

@@ -1,8 +1,8 @@
 schema: prod2u-6400-v2-get-data-v3
-note: '6400 V2 GET_DATA: 88 bytes (0..82 unchanged, 83..85 SSR1/2/4, 86 hood_switch sampled only on GET_ALL, 87 buzzer_state).'
+note: '6400 V2 GET_DATA: 90 bytes (0..82 unchanged, 83..85 SSR1/2/4, 86 estop_btn EPB1, 87 hood_open_btn SB1, 88 hood_close_btn SB2 sampled only on GET_ALL, 89 buzzer_state 4000Hz 80%).'
 byte_order: little
 payload_type: 66
-payload_length: 88
+payload_length: 90
 fields:
 - name: ptc_percent
   type: u8
@@ -38,7 +38,17 @@ fields:
   - SSR1_chamber1
   - SSR2_shared_chambers2_3
   - SSR4_chamber4
-- name: hood_switch
+- name: estop_btn
+  type: u8
+  count: 1
+  unit: bool
+  semantics: sampled_only_on_get_all_high_pressed_low_default_no_cpld_interlock
+- name: hood_open_btn
+  type: u8
+  count: 1
+  unit: bool
+  semantics: sampled_only_on_get_all_high_pressed_low_default
+- name: hood_close_btn
   type: u8
   count: 1
   unit: bool
@@ -47,7 +57,7 @@ fields:
   type: u8
   count: 1
   unit: bool
-  semantics: currently_effective_buzzer_output
+  semantics: currently_effective_buzzer_4khz_80pct_output
 temperature_encoding:
   representation: uint8_celsius
   valid_range:

+ 5 - 5
contracts/6400-v2-wire.yaml

@@ -29,7 +29,7 @@ length_width_bits: 8
 inter_byte_timeout_clks: 250000
 inter_byte_timeout_us: 10000
 max_request_payload_bytes: 128
-max_response_payload_bytes: 88
+max_response_payload_bytes: 90
 request_staging_bytes: 128
 rx_path:
   default_rx_fifo_bytes: 512
@@ -135,7 +135,7 @@ commands:
       minimum: 0
       maximum: 1
       unit: bool
-      note: MCU-controlled buzzer trigger (0=OFF, 1=ON) on CON146.1 (ball H6); cleared on reset/watchdog timeout. Legacy 35B SET_ALL defaults buzzer to 0.
+      note: 'MCU-controlled buzzer trigger (0=OFF, 1=ON 4000Hz 80% duty square wave: 6250 clks period, 5000 high, 1250 low @ 25MHz) on CON146.1 (ball H6); cleared LOW on reset/watchdog timeout. Legacy 35B SET_ALL defaults buzzer to 0.'
     fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
   GET_ALL:
     type: 2
@@ -167,15 +167,15 @@ responses:
     payload_length: 0_or_4
   AUTO_GET_DATA:
     type: 66
-    payload_length: 88
+    payload_length: 90
     autonomous: true
     period_ms: 1000
     feeds_watchdog: false
     payload_contract: 6400-v2-snapshot.yaml
-    note: Emitted when the transaction core is idle; no preceding GET_ACK; hood_switch byte 86 forced 0 on autonomous output (sampled only on GET_ALL)
+    note: Emitted when the transaction core is idle; no preceding GET_ACK; EPB1/SB1/SB2 button bytes 86..88 forced 0 on autonomous output (sampled only on GET_ALL)
   GET_DATA:
     type: 66
-    payload_length: 88
+    payload_length: 90
     payload_contract: 6400-v2-snapshot.yaml
   NACK:
     type: 192

+ 5 - 1
contracts/mrdimm-wire.yaml

@@ -135,7 +135,7 @@ responses:
   GET_ACK: {type: 0x82, payload_length: 0}
   HEARTBEAT_ACK: {type: 0x83, payload_length: 0_or_4}
   BEACON: {type: 0x51, payload_length: 0, autonomous: true, period_ms: 5000, feeds_watchdog: false, active_telemetry: "Legal A5 5A 51 00 81 20 frame; no ASCII banner; emitted when the transaction core is idle"}
-  DIAGNOSTIC: {type: 0x52, payload_length: 8, autonomous: true, period_ms: 5000, feeds_watchdog: false, format_version: 2, note: "Always-on lean debug frame emitted after BEACON: [0x02, 0x80, 3, 1, 0, flags, active_lo, active_hi]"}
+  DIAGNOSTIC: {type: 0x52, payload_length: 8, autonomous: true, period_ms: 5000, feeds_watchdog: false, format_version: 2, note: "Always-on lean debug frame emitted after BEACON: [0x02, 0x80, 3, 2, 0, flags, active_lo, active_hi]"}
   GET_DATA: {type: 0x42, payload_length: 65, payload_contract: mrdimm-status.yaml}
   MOTOR_DONE:
     type: 0x50
@@ -201,3 +201,7 @@ pwm:
   ptc_hz: 20
   phases: 100
   period_clks: 1250000
+  buzzer_hz: 4000
+  buzzer_duty_percent: 80
+  buzzer_period_clks: 6250
+  buzzer_high_clks: 5000

Разница между файлами не показана из-за своего большого размера
+ 11 - 5
docs/evidence/6400-v2-electrical-alignment.md


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/channel-map.json


+ 1 - 1
generated/6400-v2/contract-sha256.txt

@@ -1 +1 @@
-9d1031ae28ff5ad08b54a1e0f8b7b6e69192b064ea0ade8e884c182b1651b2c9
+141c54dd6903253897d6333032887359724778edc920f9a16047bf00d4120e5a

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/fan-control-parameters.json


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/golden-vectors.json


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/host-contract.json


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/manual-uart-contract.json


+ 2 - 2
generated/6400-v2/prod2u_6400_v2_params.vh

@@ -1,6 +1,6 @@
 `ifndef PROD2U_6400_V2_PARAMS_VH
 `define PROD2U_6400_V2_PARAMS_VH
-// Generated from raw manual/wire/snapshot/fan/channel-map contracts; SHA256 9d1031ae28ff5ad08b54a1e0f8b7b6e69192b064ea0ade8e884c182b1651b2c9
+// Generated from raw manual/wire/snapshot/fan/channel-map contracts; SHA256 141c54dd6903253897d6333032887359724778edc920f9a16047bf00d4120e5a
 `define FB_CLOCK_HZ 25000000
 `define FB_PTC_COUNT 24
 `define FB_FRONT_FAN_COUNT 4
@@ -32,7 +32,7 @@
 `define FB_NACK_QUEUE_FULL 8'd4
 `define FB_NACK_BUSY 8'd5
 `define FB_SET_ALL_BYTES 36
-`define FB_GET_DATA_BYTES 88
+`define FB_GET_DATA_BYTES 90
 `define FB_HOST_INTER_BYTE_TIMEOUT_CLKS 250000
 `define FB_HOST_BAUD_DIV 15625
 `define FB_HOST_BAUD_MUL 576

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/6400-v2/snapshot-layout.json


+ 1 - 1
generated/mrdimm/contract-sha256.txt

@@ -1 +1 @@
-28d63edce2852ebc74fd38e1378c79b61a0654240b40a11a5bf98474dba66b89
+ce1f5e525c179f1163694c10d0fce4e3a40d8f85f2f87e02dde9f3e65656b6a0

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/mrdimm/golden-vectors.json


+ 1 - 1
generated/mrdimm/prod2u_mrdimm_params.vh

@@ -1,6 +1,6 @@
 `ifndef PROD2U_MRDIMM_PARAMS_VH
 `define PROD2U_MRDIMM_PARAMS_VH
-// Generated from raw wire/status/project contracts; SHA256 28d63edce2852ebc74fd38e1378c79b61a0654240b40a11a5bf98474dba66b89
+// Generated from raw wire/status/project contracts; SHA256 ce1f5e525c179f1163694c10d0fce4e3a40d8f85f2f87e02dde9f3e65656b6a0
 `define MR_CLOCK_HZ 25000000
 `define MR_HOST_BAUD 921600
 `define MR_HOST_CLKS_PER_BIT 27

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
generated/mrdimm/snapshot-layout.json


+ 62 - 19
products/6400-v2/project.json

@@ -8,7 +8,7 @@
   "source_closure": "products/6400-v2/source-closure.json",
   "board_id": "fcb_fpga_mcu_v2_0_20260914",
   "board_evidence": "docs/evidence/6400-v2-electrical-alignment.md",
-  "board_evidence_sha256": "06a5951c2b203784404949348f8ce44518b1668430c36c2570dde2512f88b2cf",
+  "board_evidence_sha256": "0115660ec4de2bd7f11fce0d3364531260322486d50d1962b94c37d85a110176",
   "hardware_files": [
     {
       "role": "brd",
@@ -17,10 +17,16 @@
       "source": "native_cadence_allegro"
     },
     {
-      "role": "schematic_pdf",
+      "role": "schematic_pdf_v2_0",
       "path": "reference/original/schematics/6400高温罩电气图V2.0.pdf",
       "sha256": "a8309e680714a389c38ffdeefb2e6d11b8535d50feecdf4efd1f610e0c7fc42c",
       "source": "native_schematic"
+    },
+    {
+      "role": "schematic_pdf",
+      "path": "reference/original/schematics/6400高温罩电气图V3.0.pdf",
+      "sha256": "ec9b2e67710639451b8cac3979aa888f6347ef021135497054d134645743a4c1",
+      "source": "native_schematic_v3_0_authoritative"
     }
   ],
   "constraints": "constraints/prod2u_6400_v2.adc",
@@ -95,10 +101,10 @@
         "chambers": [
           1
         ],
-        "connector": "CON165.1",
+        "connector": "CON165.14",
         "ball": "E14",
         "cad_connector": "CON165.14",
-        "pin_number_basis": "field connector numbering confirmed by user scope on 2026-10-27; CAD pin = 15 - field pin"
+        "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
       },
       {
         "index": 1,
@@ -107,10 +113,10 @@
           2,
           3
         ],
-        "connector": "CON165.2",
+        "connector": "CON165.13",
         "ball": "E8",
         "cad_connector": "CON165.13",
-        "pin_number_basis": "field connector numbering confirmed by user scope on 2026-10-27; CAD pin = 15 - field pin"
+        "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
       },
       {
         "index": 2,
@@ -118,10 +124,10 @@
         "chambers": [
           4
         ],
-        "connector": "CON165.4",
+        "connector": "CON165.11",
         "ball": "D9",
         "cad_connector": "CON165.11",
-        "pin_number_basis": "field connector numbering confirmed by user scope on 2026-10-27; CAD pin = 15 - field pin"
+        "pin_number_basis": "6400高温罩电气图V3.0 Page 4 CON165 pinout matches FCB_FPGA+MCU_V2.0_20260914.brd directly"
       }
     ],
     "retired_zero_balls": [
@@ -137,23 +143,60 @@
     2
   ],
   "set_payload_bytes": 36,
-  "get_payload_bytes": 88,
-  "hood_switch": {
-    "connector": "CON165.3",
-    "cad_connector": "CON165.12",
-    "ball": "F7",
-    "active_level": "high",
-    "default_unpressed": "low",
-    "pulltype": "PULLDOWN",
-    "sampled_only_on_get_all": true,
-    "get_offset": 86
+  "get_payload_bytes": 90,
+  "buttons": {
+    "estop_btn": {
+      "designator": "EPB1",
+      "connector": "CON165.10",
+      "net_chain": "IO10 / CON_PE10 -> R1696/R1856 -> ADC0_CH0",
+      "ball": "F8",
+      "external_pullup_nc": "R1724",
+      "active_level": "high",
+      "default_unpressed": "low",
+      "pulltype": "PULLDOWN",
+      "sampled_only_on_get_all": true,
+      "cpld_interlock": false,
+      "get_offset": 86
+    },
+    "hood_open_btn": {
+      "designator": "SB1",
+      "connector": "CON165.9",
+      "net_chain": "IO9 / CON_PE9 -> R1693/R1855 -> BANK0_GPIO2",
+      "ball": "C11",
+      "external_pullup_nc": "R1717",
+      "active_level": "high",
+      "default_unpressed": "low",
+      "pulltype": "PULLDOWN",
+      "sampled_only_on_get_all": true,
+      "get_offset": 87
+    },
+    "hood_close_btn": {
+      "designator": "SB2",
+      "connector": "CON165.8",
+      "net_chain": "IO8 / CON_PE8 -> R1692/R1854 -> BANK0_GPIO1",
+      "ball": "A11",
+      "external_pullup_nc": "R1723",
+      "active_level": "high",
+      "default_unpressed": "low",
+      "pulltype": "PULLDOWN",
+      "sampled_only_on_get_all": true,
+      "get_offset": 88
+    },
+    "con165_pin12_status": "NC (empty in V3.0; old temporary F7 binding removed)"
   },
   "buzzer": {
     "connector": "CON146.1",
+    "gnd_connector": "CON146.2",
+    "net_chain": "U3.H6 -> R1301/R1297/Q10621/Q10620 -> KEYLED_V3 (+24V high-side)",
     "ball": "H6",
     "active_level": "high",
+    "pwm_hz": 4000,
+    "duty_percent": 80,
+    "period_clks_25mhz": 6250,
+    "high_clks_25mhz": 5000,
+    "low_clks_25mhz": 1250,
     "default": 0,
     "set_offset": 35,
-    "get_offset": 87
+    "get_offset": 89
   }
 }

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

@@ -25,6 +25,7 @@
     "src/control/watchdog_30s.v",
     "src/control/m6400_transaction_core.v",
     "src/actuator/ssr_time_proportion.v",
+    "src/actuator/buzzer_pwm_4khz.v",
     "src/actuator/pwm_bitmap_engine.v",
     "src/actuator/fan_board_output_adapter.v",
     "src/telemetry/get_data_6400.v",

+ 1 - 0
products/mrdimm-chamber/source-closure.json

@@ -34,6 +34,7 @@
     "src/control/watchdog_30s.v",
     "src/control/duty_register_bank.v",
     "src/actuator/pwm_bitmap_engine.v",
+    "src/actuator/buzzer_pwm_4khz.v",
     "src/acquisition/temp_ram.v",
     "src/acquisition/bmc_ascii_poll.v",
     "src/acquisition/ct7428_scan.v",

BIN
reference/original/schematics/6400高温罩电气图V3.0.pdf


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

@@ -0,0 +1 @@
+ec9b2e67710639451b8cac3979aa888f6347ef021135497054d134645743a4c1  6400高温罩电气图V3.0.pdf

+ 71 - 114
src/acquisition/bmc_ascii_poll.v

@@ -58,15 +58,17 @@ module bmc_ascii_poll #(
     assign raw_rx_valid = rx_valid;
     assign raw_rx_data  = rx_data;
 
-    localparam [2:0] ST_WAIT   = 3'd0;
-    localparam [2:0] ST_SEND   = 3'd1;
-    localparam [2:0] ST_DRAIN  = 3'd2;
-    localparam [2:0] ST_RECV   = 3'd3;
-    localparam [2:0] ST_COMMIT = 3'd4;
+    localparam [2:0] ST_WAIT         = 3'd0;
+    localparam [2:0] ST_SEND         = 3'd1;
+    localparam [2:0] ST_DRAIN        = 3'd2;
+    localparam [2:0] ST_RECV         = 3'd3;
+    localparam [2:0] ST_COMMIT       = 3'd4;
     localparam [2:0] ST_COMMIT_PRIME = 3'd5;
-    localparam [2:0] ST_COMMIT_READ = 3'd6;
+    localparam [2:0] ST_COMMIT_READ  = 3'd6;
+    localparam [2:0] ST_FLUSH        = 3'd7;
 
-    localparam [8*42-1:0] CMD_BASE = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03";
+    localparam [8*42-1:0] CMD_BASE     = "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03";
+    localparam [5:0]      COMMAND_LAST = 6'd42;
 
     localparam integer DRAIN_CLKS = ((CLOCK_HZ * 10) / 115200 > 2) ? ((CLOCK_HZ * 10) / 115200) : 2;
     localparam integer DRAIN_BITS = $clog2(DRAIN_CLKS + 1);
@@ -77,7 +79,6 @@ module bmc_ascii_poll #(
 
     reg [2:0] state;
     reg [5:0] command_index;
-    reg [5:0] command_last;
     reg [POLL_BITS-1:0]  poll_counter;
     reg [ROUND_BITS-1:0] round_counter;
     reg [DRAIN_BITS-1:0] drain_counter;
@@ -98,15 +99,15 @@ module bmc_ascii_poll #(
         .b_wdata(8'd0), .b_rdata(round_rdata)
     );
 
-    // Word accumulator & pair decoder
-    reg [3:0] cur_word_len;
+    // Word accumulator & pair decoder (len saturates at 3: only len==2 is valid)
+    reg [1:0] cur_word_len;
     reg       cur_word_hex;
     reg [7:0] cur_word_val;
     reg [5:0] pair_index;
     reg       pair_is_second;
     reg [7:0] temp_first_byte;
 
-    // Character indexing for command + fixed standard EOL
+    // Single shared command byte lookup (used once in ST_SEND)
     function [7:0] get_cmd_byte;
         input [5:0] idx;
         begin
@@ -118,76 +119,22 @@ module bmc_ascii_poll #(
         end
     endfunction
 
-    function is_delim;
-        input [7:0] val;
-        begin
-            is_delim = (val == " ") || (val == 8'h09) || (val == 8'h0D) || (val == 8'h0A);
-        end
-    endfunction
-
-    function is_hex;
-        input [7:0] val;
-        begin
-            is_hex = ((val >= "0") && (val <= "9")) ||
-                     ((val >= "a") && (val <= "f")) ||
-                     ((val >= "A") && (val <= "F"));
-        end
-    endfunction
-
-    function [3:0] hex_to_bin;
-        input [7:0] val;
-        begin
-            if (val <= "9")       hex_to_bin = val[3:0];
-            else if (val <= "F")  hex_to_bin = val[3:0] + 4'd9;
-            else                  hex_to_bin = val[3:0] + 4'd9;
-        end
-    endfunction
-
-    task process_rx_byte;
-        input [7:0] b;
-        begin
-            if (is_delim(b)) begin
-                if ((cur_word_len == 4'd2) && cur_word_hex) begin
-                    // Standalone 2-digit hex byte token
-                    if (!pair_is_second) begin
-                        temp_first_byte <= cur_word_val;
-                        pair_is_second <= 1'b1;
-                    end else begin
-                        pair_is_second <= 1'b0;
-                        if (pair_index < 6'd24) begin
-                            round_we <= 1'b1;
-                            round_waddr <= pair_index[4:0];
-                            if (temp_first_byte == 8'hff) begin
-                                round_wdata <= 8'hff; // empty DIMM slot
-                            end else if (temp_first_byte <= 8'd125) begin
-                                round_wdata <= temp_first_byte; // valid temperature reading
-                                valid_count <= valid_count + 1'b1;
-                            end else begin
-                                round_wdata <= 8'hff; // abnormal reading filtered
-                            end
-                            pair_index <= pair_index + 1'b1;
-                        end
-                    end
-                end
-                cur_word_len <= 4'd0;
-                cur_word_hex <= 1'b1;
-                cur_word_val <= 8'd0;
-            end else begin
-                if (cur_word_len < 4'd15) cur_word_len <= cur_word_len + 1'b1;
-                if (is_hex(b)) begin
-                    cur_word_val <= {cur_word_val[3:0], hex_to_bin(b)};
-                end else begin
-                    cur_word_hex <= 1'b0;
-                end
-            end
-        end
-    endtask
+    // Single shared RX byte feed (active in SEND/DRAIN/RECV, or synthetic LF in FLUSH)
+    wire       rx_active_state = (state == ST_SEND) || (state == ST_DRAIN) || (state == ST_RECV);
+    wire       rx_feed_en      = (rx_active_state && rx_valid) || (state == ST_FLUSH);
+    wire [7:0] rx_feed_byte    = (state == ST_FLUSH) ? 8'h0A : rx_data;
+    wire       rx_is_delim     = (rx_feed_byte == " ") || (rx_feed_byte == 8'h09) ||
+                                 (rx_feed_byte == 8'h0D) || (rx_feed_byte == 8'h0A);
+    wire       rx_is_digit     = (rx_feed_byte[7:4] == 4'h3) && (rx_feed_byte[3:0] <= 4'd9);
+    wire       rx_is_alpha_hex = ({rx_feed_byte[7:6], rx_feed_byte[4]} == 3'b010) &&
+                                 (rx_feed_byte[3:0] >= 4'd1) && (rx_feed_byte[3:0] <= 4'd6);
+    wire       rx_is_hex       = rx_is_digit || rx_is_alpha_hex;
+    wire [3:0] rx_hex_nibble   = rx_feed_byte[6] ? (rx_feed_byte[3:0] + 4'd9) : rx_feed_byte[3:0];
 
     always @(posedge clk or negedge rst_n) begin
         if (!rst_n) begin
             state           <= ST_WAIT;
             command_index   <= 6'd0;
-            command_last    <= 6'd42;
             poll_counter    <= {POLL_BITS{1'b0}};
             round_counter   <= {ROUND_BITS{1'b0}};
             drain_counter   <= {DRAIN_BITS{1'b0}};
@@ -201,7 +148,7 @@ module bmc_ascii_poll #(
             poll_start      <= 1'b0;
             poll_done       <= 1'b0;
             valid_count     <= 5'd0;
-            cur_word_len    <= 4'd0;
+            cur_word_len    <= 2'd0;
             cur_word_hex    <= 1'b1;
             cur_word_val    <= 8'd0;
             pair_index      <= 6'd0;
@@ -217,16 +164,50 @@ module bmc_ascii_poll #(
             poll_start <= 1'b0;
             poll_done  <= 1'b0;
 
+            // Single shared RX token/pair parser (replaces 4 duplicated copies)
+            if (rx_feed_en) begin
+                if (rx_is_delim) begin
+                    if ((cur_word_len == 2'd2) && cur_word_hex) begin
+                        if (!pair_is_second) begin
+                            temp_first_byte <= cur_word_val;
+                            pair_is_second  <= 1'b1;
+                        end else begin
+                            pair_is_second <= 1'b0;
+                            if (pair_index < 6'd24) begin
+                                round_we    <= 1'b1;
+                                round_waddr <= pair_index[4:0];
+                                if (temp_first_byte <= 8'd125) begin
+                                    round_wdata <= temp_first_byte;
+                                    valid_count <= valid_count + 1'b1;
+                                end else begin
+                                    round_wdata <= 8'hff;
+                                end
+                                pair_index <= pair_index + 1'b1;
+                            end
+                        end
+                    end
+                    cur_word_len <= 2'd0;
+                    cur_word_hex <= 1'b1;
+                    cur_word_val <= 8'd0;
+                end else begin
+                    if (cur_word_len != 2'd3) cur_word_len <= cur_word_len + 2'd1;
+                    if (rx_is_hex) begin
+                        cur_word_val <= {cur_word_val[3:0], rx_hex_nibble};
+                    end else begin
+                        cur_word_hex <= 1'b0;
+                    end
+                end
+            end
+
             case (state)
             ST_WAIT: begin
                 tx_valid <= 1'b0;
                 if (poll_counter + 1'b1 >= POLL_CLKS[POLL_BITS-1:0]) begin
                     poll_counter    <= {POLL_BITS{1'b0}};
                     command_index   <= 6'd0;
-                    command_last    <= 6'd42;
                     round_counter   <= {ROUND_BITS{1'b0}};
                     drain_counter   <= {DRAIN_BITS{1'b0}};
-                    cur_word_len    <= 4'd0;
+                    cur_word_len    <= 2'd0;
                     cur_word_hex    <= 1'b1;
                     cur_word_val    <= 8'd0;
                     pair_index      <= 6'd0;
@@ -243,25 +224,20 @@ module bmc_ascii_poll #(
             ST_SEND: begin
                 round_counter <= {ROUND_BITS{1'b0}};
                 drain_counter <= {DRAIN_BITS{1'b0}};
-                if (rx_valid) process_rx_byte(rx_data);
-
                 if (!tx_valid) begin
                     tx_valid <= 1'b1;
                     tx_data  <= get_cmd_byte(command_index);
                 end else if (tx_ready) begin
-                    if (command_index >= command_last) begin
-                        tx_valid <= 1'b0;
-                        state    <= ST_DRAIN;
+                    tx_valid <= 1'b0;
+                    if (command_index >= COMMAND_LAST) begin
+                        state <= ST_DRAIN;
                     end else begin
                         command_index <= command_index + 1'b1;
-                        tx_data       <= get_cmd_byte(command_index + 1'b1);
                     end
                 end
             end
 
             ST_DRAIN: begin
-                if (rx_valid) process_rx_byte(rx_data);
-
                 if (drain_counter + 1'b1 >= DRAIN_CLKS[DRAIN_BITS-1:0]) begin
                     drain_counter <= {DRAIN_BITS{1'b0}};
                     round_counter <= {ROUND_BITS{1'b0}};
@@ -272,39 +248,20 @@ module bmc_ascii_poll #(
             end
 
             ST_RECV: begin
-                if (rx_valid) process_rx_byte(rx_data);
-
                 if (round_counter + 1'b1 >= ROUND_TIMEOUT_CLKS[ROUND_BITS-1:0]) begin
-                    // Timeout hit: flush any pending trailing token
-                    if ((cur_word_len == 4'd2) && cur_word_hex) begin
-                        if (!pair_is_second) begin
-                            temp_first_byte <= cur_word_val;
-                            pair_is_second <= 1'b1;
-                        end else begin
-                            pair_is_second <= 1'b0;
-                            if (pair_index < 6'd24) begin
-                                round_we <= 1'b1;
-                                round_waddr <= pair_index[4:0];
-                                if (temp_first_byte == 8'hff) begin
-                                    round_wdata <= 8'hff;
-                                end else if (temp_first_byte <= 8'd125) begin
-                                    round_wdata <= temp_first_byte;
-                                    valid_count <= valid_count + 1'b1;
-                                end else begin
-                                    round_wdata <= 8'hff;
-                                end
-                                pair_index <= pair_index + 1'b1;
-                            end
-                        end
-                    end
-                    commit_index <= 5'd0;
-                    state        <= ST_COMMIT_PRIME;
+                    state <= ST_FLUSH;
                 end else begin
                     round_counter <= round_counter + 1'b1;
                 end
             end
 
-            // The timeout may have queued the last pair write. Let that
+            // Flush any trailing unterminated 2-hex token via the shared RX parser.
+            ST_FLUSH: begin
+                commit_index <= 5'd0;
+                state        <= ST_COMMIT_PRIME;
+            end
+
+            // The flush may have queued the last pair write. Let that
             // registered write reach RAM, then wait for its synchronous read.
             ST_COMMIT_PRIME: state <= ST_COMMIT_READ;
             ST_COMMIT_READ: state <= ST_COMMIT;

+ 43 - 0
src/actuator/buzzer_pwm_4khz.v

@@ -0,0 +1,43 @@
+`timescale 1ns/1ps
+
+// =============================================================================
+// Buzzer 4000 Hz / 80% Duty Square-Wave Generator (25 MHz single clock domain)
+//
+// At 25 MHz:
+//   - Period = 6250 clocks (250 us -> 4000 Hz)
+//   - High   = 5000 clocks (200 us -> 80% duty)
+//   - Low    = 1250 clocks ( 50 us -> 20% duty)
+// When disabled (enable == 0), in reset (!rst_n), or after watchdog timeout,
+// the output is held strictly LOW (1'b0) and the phase counter resets to 0.
+// =============================================================================
+module buzzer_pwm_4khz #(
+    parameter integer PERIOD_CLKS = 6250,
+    parameter integer HIGH_CLKS   = 5000
+) (
+    input  wire clk,
+    input  wire rst_n,
+    input  wire enable,
+    output reg  buzzer_out
+);
+    localparam integer CNT_W = $clog2(PERIOD_CLKS);
+    localparam [CNT_W-1:0] PERIOD_LAST = PERIOD_CLKS - 1;
+    localparam [CNT_W-1:0] HIGH_LIMIT  = HIGH_CLKS;
+
+    reg [CNT_W-1:0] cnt;
+
+    always @(posedge clk or negedge rst_n) begin
+        if (!rst_n) begin
+            cnt        <= {CNT_W{1'b0}};
+            buzzer_out <= 1'b0;
+        end else if (!enable) begin
+            cnt        <= {CNT_W{1'b0}};
+            buzzer_out <= 1'b0;
+        end else begin
+            buzzer_out <= (cnt < HIGH_LIMIT);
+            if (cnt == PERIOD_LAST)
+                cnt <= {CNT_W{1'b0}};
+            else
+                cnt <= cnt + {{(CNT_W-1){1'b0}}, 1'b1};
+        end
+    end
+endmodule

+ 25 - 20
src/control/m6400_transaction_core.v

@@ -60,8 +60,10 @@ module m6400_transaction_core #(
     output reg          wd_arm,
     output reg          wd_reload,
     input  wire         wd_expired,
-    // Minimal V2 extra IO: active-HIGH hood switch (sampled on GET_ALL only) & buzzer output
-    input  wire         hood_switch_sync,
+    // V2 extra IO: active-HIGH button inputs (sampled on GET_ALL only, no safety interlock) & buzzer trigger
+    input  wire         estop_btn_sync,
+    input  wire         hood_open_btn_sync,
+    input  wire         hood_close_btn_sync,
     output reg          buzzer_ctrl_out
 );
     localparam [3:0] ST_IDLE         = 4'd0;
@@ -77,7 +79,7 @@ module m6400_transaction_core #(
     localparam [3:0] ST_AUTO_GD_WAIT = 4'd10;
     localparam [3:0] ST_DIAG_WRITE   = 4'd11;
 
-    localparam integer EXTRA_BYTES = (EXTRA_IO_ENABLE != 0) ? 2 : 0;
+    localparam integer EXTRA_BYTES = (EXTRA_IO_ENABLE != 0) ? 4 : 0;
     localparam integer TOTAL_COUNT = DUTY_COUNT + BMC_COUNT + CT_COUNT + EXTRA_BYTES;
     localparam [7:0]   SET_EXT_LEN = DUTY_COUNT[7:0] + 8'd1;
 
@@ -90,7 +92,7 @@ module m6400_transaction_core #(
     reg [7:0]   nack_reason;
     reg         stage_buzzer;
     reg         gd_start_r;
-    reg         gd_sample_hood;
+    reg         gd_sample_buttons;
     wire        gd_ready;
 
     reg [31:0]  beacon_cnt;
@@ -110,7 +112,10 @@ module m6400_transaction_core #(
         .start(gd_start_r), .ready(gd_ready),
         .bank_addr(gd_bank_addr), .bank_duty(gd_bank_duty),
         .temp_addr(gd_temp_addr), .temp_data(gd_temp_data), .temp_valid(gd_temp_valid),
-        .sample_hood(gd_sample_hood), .hood_switch(hood_switch_sync),
+        .sample_buttons(gd_sample_buttons),
+        .estop_btn(estop_btn_sync),
+        .hood_open_btn(hood_open_btn_sync),
+        .hood_close_btn(hood_close_btn_sync),
         .buzzer_active(buzzer_ctrl_out),
         .reply_we(gd_reply_we), .reply_addr(gd_reply_addr), .reply_data(gd_reply_data)
     );
@@ -127,8 +132,8 @@ module m6400_transaction_core #(
             stage_addr       <= 6'd0;
             stage_data       <= 8'd0;
             commit_req       <= 1'b0;
-            gd_start_r       <= 1'b0;
-            gd_sample_hood   <= 1'b0;
+            gd_start_r        <= 1'b0;
+            gd_sample_buttons <= 1'b0;
             group_valid      <= 1'b0;
             group_second     <= 1'b0;
             group_type       <= 8'd0;
@@ -198,9 +203,9 @@ module m6400_transaction_core #(
                                 nack_reason <= 8'd02;
                                 state       <= ST_NACK0;
                             end else begin
-                                gd_sample_hood <= 1'b1;
-                                gd_start_r     <= 1'b1;
-                                state          <= ST_GET_WAIT;
+                                gd_sample_buttons <= 1'b1;
+                                gd_start_r        <= 1'b1;
+                                state             <= ST_GET_WAIT;
                             end
                         end else if (req_type == 8'h03) begin
                             if (req_length != 8'd0 && req_length != 8'd4) begin
@@ -229,13 +234,13 @@ module m6400_transaction_core #(
                         end
                     end else if (beacon_trigger) begin
                         // Autonomous periodic debug/telemetry broadcast (never feeds watchdog,
-                        // and NEVER samples/reports hood_switch autonomously).
-                        beacon_cnt     <= 32'd0;
-                        beacon_trigger <= 1'b0;
-                        req_ready      <= 1'b0;
-                        gd_sample_hood <= 1'b0;
-                        gd_start_r     <= 1'b1;
-                        state          <= ST_AUTO_GD_WAIT;
+                        // and NEVER samples/reports EPB1/SB1/SB2 button states autonomously).
+                        beacon_cnt        <= 32'd0;
+                        beacon_trigger    <= 1'b0;
+                        req_ready         <= 1'b0;
+                        gd_sample_buttons <= 1'b0;
+                        gd_start_r        <= 1'b1;
+                        state             <= ST_AUTO_GD_WAIT;
                     end
                 end
                 ST_STAGE_PRE: begin
@@ -315,8 +320,8 @@ module m6400_transaction_core #(
                     end
                 end
                 ST_DIAG_WRITE: begin
-                    // Reply RAM bytes 96..115 (separate from GET bytes 0..87).
-                    // Bytes 0..4 are constant identity (format=1, board=0x64, fw=3.1.0);
+                    // Reply RAM bytes 96..115 (separate from GET bytes 0..89).
+                    // Bytes 0..4 are constant identity (format=1, board=0x64, fw=3.2.0);
                     // bytes 5..19 shift from the 120-bit dynamic snapshot.
                     nack_we   <= 1'b1;
                     nack_addr <= 8'd96 + wr_index;
@@ -324,7 +329,7 @@ module m6400_transaction_core #(
                         8'd0: nack_data <= 8'd1;
                         8'd1: nack_data <= 8'h64;
                         8'd2: nack_data <= 8'd3;
-                        8'd3: nack_data <= 8'd1;
+                        8'd3: nack_data <= 8'd2;
                         8'd4: nack_data <= 8'd0;
                         default: begin
                             nack_data        <= diagnostic_shift[7:0];

+ 1 - 1
src/control/mrdimm_transaction_core.v

@@ -462,7 +462,7 @@ module mrdimm_transaction_core #(
                             3'd0: nack_reply_data <= 8'd2;   // format 2 = MRDIMM lean diag
                             3'd1: nack_reply_data <= 8'h80;  // board_id = MRDIMM/8000
                             3'd2: nack_reply_data <= 8'd3;   // fw major = 3
-                            3'd3: nack_reply_data <= 8'd1;   // fw minor = 1
+                            3'd3: nack_reply_data <= 8'd2;   // fw minor = 2
                             3'd4: nack_reply_data <= 8'd0;   // fw patch = 0
                             3'd5: nack_reply_data <= diag_flags;
                             3'd6: nack_reply_data <= diag_motor_active[7:0];

+ 26 - 15
src/telemetry/get_data_6400.v

@@ -5,11 +5,13 @@
 // Layout:
 //   - 6400 V1.1 (EXTRA_IO_ENABLE=0, DUTY_COUNT=32): 83 bytes
 //       0..23 PTC, 24..27 Front, 28..31 Rear, 32..55 BMC24, 56..82 CT27.
-//   - 6400 V2.0 (EXTRA_IO_ENABLE=1, DUTY_COUNT=35): 88 bytes
+//   - 6400 V2.0 (EXTRA_IO_ENABLE=1, DUTY_COUNT=35): 90 bytes (v3.2.0, V3.0 schematic)
 //       0..23 PTC, 24..27 Front, 28..31 Rear, 32..55 BMC24, 56..82 CT27 (CT9..26=0xFF),
 //       83..85 SSR1/2/4,
-//       86     hood_switch (1=pressed/HIGH, 0=released/LOW; sampled ONLY when sample_hood=1 on GET_ALL),
-//       87     buzzer_state (1=ON, 0=OFF).
+//       86     estop_btn      (EPB1, CON165.10 / U3.F8,  GET_ALL only, 0x00/0x01),
+//       87     hood_open_btn  (SB1,  CON165.9  / U3.C11, GET_ALL only, 0x00/0x01),
+//       88     hood_close_btn (SB2,  CON165.8  / U3.A11, GET_ALL only, 0x00/0x01),
+//       89     buzzer_state   (CON146.1 / U3.H6, 4000 Hz 80% duty when 0x01, 0x00 when OFF).
 module get_data_6400 #(
     parameter integer DUTY_COUNT = 32,
     parameter integer DUTY_PREFIX_COUNT = DUTY_COUNT,
@@ -28,9 +30,11 @@ module get_data_6400 #(
     output reg [5:0]  temp_addr,
     input  wire [7:0] temp_data,
     input  wire       temp_valid,
-    // V2.0 minimal extra IO telemetry (sampled on GET_ALL only for hood_switch)
-    input  wire       sample_hood,
-    input  wire       hood_switch,
+    // V2.0 extra IO telemetry (buttons sampled ONLY when sample_buttons=1 on GET_ALL)
+    input  wire       sample_buttons,
+    input  wire       estop_btn,
+    input  wire       hood_open_btn,
+    input  wire       hood_close_btn,
     input  wire       buzzer_active,
     // reply staging
     output reg        reply_we,
@@ -148,16 +152,23 @@ module get_data_6400 #(
                     endcase
                 end
                 ST_EXTRA: begin
-                    // Serial write of byte 86 (hood_switch, GET_ALL only) & byte 87 (buzzer_state).
-                    reply_we <= 1'b1;
-                    if (phase == 2'd0) begin
-                        reply_addr <= EXTRA_BASE[7:0];
-                        reply_data <= {7'd0, sample_hood & hood_switch};
-                        phase      <= 2'd1;
+                    // Serial write of bytes 86..89:
+                    //   86: estop_btn      (EPB1, GET_ALL only)
+                    //   87: hood_open_btn  (SB1,  GET_ALL only)
+                    //   88: hood_close_btn (SB2,  GET_ALL only)
+                    //   89: buzzer_state   (MCU trigger state)
+                    reply_we   <= 1'b1;
+                    reply_addr <= EXTRA_BASE[7:0] + {6'd0, phase};
+                    case (phase)
+                        2'd0:    reply_data <= {7'd0, sample_buttons & estop_btn};
+                        2'd1:    reply_data <= {7'd0, sample_buttons & hood_open_btn};
+                        2'd2:    reply_data <= {7'd0, sample_buttons & hood_close_btn};
+                        default: reply_data <= {7'd0, buzzer_active};
+                    endcase
+                    if (phase == 2'd3) begin
+                        state <= ST_DONE;
                     end else begin
-                        reply_addr <= EXTRA_BASE[7:0] + 8'd1;
-                        reply_data <= {7'd0, buzzer_active};
-                        state      <= ST_DONE;
+                        phase <= phase + 2'd1;
                     end
                 end
                 ST_DONE: begin

+ 3 - 1
src/top/prod2u_6400_final_top.v

@@ -280,7 +280,9 @@ module prod2u_6400_final_top (
         .nack_we(nack_we), .nack_addr(nack_addr), .nack_data(nack_data),
         .wd_arm(wd_arm), .wd_reload(wd_reload),
         .wd_expired(duty_invalidate),
-        .hood_switch_sync(1'b0),
+        .estop_btn_sync(1'b0),
+        .hood_open_btn_sync(1'b0),
+        .hood_close_btn_sync(1'b0),
         .buzzer_ctrl_out()
     );
     // The core raises get_busy while a GET group is being assembled; that flag

+ 54 - 24
src/top/prod2u_6400_v2_top.v

@@ -1,31 +1,38 @@
 `timescale 1ns/1ps
 `include "src/common/prod2u_build_config.vh"
 
-// 6400 V2.0 Top Module (FCB_FPGA+MCU_V2.0_20260914.brd & 温控板测试V2.0电气图)
+// 6400 V2.0 Top Module (FCB_FPGA+MCU_V2.0_20260914.brd & 6400高温罩电气图V3.0.pdf)
 //
-// Lean v3.1.0 architecture:
+// Lean v3.2.0 architecture:
 // 1. Host TTL (CON12: J4 RX, K2 TX) + RS232 (CON134: R13 RX, T14 TX) on shared
 //    host_uart_endpoint with byte-level RX claim & independent RX/TX CRCs.
 // 2. BMC RS232 on CON77 (M9 RX, L10 TX) at 115200 8N1 (optional).
 // 3. Single CT7428 U6 (0x49) sensor scan on B14/A15 (M8/N9 Hi-Z), 9 channels
 //    (local + 8 remote), CT9..26 fixed 0xFF.
 // 4. Unified 20 Hz PWM across all 24 PTC, 8 FAN (4 intake + 4 exhaust,
-//    FAN_BOARD_INVERT_MASK=8'hFF), and 3 SSR (SSR1/SSR2/SSR4 on CON165.1/.2/.4
-//    sharing u_pwm's free-running 20 Hz phase counter; retired F3/F1/G4 clamped 0).
-// 5. Minimal hood-switch detection & MCU buzzer control (no complex interlocks):
-//    - hood_switch_in (CON165.3 / F7, active-HIGH when pressed, default LOW/0):
-//      sampled ONLY on GET_ALL (byte 86 of 88B GET_DATA), never auto-reported.
-//    - buzzer_out (CON146.1 / H6, active-HIGH 24V high-side switch): controlled
-//      directly by MCU via SET_ALL byte 35 (36B canonical; legacy 35B sets 0);
-//      cleared to 0 on reset / 30s watchdog timeout; read back in GET_DATA byte 87.
+//    FAN_BOARD_INVERT_MASK=8'hFF), and 3 SSR (SSR1/SSR2/SSR4 on CON165.14/.13/.11
+//    -> U3.E14/E8/D9 sharing u_pwm's 20 Hz phase; CON165.12 NC; retired F3/F1/G4 low).
+// 5. V3.0 button pass-through & 4000 Hz 80% buzzer (no complex interlocks):
+//    - estop_btn_in      (EPB1, CON165.10 / U3.F8,  PULLDOWN, GET_DATA byte 86)
+//    - hood_open_btn_in  (SB1,  CON165.9  / U3.C11, PULLDOWN, GET_DATA byte 87)
+//    - hood_close_btn_in (SB2,  CON165.8  / U3.A11, PULLDOWN, GET_DATA byte 88)
+//      Sampled ONLY on GET_ALL (90B GET_DATA), never auto-reported; EPB1 has NO
+//      CPLD interlock (external hardware disables open/close directly).
+//    - buzzer_out (CON146.1 / U3.H6, +24V high-side via Q10621/Q10620):
+//      SET_ALL byte 35 (36B canonical; legacy 35B sets 0); outputs 4000 Hz 80%
+//      duty square wave (6250 clks period, 5000 high, 1250 low @ 25 MHz) when
+//      0x01; held LOW when 0x00, on reset, or on 30s watchdog timeout; read
+//      back in GET_DATA byte 89.
 // 6. Always-on lightweight passive debug output every 1s (0x42 + 0x52, never
-//    feeds watchdog, never reports hood_switch).
+//    feeds watchdog, never reports button inputs).
 module prod2u_6400_v2_top #(
     parameter integer HOST_BAUD = `PROD2U_HOST_BAUD,
     parameter [7:0] FAN_BOARD_INVERT_MASK = 8'hFF,
     parameter integer WD_TIMEOUT_CLKS = 750000000,
     parameter integer SSR_PHASE_CLKS = 12500,
-    parameter integer PWM_PHASE_CLKS = 12500
+    parameter integer PWM_PHASE_CLKS = 12500,
+    parameter integer BUZZER_PERIOD_CLKS = 6250,
+    parameter integer BUZZER_HIGH_CLKS = 5000
 ) (
     input  wire        sys_clk,
     input  wire        host_ttl_rx,
@@ -46,7 +53,9 @@ module prod2u_6400_v2_top #(
     output wire        ssr4_out,
     output wire [2:0]  ssr_unused_zero,
     output wire [10:0] ptc_spare_zero,
-    input  wire        hood_switch_in,
+    input  wire        estop_btn_in,
+    input  wire        hood_open_btn_in,
+    input  wire        hood_close_btn_in,
     output wire        buzzer_out
 );
     wire sys_rst_n;
@@ -283,24 +292,43 @@ module prod2u_6400_v2_top #(
         .rd_addr(gd_temp_addr), .rd_data(gd_temp_data), .rd_valid(gd_temp_valid)
     );
 
-    // ---------- Minimal Hood Switch Input (active-HIGH, default LOW/0) ----------
-    // Synchronous-reset 2-FF synchronizer (safe on EF2, defaults strictly LOW).
-    wire hood_switch_raw = (hood_switch_in === 1'b1) ? 1'b1 : 1'b0;
-    reg [1:0] hood_switch_sync_pipe;
+    // ---------- V3.0 Button Inputs (active-HIGH, default LOW/0 via PULLDOWN) ----------
+    // CON165.10 (EPB1 -> U3.F8), CON165.9 (SB1 -> U3.C11), CON165.8 (SB2 -> U3.A11).
+    // Synchronous-reset 2-FF synchronizers (EF2-safe, default strictly LOW, no interlock).
+    wire [2:0] btn_raw = {
+        (hood_close_btn_in === 1'b1) ? 1'b1 : 1'b0,
+        (hood_open_btn_in  === 1'b1) ? 1'b1 : 1'b0,
+        (estop_btn_in      === 1'b1) ? 1'b1 : 1'b0
+    };
+    reg [2:0] btn_sync_s0;
+    reg [2:0] btn_sync_s1;
     always @(posedge sys_clk) begin
-        if (!sys_rst_n)
-            hood_switch_sync_pipe <= 2'b00;
-        else
-            hood_switch_sync_pipe <= {hood_switch_sync_pipe[0], hood_switch_raw};
+        if (!sys_rst_n) begin
+            btn_sync_s0 <= 3'b000;
+            btn_sync_s1 <= 3'b000;
+        end else begin
+            btn_sync_s0 <= btn_raw;
+            btn_sync_s1 <= btn_sync_s0;
+        end
     end
-    wire hood_switch_sync = hood_switch_sync_pipe[1];
+    wire estop_btn_sync      = btn_sync_s1[0];
+    wire hood_open_btn_sync  = btn_sync_s1[1];
+    wire hood_close_btn_sync = btn_sync_s1[2];
 
     // ---------- transaction core ----------
     wire        group_valid, group_second, group_done, get_busy, gd_start, wd_arm, wd_counting;
     wire [7:0]  group_type, group_length, second_type, second_length, group_base, second_base;
     wire        buzzer_ctrl_out;
 
-    assign buzzer_out = buzzer_ctrl_out;
+    buzzer_pwm_4khz #(
+        .PERIOD_CLKS(BUZZER_PERIOD_CLKS),
+        .HIGH_CLKS(BUZZER_HIGH_CLKS)
+    ) u_buzzer (
+        .clk(sys_clk),
+        .rst_n(sys_rst_n),
+        .enable(buzzer_ctrl_out),
+        .buzzer_out(buzzer_out)
+    );
 
     wire [7:0]   diagnostic_flags = {2'b0, buzzer_ctrl_out, bank_valid, wd_expired, ct_pend_overflow, bmc_framing_error_seen, bmc_round_failed};
     wire [119:0] diagnostic_data  = {diagnostic_flags, 3'b0, bmc_valid_count, ct_diagnostic_data};
@@ -336,7 +364,9 @@ module prod2u_6400_v2_top #(
         .nack_we(nack_we), .nack_addr(nack_addr), .nack_data(nack_data),
         .wd_arm(wd_arm), .wd_reload(wd_reload),
         .wd_expired(duty_invalidate),
-        .hood_switch_sync(hood_switch_sync),
+        .estop_btn_sync(estop_btn_sync),
+        .hood_open_btn_sync(hood_open_btn_sync),
+        .hood_close_btn_sync(hood_close_btn_sync),
         .buzzer_ctrl_out(buzzer_ctrl_out)
     );
 

+ 12 - 2
src/top/prod2u_mrdimm_final_top.v

@@ -17,7 +17,9 @@ module prod2u_mrdimm_final_top #(
     parameter integer BMC_BAUD = 115200,
     parameter integer PWM_PERIOD_CLKS = 1250000,
     parameter integer PWM_CLKS_PER_PERCENT = 12500,
-    parameter integer HOST_TIMEOUT_CYCLES = 250000
+    parameter integer HOST_TIMEOUT_CYCLES = 250000,
+    parameter integer BUZZER_PERIOD_CLKS = 6250,
+    parameter integer BUZZER_HIGH_CLKS = 5000
 ) (
     input  wire        sys_clk,
 
@@ -349,7 +351,15 @@ module prod2u_mrdimm_final_top #(
     wire [7:0] arb_group_base, arb_second_base;
     wire       buzzer_ctrl_out;
 
-    assign buzzer_out = buzzer_ctrl_out;
+    buzzer_pwm_4khz #(
+        .PERIOD_CLKS(BUZZER_PERIOD_CLKS),
+        .HIGH_CLKS(BUZZER_HIGH_CLKS)
+    ) u_buzzer (
+        .clk(sys_clk),
+        .rst_n(rst_n),
+        .enable(buzzer_ctrl_out),
+        .buzzer_out(buzzer_out)
+    );
 
     mrdimm_transaction_core #(
         .ADDR_WIDTH(8),

+ 2 - 1
tests/board_viewer/board-logic.test.mjs

@@ -697,8 +697,9 @@ test("peripheral index resolves FPGA/MCU logical pins across V1.2, V2.0, and V2.
     assert.doesNotMatch(p.logical.logicalSignal, /GND/);
   }
   const con146 = v12Idx.items.find((item) => item.reference === "CON146");
-  assert.equal(con146.isUsed, false);
+  assert.equal(con146.isUsed, true);
   assert.match(con146.pins.find((p) => p.pinNumber === "1").logical.pinDefinition, /12V/);
+  assert.match(con146.pins.find((p) => p.pinNumber === "1").logical.logicalSignal, /buzzer_out/);
 
   const v20Url = new URL("../../tools/board-viewer/generated-v2_0/board-data.json", import.meta.url);
   if (existsSync(fileURLToPath(v20Url))) {

+ 45 - 14
tests/board_viewer/current-wiring.test.mjs

@@ -23,16 +23,21 @@ test("current TTL ports are direct GPIO; MR CON140 has no GND contact on pin3/4"
     assert.ok(result.logicalSignal.includes(port));
     assert.equal(result.isUsed,true);
   }
-  for (const [p,b] of [[3,"L3"],[4,"N2"]]) {
-    const result=resolve("v1_2","CON140",p,b);
-    assert.equal(result.physicalPin,`U3.${b}`);
-    assert.doesNotMatch(result.logicalSignal,/GND/);
-    assert.equal(result.isUsed,false);
-  }
-  const power=resolve("v1_2","CON146",1,"H6");
-  assert.equal(power.isUsed,false);
-  assert.match(power.pinDefinition,/12V/);
-  assert.doesNotMatch(power.logicalSignal,/host_ttl/);
+  const pin3=resolve("v1_2","CON140",3,"L3");
+  assert.equal(pin3.physicalPin,"U3.L3");
+  assert.doesNotMatch(pin3.logicalSignal,/GND/);
+  assert.match(pin3.logicalSignal,/hood_switch_in/);
+  assert.equal(pin3.isUsed,true);
+  const pin4=resolve("v1_2","CON140",4,"N2");
+  assert.equal(pin4.physicalPin,"U3.N2");
+  assert.doesNotMatch(pin4.logicalSignal,/GND/);
+  assert.equal(pin4.isUsed,false);
+  const buzzer=resolve("v1_2","CON146",1,"H6");
+  assert.equal(buzzer.isUsed,true);
+  assert.match(buzzer.logicalSignal,/buzzer_out/);
+  assert.match(buzzer.pinDefinition,/12V/);
+  assert.match(buzzer.pinDefinition,/4000Hz/);
+  assert.doesNotMatch(buzzer.logicalSignal,/host_ttl/);
 });
 
 test("6400 PTC channel18 is CON149.19 and CON150 covers19..23", () => {
@@ -95,15 +100,16 @@ test("MR24 limits do not become obsolete X/Y/Z direct motor outputs", () => {
 
 test("current fans preserve chamber intake/exhaust and mainboard inversion", () => {
   const fan20=[
-    ["CON155",5,"P12","front",0],["CON155",6,"A10","rear",0],
-    ["CON155",11,"D8","front",1],["CON155",12,"C7","rear",1],
-    ["CON154",5,"C4","front",2],["CON154",6,"B5","rear",2],
-    ["CON154",11,"B1","front",3],["CON154",12,"A14","rear",3],
+    ["CON154",5,"C4","front",0],["CON154",6,"B5","rear",0],
+    ["CON154",11,"B1","front",1],["CON154",12,"A14","rear",1],
+    ["CON155",5,"P12","front",2],["CON155",6,"A10","rear",2],
+    ["CON155",11,"D8","front",3],["CON155",12,"C7","rear",3],
   ];
   for (const [con,pin,ball,side,chamber] of fan20) {
     const result=resolve("v2_0",con,pin,ball);
     assert.ok(result.logicalSignal.includes(`fan_${side}_out[${chamber}]`));
     assert.match(result.peripheralRole, side==="front" ? /进风/ : /出风/);
+    assert.match(result.pinDefinition,/20Hz/);
     assert.match(result.pinDefinition,/连接器高电平为ON/);
     assert.match(result.pinDefinition,/FPGA球位低电平为ON/);
   }
@@ -112,6 +118,31 @@ test("current fans preserve chamber intake/exhaust and mainboard inversion", ()
   }
 });
 
+test("6400 V2.0 V3.0 schematic CON165 SSR/buttons and CON146 4kHz buzzer align with BRD", () => {
+  for (const [pin,ball,sig] of [
+    [14,"E14","ssr1_out"],
+    [13,"E8","ssr2_out"],
+    [11,"D9","ssr4_out"],
+    [10,"F8","estop_btn_in"],
+    [9,"C11","hood_open_btn_in"],
+    [8,"A11","hood_close_btn_in"],
+  ]) {
+    const res=resolve("v2_0","CON165",pin,ball);
+    assert.equal(res.physicalPin,`U3.${ball}`);
+    assert.ok(res.logicalSignal.includes(sig));
+    assert.equal(res.isUsed,true);
+  }
+  const nc12=resolve("v2_0","CON165",12,null);
+  assert.equal(nc12.isUsed,false);
+  assert.match(nc12.pinDefinition,/空脚/);
+  const buz=resolve("v2_0","CON146",1,"H6");
+  assert.equal(buz.physicalPin,"U3.H6");
+  assert.ok(buz.logicalSignal.includes("buzzer_out"));
+  assert.match(buz.pinDefinition,/4000Hz/);
+  assert.match(buz.pinDefinition,/80%/);
+  assert.equal(buz.isUsed,true);
+});
+
 test("native ball/net conflicts stay visible and endpoint search is exact", () => {
   const mismatch=resolve("v2_0","CON155",5,"A1",{net:"NATIVE_NET"});
   assert.equal(mismatch.physicalPin,"U3.A1");

+ 1 - 1
tests/board_viewer/fixtures/candidate_count_expectation.json

@@ -5,7 +5,7 @@
     "board_data_path": "tools/board-viewer/generated/board-data.json",
     "board_data_sha256": "b6a65aa6c8bef596a2dff92c28f7139c079358300e4468fc221206781be5bf4a",
     "build_info_path": "tools/board-viewer/generated/build-info.json",
-    "build_info_sha256": "38f502ee987264017df5e5ef56082d42494efd9b2a3abf0868ee727c368702cc",
+    "build_info_sha256": "6eae5a905278f71a1c331e0740616d7be0080d4709ef3ef99427a45b2e39c37a",
     "board_data_asset_sha256": "b6a65aa6c8bef596a2dff92c28f7139c079358300e4468fc221206781be5bf4a",
     "brd_sha256": "269b5bab2f2e1215b9392079a003badc34238ae3cbe8e5094c9a11bba8b84ebb"
   },

+ 1 - 1
tests/board_viewer/test_web_shell.py

@@ -129,7 +129,7 @@ const rx = resolveLogicalPin(con140, con140.pins.find((p) => p.number === "2"),
 assert.ok(tx.displayBadge.includes("U3.T11") && tx.displayBadge.includes("host_ttl_tx"));
 assert.ok(rx.displayBadge.includes("U3.P13") && rx.displayBadge.includes("host_ttl_rx"));
 const con146 = v12.touchpoints.find((tp) => tp.reference === "CON146");
-assert.equal(classifyTouchpointPeripheral(con146, "v1_2").isUsed, false);
+assert.equal(classifyTouchpointPeripheral(con146, "v1_2").isUsed, true);
 assert.match(resolveLogicalPin(con146, con146.pins.find((p) => p.number === "1"), "v1_2").pinDefinition, /12V/);
 
 // 2. Quick query for PTC1 returns exact socket & highlights Pin 1 without false-matching PTC10..19

+ 83 - 0
tests/sim/buzzer_pwm_4khz_tb.v

@@ -0,0 +1,83 @@
+`timescale 1ns/1ps
+
+// Unit testbench for buzzer_pwm_4khz:
+// Verifies exact 4000 Hz, 80% duty square wave at 25 MHz
+// (6250 clks period, 5000 clks HIGH, 1250 clks LOW) and strict LOW
+// when disabled or reset.
+module buzzer_pwm_4khz_tb;
+    reg  clk = 1'b0;
+    reg  rst_n = 1'b0;
+    reg  enable = 1'b0;
+    wire buzzer_out;
+
+    always #20 clk = ~clk; // 25 MHz (40 ns period)
+
+    buzzer_pwm_4khz #(
+        .PERIOD_CLKS(6250),
+        .HIGH_CLKS(5000)
+    ) dut (
+        .clk(clk),
+        .rst_n(rst_n),
+        .enable(enable),
+        .buzzer_out(buzzer_out)
+    );
+
+    integer i, high_cnt, low_cnt, cyc;
+
+    initial begin
+        // Reset check
+        repeat (5) @(posedge clk);
+        #1;
+        if (buzzer_out !== 1'b0) $fatal(1, "FAIL: buzzer_out not 0 during reset");
+
+        // Post-reset disabled check
+        @(negedge clk); rst_n = 1'b1;
+        repeat (200) begin
+            @(posedge clk); #1;
+            if (buzzer_out !== 1'b0) $fatal(1, "FAIL: buzzer_out high while disabled");
+        end
+
+        // Enable: verify 3 full consecutive periods (exact 5000 HIGH + 1250 LOW each)
+        @(negedge clk); enable = 1'b1;
+        for (cyc = 0; cyc < 3; cyc = cyc + 1) begin
+            high_cnt = 0;
+            low_cnt  = 0;
+            for (i = 0; i < 6250; i = i + 1) begin
+                @(posedge clk); #1;
+                if (i < 5000) begin
+                    if (buzzer_out !== 1'b1)
+                        $fatal(1, "FAIL: cyc=%0d tick=%0d expected HIGH, got %b", cyc, i, buzzer_out);
+                    high_cnt = high_cnt + 1;
+                end else begin
+                    if (buzzer_out !== 1'b0)
+                        $fatal(1, "FAIL: cyc=%0d tick=%0d expected LOW, got %b", cyc, i, buzzer_out);
+                    low_cnt = low_cnt + 1;
+                end
+            end
+            if (high_cnt != 5000 || low_cnt != 1250)
+                $fatal(1, "FAIL: cyc=%0d high=%0d low=%0d", cyc, high_cnt, low_cnt);
+        end
+
+        // Mid-high disable check (simulates SET_ALL buzzer=0 or watchdog expiry)
+        repeat (1000) @(posedge clk); #1;
+        if (buzzer_out !== 1'b1) $fatal(1, "FAIL: expected HIGH mid-cycle before disable");
+        @(negedge clk); enable = 1'b0;
+        repeat (200) begin
+            @(posedge clk); #1;
+            if (buzzer_out !== 1'b0) $fatal(1, "FAIL: buzzer_out stayed HIGH after disable");
+        end
+
+        // Re-enable must restart cleanly from phase 0 (5000 HIGH then 1250 LOW)
+        @(negedge clk); enable = 1'b1;
+        for (i = 0; i < 6250; i = i + 1) begin
+            @(posedge clk); #1;
+            if (i < 5000 && buzzer_out !== 1'b1)
+                $fatal(1, "FAIL: restart tick=%0d expected HIGH", i);
+            if (i >= 5000 && buzzer_out !== 1'b0)
+                $fatal(1, "FAIL: restart tick=%0d expected LOW", i);
+        end
+
+        $display("PASS buzzer_pwm_4khz_tb (4000Hz 80%% duty: 5000 HIGH / 1250 LOW / 6250 period)");
+        $finish;
+    end
+endmodule

+ 14 - 9
tests/sim/full_chain_6400_v2_pty_e2e.py

@@ -6,8 +6,8 @@ Architecture:
   ChamberMappingConfig, TemperatureCurveStore, and ThermalTestSession.
 - Transport side: Linux PTY via Icarus Verilog VPI (vpi_pty.c).
 - Hardware side: Production prod2u_6400_v2_top + real CT7428 U6 I2C BFM (0x49)
-  + real BMC 115200 UART BFM + 2N7002 NMOS fan inverter model + hood switch F7
-  + buzzer H6.
+  + real BMC 115200 UART BFM + 2N7002 NMOS fan inverter model + V3.0 buttons
+  (EPB1=F8, SB1=C11, SB2=A11) + 4000Hz 80% buzzer H6.
 """
 from __future__ import annotations
 
@@ -116,7 +116,7 @@ class FullChain6400V2PtyE2ETest(unittest.TestCase):
             time.sleep(0.01)
         return found
 
-    def test_6400_v2_full_chain_set36_get88_sensors_and_curves(self) -> None:
+    def test_6400_v2_full_chain_set36_get90_sensors_and_curves(self) -> None:
         model = gui.Model("6400-v2")
         receiver = StreamReceiver("6400-v2", timeout_sec=5.0)
         tracker = TransactionTracker()
@@ -131,24 +131,26 @@ class FullChain6400V2PtyE2ETest(unittest.TestCase):
         self.assertEqual(hb[0]["payload"], b"\x11\x22\x33\x44")
         self.assertTrue(tracker.on_valid_frame(FrameType.HEARTBEAT_ACK, hb[0]["payload"])["is_match"])
 
-        # 2. Boot GET_ALL (88B payload: defaults PTC=0, FAN=20, SSR=0, hood=0, buzzer=0)
+        # 2. Boot GET_ALL (90B payload: defaults PTC=0, FAN=20, SSR=0, EPB1/SB1/SB2=0, buzzer=0)
         tracker.on_request_sent("GET")
         os.write(self.fd, model.get_all())
         got = self._read_frames(receiver, [FrameType.GET_ACK, FrameType.GET_DATA], timeout_s=15.0)
         self.assertEqual(len(got), 2)
-        self.assertEqual(len(got[1]["payload"]), 88)
+        self.assertEqual(len(got[1]["payload"]), 90)
         st0 = model.state(got[1]["payload"])
         self.assertEqual(st0["ptc"], [0] * 24)
         self.assertEqual(st0["front"], [20] * 4)
         self.assertEqual(st0["rear"], [20] * 4)
         self.assertEqual(st0["ssr"], [0, 0, 0])
-        self.assertFalse(st0["hood_switch"])
+        self.assertFalse(st0["estop_btn"])
+        self.assertFalse(st0["hood_open_btn"])
+        self.assertFalse(st0["hood_close_btn"])
         self.assertFalse(st0["buzzer_state"])
         store.record_state(st0, timestamp=1000.0, time_label="00:00:00")
         tracker.on_valid_frame(FrameType.GET_ACK, got[0]["payload"])
         tracker.on_valid_frame(FrameType.GET_DATA, got[1]["payload"])
 
-        # 3. SET_ALL (36B: custom PTC/Front/Rear/SSR + buzzer=1 -> asserts hood_switch=1 in TB)
+        # 3. SET_ALL (36B: custom PTC/Front/Rear/SSR + buzzer=1 -> asserts EPB1=1, SB1=1, SB2=0 in TB)
         duties = [10 + i for i in range(24)] + [30, 40, 50, 60] + [70, 80, 90, 100] + [25, 50, 75]
         set_frame = model.set_all(duties, buzzer=1)
         self.assertEqual(len(set_frame), 42)  # 6 framing + 36 payload
@@ -158,17 +160,20 @@ class FullChain6400V2PtyE2ETest(unittest.TestCase):
         self.assertEqual(len(ack), 1)
         self.assertTrue(tracker.on_valid_frame(FrameType.SET_ACK, ack[0]["payload"])["is_match"])
 
-        # 4. GET_ALL after SET -> verify 35 duties + hood_switch=True + buzzer_state=True + GUI curve export
+        # 4. GET_ALL after SET -> verify 35 duties (no EPB1 interlock) + EPB1=1/SB1=1/SB2=0 + buzzer=1 + curve PNG
         tracker.on_request_sent("GET")
         os.write(self.fd, model.get_all())
         got2 = self._read_frames(receiver, [FrameType.GET_ACK, FrameType.GET_DATA], timeout_s=15.0)
         self.assertEqual(len(got2), 2)
+        self.assertEqual(len(got2[1]["payload"]), 90)
         st1 = model.state(got2[1]["payload"])
         self.assertEqual(st1["ptc"], [10 + i for i in range(24)])
         self.assertEqual(st1["front"], [30, 40, 50, 60])
         self.assertEqual(st1["rear"], [70, 80, 90, 100])
         self.assertEqual(st1["ssr"], [25, 50, 75])
-        self.assertTrue(st1["hood_switch"])
+        self.assertTrue(st1["estop_btn"])
+        self.assertTrue(st1["hood_open_btn"])
+        self.assertFalse(st1["hood_close_btn"])
         self.assertTrue(st1["buzzer_state"])
         store.record_state(st1, timestamp=1005.0, time_label="00:00:05")
         png = gui.render_chamber_curves_png(store, cmap, product="6400-v2", board="6400V2.0", width=800, height=540)

+ 1 - 0
tests/sim/full_chain_pty_e2e.py

@@ -60,6 +60,7 @@ class FullChainPtyE2ETest(unittest.TestCase):
             "src/control/watchdog_30s.v",
             "src/control/duty_register_bank.v",
             "src/actuator/pwm_bitmap_engine.v",
+            "src/actuator/buzzer_pwm_4khz.v",
             "src/acquisition/temp_ram.v",
             "src/acquisition/bmc_ascii_poll.v",
             "src/acquisition/ct7428_scan.v",

+ 10 - 8
tests/sim/prod2u_6400_v2_acquisition_tb.v

@@ -118,15 +118,15 @@ module prod2u_6400_v2_acquisition_tb;
         received_count = 0;
         host_byte(8'ha5); host_byte(8'h5a); host_byte(8'h02);
         host_byte(8'h00); host_byte(8'h6d); host_byte(8'h7b);
-        wait (received_count >= 100);
+        wait (received_count >= 102);
         #(HOST_BIT_NS);
-        if (received_count != 100) $fatal(1, "Unexpected GET reply length %0d", received_count);
+        if (received_count != 102) $fatal(1, "Unexpected GET reply length %0d", received_count);
         if (received[0] !== 8'ha5 || received[1] !== 8'h5a ||
             received[2] !== 8'h82 || received[3] !== 0 ||
             received[4] !== 8'hf5 || received[5] !== 8'h60)
             $fatal(1, "GET_ACK fixed golden mismatch");
         if (received[6] !== 8'ha5 || received[7] !== 8'h5a ||
-            received[8] !== 8'h42 || received[9] !== 88)
+            received[8] !== 8'h42 || received[9] !== 90)
             $fatal(1, "GET_DATA header mismatch");
         for (i = 0; i < 24; i = i + 1)
             if (received[10+i] !== 0) $fatal(1, "PTC telemetry changed during acquisition");
@@ -141,11 +141,13 @@ module prod2u_6400_v2_acquisition_tb;
                 $fatal(1, "CT channel %0d GET=%h expected=%h", i, received[66+i], expected_ct(i));
         for (i = 0; i < 3; i = i + 1)
             if (received[93+i] !== 0) $fatal(1, "SSR default readback changed during acquisition");
-        if (received[96] !== 8'h00 || received[97] !== 8'h00)
-            $fatal(1, "hood/buzzer default readback mismatch: hood=%h buzzer=%h", received[96], received[97]);
+        if (received[96] !== 8'h00 || received[97] !== 8'h00 ||
+            received[98] !== 8'h00 || received[99] !== 8'h00)
+            $fatal(1, "button/buzzer default readback mismatch: epb=%h sb1=%h sb2=%h buzzer=%h",
+                   received[96], received[97], received[98], received[99]);
         crc = 16'hffff;
-        for (i = 8; i < 98; i = i + 1) crc = crc_byte(crc, received[i]);
-        if ({received[99], received[98]} !== crc) $fatal(1, "GET_DATA CRC mismatch");
+        for (i = 8; i < 100; i = i + 1) crc = crc_byte(crc, received[i]);
+        if ({received[101], received[100]} !== crc) $fatal(1, "GET_DATA CRC mismatch");
         end
     endtask
     initial begin
@@ -166,7 +168,7 @@ module prod2u_6400_v2_acquisition_tb;
         #32000000;
         if (bmc_replies != 1) $fatal(1, "BMC model unexpectedly replied during disconnected round");
         get_and_check_snapshot(1);
-        $display("PASS prod2u_6400_v2_acquisition_tb: U6=0x49 physical B14/A15 open drain reads=%0d regs=0..8 integer/fraction conversion; CT9..26=FF; BMC command43/echo/48tokens/prompt over115200 ->24temperatures; next unanswered poll ->allFF; GET86 CRC", ct_reads);
+        $display("PASS prod2u_6400_v2_acquisition_tb: U6=0x49 physical B14/A15 open drain reads=%0d regs=0..8 integer/fraction conversion; CT9..26=FF; BMC command43/echo/48tokens/prompt over115200 ->24temperatures; next unanswered poll ->allFF; GET90 CRC", ct_reads);
         $finish;
     end
     initial begin

+ 36 - 15
tests/sim/prod2u_6400_v2_connector_tb.v

@@ -9,7 +9,7 @@ module prod2u_6400_v2_connector_tb;
     reg clk = 0;
     always #20 clk = ~clk;
     reg host_ttl_rx = 1, host_rs232_rx = 1;
-    reg hood_switch_in = 0;
+    reg estop_btn_in = 0, hood_open_btn_in = 0, hood_close_btn_in = 0;
     wire host_ttl_tx, host_rs232_tx;
     wire [7:0] fan_connector_pwm;
     wire [23:0] ptc_connector_pwm;
@@ -21,7 +21,8 @@ module prod2u_6400_v2_connector_tb;
         .host_ttl_tx(host_ttl_tx), .host_rs232_tx(host_rs232_tx),
         .fan_connector_pwm(fan_connector_pwm), .ptc_connector_pwm(ptc_connector_pwm),
         .spare_connector_pwm(spare_connector_pwm), .ssr_connector(ssr_connector),
-        .hood_switch_in(hood_switch_in), .buzzer_connector(buzzer_connector)
+        .estop_btn_in(estop_btn_in), .hood_open_btn_in(hood_open_btn_in), .hood_close_btn_in(hood_close_btn_in),
+        .buzzer_connector(buzzer_connector)
     );
     reg [7:0] set_payload [0:35];
     reg [7:0] rx_bytes [0:255];
@@ -216,24 +217,40 @@ module prod2u_6400_v2_connector_tb;
             rx_bytes[4] !== 8'ha6 || rx_bytes[5] !== 8'h35)
             $fatal(1, "6400 SET_ACK is not complete known CRC-correct golden frame");
         repeat (50000) @(negedge clk);
-        if (buzzer_connector !== 1'b1)
-            $fatal(1, "6400 buzzer connector H6 did not assert HIGH after SET_ALL buzzer=1");
+        begin : check_buzzer_4khz
+            integer bz_hi, bz_lo, bz_k;
+            bz_hi = 0;
+            bz_lo = 0;
+            for (bz_k = 0; bz_k < 6250; bz_k = bz_k + 1) begin
+                @(negedge clk);
+                if (buzzer_connector === 1'b1) bz_hi = bz_hi + 1;
+                else if (buzzer_connector === 1'b0) bz_lo = bz_lo + 1;
+                else $fatal(1, "6400 buzzer connector H6 undefined: %b", buzzer_connector);
+            end
+            if (bz_hi !== 5000 || bz_lo !== 1250)
+                $fatal(1, "6400 buzzer connector H6 4000Hz 80%% mismatch: high=%0d low=%0d (expected 5000/1250)", bz_hi, bz_lo);
+        end
         measure_connectors;
-        $display("PASS 6400 connector SET: eight distinct fan duties including 0/1/99/100, 24 distinct PTC duties, buzzer H6=1, actual ADC and one physical NMOS inversion");
+        $display("PASS 6400 connector SET: eight distinct fan duties including 0/1/99/100, 24 distinct PTC duties, buzzer H6 4000Hz 80%% (5000/1250), actual ADC and one physical NMOS inversion");
 
-        // Press physical hood switch (CON165.3 / F7) and verify GET_ALL returns 88B payload
-        hood_switch_in = 1'b1;
+        // Press physical V3.0 buttons: EPB1(CON165.10/F8)=1, SB1(CON165.9/C11)=1, SB2(CON165.8/A11)=0
+        // Confirm EPB1=1 has NO CPLD safety interlock and GET_ALL returns 90B payload.
+        estop_btn_in = 1'b1;
+        hood_open_btn_in = 1'b1;
+        hood_close_btn_in = 1'b0;
         repeat (20) @(negedge clk);
+        if (ssr_connector !== expected_ssr)
+            $fatal(1, "EPB1 press must NOT interlock SSR output: got %b expected %b", ssr_connector, expected_ssr);
         rx_count = 0;
         send_byte(8'ha5); send_byte(8'h5a); send_byte(8'h02);
         send_byte(0); send_byte(8'h6d); send_byte(8'h7b);
-        wait_bytes(100);
+        wait_bytes(102);
         if (rx_bytes[0] !== 8'ha5 || rx_bytes[1] !== 8'h5a ||
             rx_bytes[2] !== 8'h82 || rx_bytes[3] !== 0 ||
             rx_bytes[4] !== 8'hf5 || rx_bytes[5] !== 8'h60)
             $fatal(1, "6400 GET_ACK golden mismatch");
         if (rx_bytes[6] !== 8'ha5 || rx_bytes[7] !== 8'h5a ||
-            rx_bytes[8] !== 8'h42 || rx_bytes[9] !== 8'd88)
+            rx_bytes[8] !== 8'h42 || rx_bytes[9] !== 8'd90)
             $fatal(1, "6400 GET_DATA header mismatch");
         for (i = 0; i < 32; i = i + 1)
             if (rx_bytes[10+i] !== set_payload[i])
@@ -242,14 +259,18 @@ module prod2u_6400_v2_connector_tb;
             if (rx_bytes[93+i] !== set_payload[32+i])
                 $fatal(1, "GET SSR%0d differs from committed output", i);
         if (rx_bytes[96] !== 8'd1)
-            $fatal(1, "GET hood_switch byte86=%h expected 01", rx_bytes[96]);
+            $fatal(1, "GET estop_btn byte86=%h expected 01", rx_bytes[96]);
         if (rx_bytes[97] !== 8'd1)
-            $fatal(1, "GET buzzer_state byte87=%h expected 01", rx_bytes[97]);
+            $fatal(1, "GET hood_open_btn byte87=%h expected 01", rx_bytes[97]);
+        if (rx_bytes[98] !== 8'd0)
+            $fatal(1, "GET hood_close_btn byte88=%h expected 00", rx_bytes[98]);
+        if (rx_bytes[99] !== 8'd1)
+            $fatal(1, "GET buzzer_state byte89=%h expected 01", rx_bytes[99]);
         get_crc = 16'hffff;
-        for (i = 8; i < 98; i = i + 1) get_crc = crc_byte(get_crc, rx_bytes[i]);
-        if ({rx_bytes[99], rx_bytes[98]} !== get_crc)
-            $fatal(1, "6400 GET_DATA CRC mismatch: wire=%h%h expected=%h", rx_bytes[99], rx_bytes[98], get_crc);
-        $display("PASS prod2u_6400_v2_connector_tb: physical PWM, PTC, spares, SSR, hood_switch(F7), buzzer(H6), nominal UART, ACK/DATA CRC and GET88 readback");
+        for (i = 8; i < 100; i = i + 1) get_crc = crc_byte(get_crc, rx_bytes[i]);
+        if ({rx_bytes[101], rx_bytes[100]} !== get_crc)
+            $fatal(1, "6400 GET_DATA CRC mismatch: wire=%h%h expected=%h", rx_bytes[101], rx_bytes[100], get_crc);
+        $display("PASS prod2u_6400_v2_connector_tb: physical PWM, PTC, spares, SSR, EPB1/SB1/SB2(F8/C11/A11), buzzer(H6 4000Hz 80%%), nominal UART, ACK/DATA CRC and GET90 readback");
         $finish;
     end
     initial begin

+ 54 - 32
tests/sim/prod2u_6400_v2_tb.v

@@ -39,7 +39,9 @@ module prod2u_6400_v2_tb;
     wire ssr1_out;
     wire ssr2_out;
     wire ssr4_out;
-    reg  hood_switch_in;
+    reg  estop_btn_in;
+    reg  hood_open_btn_in;
+    reg  hood_close_btn_in;
     wire buzzer_out;
 
     pullup(temp_scl);
@@ -67,7 +69,9 @@ module prod2u_6400_v2_tb;
         .ssr4_out(ssr4_out),
         .ssr_unused_zero(),
         .ptc_spare_zero(),
-        .hood_switch_in(hood_switch_in),
+        .estop_btn_in(estop_btn_in),
+        .hood_open_btn_in(hood_open_btn_in),
+        .hood_close_btn_in(hood_close_btn_in),
         .buzzer_out(buzzer_out)
     );
 
@@ -258,7 +262,9 @@ module prod2u_6400_v2_tb;
         host_ttl_rx = 1'b1;
         host_rs232_rx = 1'b1;
         bmc_rs232_rx = 1'b1;
-        hood_switch_in = 1'b0;
+        estop_btn_in = 1'b0;
+        hood_open_btn_in = 1'b0;
+        hood_close_btn_in = 1'b0;
 
         repeat (3000) @(posedge clk);
 
@@ -299,15 +305,26 @@ module prod2u_6400_v2_tb;
         end else begin
             $display("PASS: Received SET_ACK (81 00)");
         end
-        if (buzzer_out !== 1'b1) begin
-            $display("FAIL: buzzer_out did not turn ON after SET_ALL buzzer=1");
-            failures = failures + 1;
-        end else begin
-            $display("PASS: buzzer_out turned ON via SET_ALL");
+        begin : check_bz_wave
+            integer bz_hi, bz_lo, bz_k;
+            bz_hi = 0; bz_lo = 0;
+            for (bz_k = 0; bz_k < 6250; bz_k = bz_k + 1) begin
+                @(posedge clk);
+                if (buzzer_out === 1'b1) bz_hi = bz_hi + 1;
+                else if (buzzer_out === 1'b0) bz_lo = bz_lo + 1;
+            end
+            if (bz_hi !== 5000 || bz_lo !== 1250) begin
+                $display("FAIL: buzzer_out 4000Hz 80%% mismatch: high=%0d low=%0d", bz_hi, bz_lo);
+                failures = failures + 1;
+            end else begin
+                $display("PASS: buzzer_out 4000Hz 80%% duty verified (5000 HIGH / 1250 LOW)");
+            end
         end
 
-        // Check 3: Press hood switch (active-HIGH) and send GET_ALL (A5 5A 02 00 6D 7B)
-        hood_switch_in = 1'b1;
+        // Check 3: Press EPB1 (F8)=1, SB1 (C11)=1, SB2 (A11)=0 and send GET_ALL (A5 5A 02 00 6D 7B)
+        estop_btn_in = 1'b1;
+        hood_open_btn_in = 1'b1;
+        hood_close_btn_in = 1'b0;
         repeat (10) @(posedge clk);
         frame_bytes[0] = 8'hA5;
         frame_bytes[1] = 8'h5A;
@@ -320,8 +337,8 @@ module prod2u_6400_v2_tb;
         rs232_rx_count = 0;
         uart_send_frame(frame_len);
 
-        // Expect GET_ACK (6 bytes) + GET_DATA (94 bytes: A5 5A 42 58 ... CRC) = 100 bytes total
-        while (rx_count < 100) @(posedge clk);
+        // Expect GET_ACK (6 bytes) + GET_DATA (96 bytes: A5 5A 42 5A ... CRC) = 102 bytes total
+        while (rx_count < 102) @(posedge clk);
 
         // Check GET_ACK
         if (rx_bytes[0] !== 8'hA5 || rx_bytes[1] !== 8'h5A ||
@@ -333,14 +350,14 @@ module prod2u_6400_v2_tb;
             $display("PASS: Received GET_ACK (82 00)");
         end
 
-        // Check GET_DATA header (88 bytes = 0x58)
+        // Check GET_DATA header (90 bytes = 0x5A)
         if (rx_bytes[6] !== 8'hA5 || rx_bytes[7] !== 8'h5A ||
-            rx_bytes[8] !== 8'h42 || rx_bytes[9] !== 8'd88) begin
+            rx_bytes[8] !== 8'h42 || rx_bytes[9] !== 8'd90) begin
             $display("FAIL: GET_DATA header incorrect: %02h %02h %02h %02h",
                      rx_bytes[6], rx_bytes[7], rx_bytes[8], rx_bytes[9]);
             failures = failures + 1;
         end else begin
-            $display("PASS: Received GET_DATA (42 58)");
+            $display("PASS: Received GET_DATA (42 5A)");
 
             // Verify PTC duties (offsets 10..33) match 50
             for (i = 0; i < 24; i = i + 1) begin
@@ -373,26 +390,29 @@ module prod2u_6400_v2_tb;
                     failures = failures + 1;
                 end
             end
-            // Verify hood_switch (payload offset 86 -> rx_bytes[96]) and buzzer (offset 87 -> rx_bytes[97])
-            if (rx_bytes[96] !== 8'd1 || rx_bytes[97] !== 8'd1) begin
-                $display("FAIL: hood_switch/buzzer mismatch: %02h %02h", rx_bytes[96], rx_bytes[97]);
+            // Verify EPB1(86->96), SB1(87->97), SB2(88->98), buzzer(89->99)
+            if (rx_bytes[96] !== 8'd1 || rx_bytes[97] !== 8'd1 ||
+                rx_bytes[98] !== 8'd0 || rx_bytes[99] !== 8'd1) begin
+                $display("FAIL: buttons/buzzer mismatch: epb=%02h sb1=%02h sb2=%02h bz=%02h",
+                         rx_bytes[96], rx_bytes[97], rx_bytes[98], rx_bytes[99]);
                 failures = failures + 1;
             end
-            $display("PASS: Verified GET_DATA content (PTC 50%%, Front 40%%, Rear 60%%, CT9..26 0xFF, hood=1, buzzer=1)");
+            $display("PASS: Verified GET_DATA content (PTC 50%%, Front 40%%, Rear 60%%, CT9..26 0xFF, EPB1=1, SB1=1, SB2=0, buzzer=1)");
         end
-        hood_switch_in = 1'b0;
-
-        // Check 4: Verify commanded SSR 100/0/100 terminal states
+        // Verify EPB1=1 caused NO CPLD safety interlock before releasing buttons
         if (ssr1_out !== 1'b1 || ssr2_out !== 1'b0 || ssr4_out !== 1'b1) begin
-            $display("FAIL: SSR altered: %b %b %b", ssr1_out, ssr2_out, ssr4_out);
+            $display("FAIL: SSR altered while EPB1=1: %b %b %b", ssr1_out, ssr2_out, ssr4_out);
             failures = failures + 1;
         end else begin
-            $display("PASS: SSRs follow100/0/100 command");
+            $display("PASS: SSRs follow 100/0/100 command with no EPB1 interlock");
         end
+        estop_btn_in = 1'b0;
+        hood_open_btn_in = 1'b0;
+        hood_close_btn_in = 1'b0;
 
         // Check 5: Broadcast verification - RS-232 TX received same GET_ACK/GET_DATA as TTL TX
-        if (rs232_rx_count < 100) begin
-            $display("FAIL: RS-232 TX did not receive full broadcast reply (%0d < 100)", rs232_rx_count);
+        if (rs232_rx_count < 102) begin
+            $display("FAIL: RS-232 TX did not receive full broadcast reply (%0d < 102)", rs232_rx_count);
             failures = failures + 1;
         end else if (rs232_rx_bytes[0] !== 8'hA5 || rs232_rx_bytes[1] !== 8'h5A ||
                      rs232_rx_bytes[2] !== 8'h82) begin
@@ -430,7 +450,7 @@ module prod2u_6400_v2_tb;
             failures = failures + 1;
         end
 
-        // Check 7: CON134 RS-232 GET_ALL to verify newly applied duties & released hood_switch=0
+        // Check 7: CON134 RS-232 GET_ALL to verify newly applied duties & released buttons=0
         frame_bytes[0] = 8'hA5;
         frame_bytes[1] = 8'h5A;
         frame_bytes[2] = 8'h02; // GET_ALL
@@ -442,14 +462,16 @@ module prod2u_6400_v2_tb;
         rs232_rx_count = 0;
         uart_send_frame_rs232(frame_len);
 
-        while (rs232_rx_count < 100) @(posedge clk);
+        while (rs232_rx_count < 102) @(posedge clk);
         if (rs232_rx_bytes[2] !== 8'h82 || rs232_rx_bytes[8] !== 8'h42 ||
             rs232_rx_bytes[10] !== 8'd70 || rs232_rx_bytes[34] !== 8'd30 ||
-            rs232_rx_bytes[38] !== 8'd80 || rs232_rx_bytes[96] !== 8'd0 || rs232_rx_bytes[97] !== 8'd0) begin
+            rs232_rx_bytes[38] !== 8'd80 || rs232_rx_bytes[96] !== 8'd0 ||
+            rs232_rx_bytes[97] !== 8'd0 || rs232_rx_bytes[98] !== 8'd0 ||
+            rs232_rx_bytes[99] !== 8'd0) begin
             $display("FAIL: CON134 GET_DATA values incorrect");
             failures = failures + 1;
         end else begin
-            $display("PASS: CON134 GET_DATA confirmed applied duties (PTC 70%%, Front 30%%, Rear 80%%, hood=0, buzzer=0)");
+            $display("PASS: CON134 GET_DATA confirmed applied duties (PTC 70%%, Front 30%%, Rear 80%%, buttons=0, buzzer=0)");
         end
 
         // Check 8: Bad CRC on CON134 RS-232 is discarded and does not produce ACK/NACK
@@ -493,7 +515,7 @@ module prod2u_6400_v2_tb;
         frame_bytes[3] = 8'd0;
         frame_len = 4;
         uart_send_frame(frame_len);
-        while (rx_count < 100) @(posedge clk);
+        while (rx_count < 102) @(posedge clk);
         if (rx_bytes[2] !== 8'h82) begin
             $display("FAIL: Failed to recover after inter-byte timeout");
             failures = failures + 1;
@@ -527,7 +549,7 @@ module prod2u_6400_v2_tb;
         rx_count = 0;
         rs232_rx_count = 0;
         uart_send_frame_rs232(frame_len); // via CON134 RS-232
-        while (rs232_rx_count < 100) @(posedge clk);
+        while (rs232_rx_count < 102) @(posedge clk);
         if (rs232_rx_bytes[10] !== 8'd25 || rs232_rx_bytes[34] !== 8'd55 || rs232_rx_bytes[38] !== 8'd75) begin
             $display("FAIL: Cross-port switching duty mismatch");
             failures = failures + 1;

+ 13 - 3
tests/sim/prod2u_mrdimm_final_e2e_tb.v

@@ -390,9 +390,9 @@ module prod2u_mrdimm_final_e2e_tb;
         $fflush;
 
         // --------------------------------------------------------------------
-        // TEST F: V3.1.0 69-byte SET_ALL (buzzer=1) + hood_switch on GET_ALL
+        // TEST F: V3.2.0 69-byte SET_ALL (buzzer=1, 4000Hz 80% duty) + hood_switch on GET_ALL
         // --------------------------------------------------------------------
-        $display("[TEST F] Testing 69B SET_ALL buzzer ON/OFF + hood_switch on GET_ALL...");
+        $display("[TEST F] Testing 69B SET_ALL buzzer 4000Hz 80%% ON/OFF + hood_switch on GET_ALL...");
         $fflush;
         frame_bytes[0] = 8'hA5;
         frame_bytes[1] = 8'h5A;
@@ -406,7 +406,17 @@ module prod2u_mrdimm_final_e2e_tb;
         wait(rx_count >= start_idx + 6);
         if (rx_bytes[start_idx+2] !== 8'h81) $fatal(1, "FAIL F: expected SET_ACK for 69B SET_ALL");
         repeat (50) @(posedge clk);
-        if (buzzer_out !== 1'b1) $fatal(1, "FAIL F: buzzer_out did not assert HIGH");
+        begin : check_mr_bz_on
+            integer bz_hi, bz_lo, bz_k;
+            bz_hi = 0; bz_lo = 0;
+            for (bz_k = 0; bz_k < 6250; bz_k = bz_k + 1) begin
+                @(posedge clk);
+                if (buzzer_out === 1'b1) bz_hi = bz_hi + 1;
+                else if (buzzer_out === 1'b0) bz_lo = bz_lo + 1;
+            end
+            if (bz_hi !== 5000 || bz_lo !== 1250)
+                $fatal(1, "FAIL F: buzzer_out 4000Hz 80%% mismatch: high=%0d low=%0d", bz_hi, bz_lo);
+        end
 
         // Press hood_switch_in and verify GET_ALL reports hood=1, buzzer=1
         hood_switch_in = 1'b1;

+ 12 - 2
tests/sim/prod2u_mrdimm_ttl_e2e_tb.v

@@ -608,10 +608,20 @@ module prod2u_mrdimm_ttl_e2e_tb;
         end
         $display("  -> All 24 physical PTC channels strictly track their respective chamber PWMs!");
 
-        // Assert hood_switch_in and send GET_ALL on RS232 to verify duty + hood/buzzer readback
+        // Assert hood_switch_in, verify 4000Hz 80% buzzer waveform, and send GET_ALL on RS232
         hood_switch_in = 1'b1;
         repeat (20) @(posedge clk);
-        if (buzzer_out !== 1'b1) $fatal(1, "FAIL 8: buzzer_out should be HIGH");
+        begin : check_mr_ttl_bz
+            integer bz_hi, bz_lo, bz_k;
+            bz_hi = 0; bz_lo = 0;
+            for (bz_k = 0; bz_k < 6250; bz_k = bz_k + 1) begin
+                @(posedge clk);
+                if (buzzer_out === 1'b1) bz_hi = bz_hi + 1;
+                else if (buzzer_out === 1'b0) bz_lo = bz_lo + 1;
+            end
+            if (bz_hi !== 5000 || bz_lo !== 1250)
+                $fatal(1, "FAIL 8: buzzer_out 4000Hz 80%% mismatch: high=%0d low=%0d", bz_hi, bz_lo);
+        end
         start_idx = rs232_rx_count;
         frame_bytes[0] = 8'hA5;
         frame_bytes[1] = 8'h5A;

+ 36 - 18
tests/sim/prod2u_v3_protocol_tb.v

@@ -13,7 +13,7 @@ module prod2u_v3_protocol_tb;
     wire [23:0] ptc;
     wire [3:0] front,rear;
     wire [2:0] ssr;
-    reg hood_switch = 0;
+    reg estop_btn = 0, hood_open_btn = 0, hood_close_btn = 0;
     wire buzzer;
     wire [31:0] ct_reads;
     wire [8:0] ct_seen;
@@ -25,7 +25,8 @@ module prod2u_v3_protocol_tb;
         .temp_scl(scl), .temp_sda(sda), .temp_scl_alt(), .temp_sda_alt(),
         .ssr1_out(ssr[0]), .ssr2_out(ssr[1]), .ssr4_out(ssr[2]),
         .ssr_unused_zero(), .ptc_spare_zero(),
-        .hood_switch_in(hood_switch), .buzzer_out(buzzer)
+        .estop_btn_in(estop_btn), .hood_open_btn_in(hood_open_btn), .hood_close_btn_in(hood_close_btn),
+        .buzzer_out(buzzer)
     );
     defparam dut.u_core.BEACON_PERIOD = 400000;
     always @(dut.ssr_unused_zero) begin
@@ -151,12 +152,12 @@ module prod2u_v3_protocol_tb;
                     pending_get=1;
                 end
                 8'h42:begin
-                    if(wire_bytes[rx_base+3]!==88) $fatal(1,"GET_DATA must be88 bytes");
+                    if(wire_bytes[rx_base+3]!==90) $fatal(1,"GET_DATA must be 90 bytes");
                     if(pending_get) pending_get=0;
                     else begin
-                        // Autonomous GET_DATA must NEVER report hood_switch active!
-                        if (wire_bytes[p+86] !== 8'd0)
-                            $fatal(1,"autonomous GET_DATA leaked hood_switch=%h", wire_bytes[p+86]);
+                        // Autonomous GET_DATA must NEVER report EPB1/SB1/SB2 buttons active!
+                        if (wire_bytes[p+86] !== 8'd0 || wire_bytes[p+87] !== 8'd0 || wire_bytes[p+88] !== 8'd0)
+                            $fatal(1,"autonomous GET_DATA leaked buttons=%h/%h/%h", wire_bytes[p+86], wire_bytes[p+87], wire_bytes[p+88]);
                         pending_auto=1;auto_count=auto_count+1;
                     end
                 end
@@ -164,7 +165,7 @@ module prod2u_v3_protocol_tb;
                     if(!pending_auto) $fatal(1,"unexpected unpaired diagnostic");
                     pending_auto=0;diag_count=diag_count+1;
                     if(wire_bytes[p]!==1 || wire_bytes[p+1]!==8'h64 ||
-                       wire_bytes[p+2]!==3 || wire_bytes[p+3]!==1 || wire_bytes[p+4]!==0)
+                       wire_bytes[p+2]!==3 || wire_bytes[p+3]!==2 || wire_bytes[p+4]!==0)
                         $fatal(1,"diagnostic format/product/version identity");
                     if(wire_bytes[rx_base+3]!==20) $fatal(1,"diagnostic length");
                     if(wire_bytes[p+5][5]) begin
@@ -224,10 +225,14 @@ module prod2u_v3_protocol_tb;
                 if(wire_bytes[base+56+j]!==ct_celsius(j)) $fatal(1,"CT offset%0d=%0d expected%0d",56+j,wire_bytes[base+56+j],ct_celsius(j));
             for(j=0;j<3;j=j+1)
                 if(wire_bytes[base+83+j]!==expected[32+j]) $fatal(1,"SSR append offset%0d=%0d expected%0d",83+j,wire_bytes[base+83+j],expected[32+j]);
-            if(wire_bytes[base+86]!=={7'd0, hood_switch})
-                $fatal(1,"GET hood_switch=%0d expected=%0d", wire_bytes[base+86], hood_switch);
-            if(wire_bytes[base+87]!==expected[35])
-                $fatal(1,"GET buzzer=%0d expected=%0d", wire_bytes[base+87], expected[35]);
+            if(wire_bytes[base+86]!=={7'd0, estop_btn})
+                $fatal(1,"GET estop_btn=%0d expected=%0d", wire_bytes[base+86], estop_btn);
+            if(wire_bytes[base+87]!=={7'd0, hood_open_btn})
+                $fatal(1,"GET hood_open_btn=%0d expected=%0d", wire_bytes[base+87], hood_open_btn);
+            if(wire_bytes[base+88]!=={7'd0, hood_close_btn})
+                $fatal(1,"GET hood_close_btn=%0d expected=%0d", wire_bytes[base+88], hood_close_btn);
+            if(wire_bytes[base+89]!==expected[35])
+                $fatal(1,"GET buzzer=%0d expected=%0d", wire_bytes[base+89], expected[35]);
         end
     endtask
     reg measuring_ssr = 0;
@@ -303,8 +308,11 @@ module prod2u_v3_protocol_tb;
         if(ssr!==3'b000 || ptc!==24'b0 || buzzer!==1'b0)$fatal(1,"boot heating/buzzer outputs notzero");
         for(i=0;i<36;i=i+1)expected[i]=(i>=24 && i<32)?20:0;
         get_and_check;
-        // Verify active-HIGH hood switch is reported ONLY on GET_ALL, not autonomously
-        hood_switch = 1'b1;
+        // Verify active-HIGH V3.0 buttons are reported ONLY on GET_ALL, not autonomously, and cause NO interlock
+        estop_btn = 1'b1; hood_open_btn = 1'b1; hood_close_btn = 1'b0;
+        repeat(10)@(negedge clk);
+        get_and_check;
+        hood_open_btn = 1'b0; hood_close_btn = 1'b1;
         repeat(10)@(negedge clk);
         get_and_check;
         for(i=0;i<24;i=i+1)send_values[i]=3*i;
@@ -312,7 +320,17 @@ module prod2u_v3_protocol_tb;
         send_values[28]=20;send_values[29]=40;send_values[30]=60;send_values[31]=80;
         send_values[32]=0;send_values[33]=37;send_values[34]=100;send_values[35]=1;
         commit_set;
-        if(buzzer!==1'b1)$fatal(1,"buzzer failed to assert on SET36 buzzer=1");
+        begin : check_v3_buzzer_4khz
+            integer bz_hi, bz_lo, bz_k;
+            bz_hi = 0; bz_lo = 0;
+            for (bz_k = 0; bz_k < 6250; bz_k = bz_k + 1) begin
+                @(negedge clk);
+                if (buzzer === 1'b1) bz_hi = bz_hi + 1;
+                else if (buzzer === 1'b0) bz_lo = bz_lo + 1;
+            end
+            if (bz_hi !== 5000 || bz_lo !== 1250)
+                $fatal(1,"buzzer 4000Hz 80%% mismatch on SET36 buzzer=1: high=%0d low=%0d", bz_hi, bz_lo);
+        end
         get_and_check;
         fork
             measure_ssr_periods(2);
@@ -323,7 +341,7 @@ module prod2u_v3_protocol_tb;
             end
         join
         get_and_check;
-        $display("PASS V3 SET36/GET88 independent CRC, stable temperature offsets, SSR0/37/100 duties, hood_switch & buzzer");
+        $display("PASS V3 SET36/GET90 independent CRC, stable temperature offsets, SSR0/37/100 duties, EPB1/SB1/SB2 pass-through & 4000Hz 80%% buzzer");
 
         for(i=0;i<36;i=i+1)send_values[i]=100;
         send_values[35]=0;
@@ -352,17 +370,17 @@ module prod2u_v3_protocol_tb;
         for(i=0;i<32;i=i+1)send_values[i]=100-2*i;
         send_values[32]=100;send_values[33]=1;send_values[34]=99;send_values[35]=1;
         commit_set;get_and_check;
-        // AUTO remains active throughout this silence; it must never feed WD or leak hood_switch.
+        // AUTO remains active throughout this silence; it must never feed WD or leak buttons.
         #(1500000 * 40);
         @(negedge clk);
         if(ssr!==0 || ptc!==0 || buzzer!==0)$fatal(1,"watchdog failed tozero heating/buzzer outputs");
         for(i=0;i<36;i=i+1)expected[i]=(i>=24 && i<32)?20:0;
-        hood_switch = 1'b0;
+        estop_btn = 1'b0; hood_open_btn = 1'b0; hood_close_btn = 1'b0;
         get_and_check;
         if(ssr!==0 || ptc!==0 || buzzer!==0)$fatal(1,"GET resurrected expired heating/buzzer outputs");
         commit_set;get_and_check;measure_ssr;
         if(auto_count<4 || diag_count<4)$fatal(1,"insufficient automatic status/diagnostics");
-        $display("PASS prod2u_v3_protocol_tb: nominalUART,allCRC,GET88temp-offsets,SSR0/1/37/99/100,SET36atomicity,hood_switch,buzzer,legacy32NACK,badCRC/value,recovery,watchdog,AUTO42+52=%0d/%0d",auto_count,diag_count);
+        $display("PASS prod2u_v3_protocol_tb: nominalUART,allCRC,GET90temp-offsets,SSR0/1/37/99/100,SET36atomicity,EPB1/SB1/SB2,buzzer4kHz80,legacy32NACK,badCRC/value,recovery,watchdog,AUTO42+52=%0d/%0d",auto_count,diag_count);
         $finish;
     end
     initial begin #1200000000;$fatal(1,"V3 real-top regressiontimeout");end

+ 25 - 7
tests/sim/pty_6400_v2_bridge_tb.v

@@ -2,8 +2,9 @@
 
 // 1:1 Physical-Circuit PTY Bridge Testbench for 6400 V2.0 Closed-Loop Co-Simulation.
 // Connects production prod2u_6400_v2_top (with real CT7428 U6 I2C BFM, real BMC
-// 115200 UART BFM, 2N7002 NMOS fan output inverters, SSR1/2/4, hood switch F7,
-// and buzzer H6) to Linux host software over a non-blocking VPI PTY.
+// 115200 UART BFM, 2N7002 NMOS fan output inverters, SSR1/2/4, V3.0 buttons
+// (EPB1=F8, SB1=C11, SB2=A11), and 4000Hz 80% buzzer H6) to Linux host software
+// over a non-blocking VPI PTY.
 module pty_6400_v2_bridge_tb;
     localparam integer CLOCK_HZ = 25000000;
     localparam integer BIT_CLKS = 27; // Production 921600 baud @ 25 MHz (8x faster & 1:1 production rate)
@@ -24,7 +25,9 @@ module pty_6400_v2_bridge_tb;
     wire [3:0]  rear_fan_pwm_out;
     wire ssr1_out, ssr2_out, ssr4_out;
     wire [2:0]  ssr_unused_zero;
-    reg  hood_switch_in = 1'b0;
+    reg  estop_btn_in = 1'b0;
+    reg  hood_open_btn_in = 1'b0;
+    reg  hood_close_btn_in = 1'b0;
     wire buzzer_out;
 
     // 1:1 physical PCB 2N7002 NMOS fan-PWM inverting stage (+5V pullup on connector)
@@ -65,7 +68,9 @@ module pty_6400_v2_bridge_tb;
         .ssr2_out(ssr2_out),
         .ssr4_out(ssr4_out),
         .ssr_unused_zero(ssr_unused_zero),
-        .hood_switch_in(hood_switch_in),
+        .estop_btn_in(estop_btn_in),
+        .hood_open_btn_in(hood_open_btn_in),
+        .hood_close_btn_in(hood_close_btn_in),
         .buzzer_out(buzzer_out)
     );
 
@@ -96,10 +101,23 @@ module pty_6400_v2_bridge_tb;
         .replies_sent(bmc_replies)
     );
 
-    // Physical board stimulus: follow buzzer_out to assert hood_switch_in so
-    // host Python co-sim can verify both hood=0 (at boot) and hood=1 (pressed).
+    // Physical board stimulus: detect 4000 Hz 80% buzzer_out pulses (LOW phase is 1250 clks)
+    // to stably assert EPB1=1 & SB1=1 (SB2=0) when buzzer is active so host Python co-sim
+    // verifies boot=0/0/0, active=1/1/0, and zero CPLD safety interlock on EPB1.
+    reg [11:0] buzzer_low_cnt = 12'd0;
     always @(posedge sys_clk) begin
-        hood_switch_in <= buzzer_out;
+        if (buzzer_out) begin
+            buzzer_low_cnt <= 12'd0;
+            estop_btn_in <= 1'b1;
+            hood_open_btn_in <= 1'b1;
+            hood_close_btn_in <= 1'b0;
+        end else if (buzzer_low_cnt < 12'd2500) begin
+            buzzer_low_cnt <= buzzer_low_cnt + 12'd1;
+        end else begin
+            estop_btn_in <= 1'b0;
+            hood_open_btn_in <= 1'b0;
+            hood_close_btn_in <= 1'b0;
+        end
     end
 
     reg sim_ready = 1'b0;

+ 5 - 4
tests/sim/pwm_commit_handshake_tb.v

@@ -34,7 +34,6 @@ module pwm_commit_handshake_tb;
     wire temp_scl;
     wire temp_sda;
     wire ssr1_out, ssr2_out, ssr4_out;
-    reg  hood_switch_in = 1'b0;
     wire buzzer_out;
 
     pullup(temp_scl);
@@ -63,7 +62,9 @@ module pwm_commit_handshake_tb;
         .ssr2_out(ssr2_out),
         .ssr4_out(ssr4_out),
         .ssr_unused_zero(),
-        .hood_switch_in(hood_switch_in),
+        .estop_btn_in(1'b0),
+        .hood_open_btn_in(1'b0),
+        .hood_close_btn_in(1'b0),
         .buzzer_out(buzzer_out)
     );
 
@@ -208,10 +209,10 @@ module pwm_commit_handshake_tb;
     task wait_for_get_reply;
         output ok;
         begin
-            while (rx_count < 100) @(posedge clk);
+            while (rx_count < 102) @(posedge clk);
             if (rx_buf[0] == 8'hA5 && rx_buf[1] == 8'h5A && rx_buf[2] == 8'h82 &&
                 rx_buf[6] == 8'hA5 && rx_buf[7] == 8'h5A && rx_buf[8] == 8'h42 &&
-                rx_buf[9] == 8'd88) begin
+                rx_buf[9] == 8'd90) begin
                 ok = 1;
             end else begin
                 ok = 0;

+ 50 - 16
tests/unit/test_6400_v2_electrical_contract.py

@@ -116,25 +116,34 @@ def test_v2_fan_pins_and_board_inversion():
         assert f"set_pin_assignment {{ rear_fan_pwm_out[{i}] }} {{ LOCATION = {pin};" in adc_text
 
 
-def test_protocol_36b_set_88b_get_and_hood_buzzer_pins():
-    """Verify v3.1.0 wire protocol lengths (SET=36B, GET=88B) and F7/H6 extra IO pinout."""
+def test_protocol_36b_set_90b_get_and_v30_buttons_buzzer_pins():
+    """Verify v3.2.0 wire protocol lengths (SET=36B, GET=90B), V3.0 F8/C11/A11/H6 pins, and F7 unbound."""
+    import hashlib, re
     wire = yaml.safe_load((ROOT / "contracts/6400-v2-wire.yaml").read_text(encoding="utf-8"))
     assert wire["commands"]["SET_ALL"]["payload_length"] == 36
     assert wire["commands"]["GET_ALL"]["payload_length"] == 0
     assert wire["responses"]["SET_ACK"]["payload_length"] == 0
     assert wire["responses"]["GET_ACK"]["payload_length"] == 0
-    assert wire["responses"]["GET_DATA"]["payload_length"] == 88
+    assert wire["responses"]["GET_DATA"]["payload_length"] == 90
     assert wire["responses"]["NACK"]["payload_length"] == 2
 
-    import re
+    v3_pdf = ROOT / "reference/original/schematics/6400高温罩电气图V3.0.pdf"
+    assert v3_pdf.is_file()
+    assert hashlib.sha256(v3_pdf.read_bytes()).hexdigest() == "ec9b2e67710639451b8cac3979aa888f6347ef021135497054d134645743a4c1"
+
     adc_text = (ROOT / "constraints/prod2u_6400_v2.adc").read_text(encoding="utf-8")
-    assert re.search(r"set_pin_assignment\s*\{\s*hood_switch_in\s*\}\s*\{\s*LOCATION\s*=\s*F7;", adc_text)
-    assert "PULLTYPE = PULLDOWN;" in adc_text
+    assert re.search(r"set_pin_assignment\s*\{\s*estop_btn_in\s*\}\s*\{\s*LOCATION\s*=\s*F8;[^}]*PULLTYPE\s*=\s*PULLDOWN;", adc_text)
+    assert re.search(r"set_pin_assignment\s*\{\s*hood_open_btn_in\s*\}\s*\{\s*LOCATION\s*=\s*C11;[^}]*PULLTYPE\s*=\s*PULLDOWN;", adc_text)
+    assert re.search(r"set_pin_assignment\s*\{\s*hood_close_btn_in\s*\}\s*\{\s*LOCATION\s*=\s*A11;[^}]*PULLTYPE\s*=\s*PULLDOWN;", adc_text)
     assert re.search(r"set_pin_assignment\s*\{\s*buzzer_out\s*\}\s*\{\s*LOCATION\s*=\s*H6;", adc_text)
+    assert not re.search(r"LOCATION\s*=\s*F7;", adc_text), "CON165.12 (ball F7) must be unbound/NC in V3.0"
 
     top_text = (ROOT / "src/top/prod2u_6400_v2_top.v").read_text(encoding="utf-8")
-    assert "input  wire        hood_switch_in" in top_text
+    assert "input  wire        estop_btn_in" in top_text
+    assert "input  wire        hood_open_btn_in" in top_text
+    assert "input  wire        hood_close_btn_in" in top_text
     assert "output wire        buzzer_out" in top_text
+    assert "buzzer_pwm_4khz" in top_text
 
 
 def test_v2_ptc_pins_and_uniqueness():
@@ -326,19 +335,18 @@ def test_v2_schematic_20261015_authority_and_inventory_alignment():
 
 
 def test_con165_field_pin_routes_match_original_board_and_scope():
-    """Independent CAD net chain + observed numbering, not only duplicated labels."""
+    """Independent CAD net chain + V3.0 schematic alignment for CON165 SSR & buttons."""
     import csv, json, re
     rows = list(csv.DictReader((ROOT / 'evidence/hardware/20261023/main_pins.csv').open()))
-    # The native parser's exact header is handled below; assert every resistor is populated.
+    # Assert every series resistor is populated and external pull-ups for EPB1/SB1/SB2 are NC.
     by_pin = {(row['reference'], row['pin']): row for row in rows}
-    expected = [(1, 14, 'E14', 'CPLD_GPIO64', 'PE14', 'R1860', 'R1698'),
-                (2, 13, 'E8', 'ADC0_CH7', 'PE13', 'R1859', 'R1695'),
-                (4, 11, 'D9', 'ADC0_CH5', 'PE11', 'R1857', 'R1694')]
+    expected_ssr = [(14, 'E14', 'CPLD_GPIO64', 'PE14', 'R1860', 'R1698'),
+                    (13, 'E8', 'ADC0_CH7', 'PE13', 'R1859', 'R1695'),
+                    (11, 'D9', 'ADC0_CH5', 'PE11', 'R1857', 'R1694')]
     project = json.loads((ROOT / 'products/6400-v2/project.json').read_text())
     assert project['ssr_control']['pwm_hz'] == 20
-    for (field, cad, ball, fpga_net, middle, r0, r1), channel in zip(expected, project['ssr_control']['channels']):
-        assert field + cad == 15
-        assert channel['connector'] == f'CON165.{field}'
+    for (cad, ball, fpga_net, middle, r0, r1), channel in zip(expected_ssr, project['ssr_control']['channels']):
+        assert channel['connector'] == f'CON165.{cad}'
         assert channel['cad_connector'] == f'CON165.{cad}'
         assert channel['ball'] == ball
         assert by_pin[('U3', ball)]['net'] == fpga_net
@@ -347,8 +355,34 @@ def test_con165_field_pin_routes_match_original_board_and_scope():
             rr = [by_pin[(resistor, str(n))] for n in (1, 2)]
             assert {x['net'] for x in rr} == nets
             assert all(x['declared_nc'] == 'False' for x in rr)
+
+    expected_btns = [
+        ('estop_btn', 10, 'F8', 'ADC0_CH0', 'PE10', 'R1856', 'R1696', 'R1724'),
+        ('hood_open_btn', 9, 'C11', 'BANK0_GPIO2', 'PE9', 'R1855', 'R1693', 'R1717'),
+        ('hood_close_btn', 8, 'A11', 'BANK0_GPIO1', 'PE8', 'R1854', 'R1692', 'R1723'),
+    ]
+    for key, cad, ball, fpga_net, middle, r0, r1, r_pu in expected_btns:
+        btn = project['buttons'][key]
+        assert btn['connector'] == f'CON165.{cad}'
+        assert btn['ball'] == ball
+        assert btn['external_pullup_nc'] == r_pu
+        assert by_pin[('U3', ball)]['net'] == fpga_net
+        assert by_pin[('CON165', str(cad))]['net'] == f'CON_PE{cad}'
+        for resistor, nets in [(r0, {fpga_net, middle}), (r1, {middle, f'CON_PE{cad}'})]:
+            rr = [by_pin[(resistor, str(n))] for n in (1, 2)]
+            assert {x['net'] for x in rr} == nets
+            assert all(x['declared_nc'] == 'False' for x in rr)
+        pu_pins = [by_pin[(r_pu, str(n))] for n in (1, 2)]
+        assert {x['net'] for x in pu_pins} == {'+3V3', f'CON_PE{cad}'}
+        assert all(x['declared_nc'] == 'True' for x in pu_pins)
+
     adc = (ROOT / 'constraints/prod2u_6400_v2.adc').read_text()
-    assignments = re.findall(r'set_pin_assignment \{ (.*?) \} \{ LOCATION = (\w+);', adc)
+    assignments = re.findall(r'set_pin_assignment\s*\{\s*(\S+)\s*\}\s*\{\s*LOCATION\s*=\s*(\w+);', adc)
     assert len({ball for _, ball in assignments}) == len(assignments)
     for index, ball in enumerate(['F3', 'F1', 'G4']):
         assert (f'ssr_unused_zero[{index}]', ball) in assignments
+    assert ('estop_btn_in', 'F8') in assignments
+    assert ('hood_open_btn_in', 'C11') in assignments
+    assert ('hood_close_btn_in', 'A11') in assignments
+    assert ('buzzer_out', 'H6') in assignments
+    assert all(ball != 'F7' for _, ball in assignments)

+ 6 - 2
tests/unit/test_final_golden_frames.py

@@ -95,7 +95,11 @@ def test_generated_golden_vectors_carry_the_six_verbatim() -> None:
     ), "checked-in 6400 golden vectors differ from a raw-contract rebuild"
 
 
-@pytest.mark.parametrize("relative", ("generated/mrdimm/golden-vectors.json", "generated/6400/golden-vectors.json"))
+@pytest.mark.parametrize("relative", (
+    "generated/mrdimm/golden-vectors.json",
+    "generated/6400/golden-vectors.json",
+    "generated/6400-v2/golden-vectors.json",
+))
 def test_every_generated_frame_verifies_and_has_a_legal_shape(relative: str) -> None:
     golden = read_json(ROOT / relative)
     frames = list(golden["frames"].values()) + list(golden.get("fixed_vectors", {}).values())
@@ -115,7 +119,7 @@ def test_every_generated_frame_verifies_and_has_a_legal_shape(relative: str) ->
         elif frame_type == 0x50:
             assert length == 4 and frame[4] < 12 and frame[5] <= 3, text
         elif frame_type == 0x42:
-            assert length in (63, 65, 83, 86, 88), text
+            assert length in (63, 65, 83, 86, 88, 90), text
         elif frame_type == 0x01:
             assert length in (32, 35, 36, 68, 69), text
         elif frame_type == 0x52:

+ 1 - 1
tests/unit/test_gui_current_release.py

@@ -28,7 +28,7 @@ class CurrentGuiTests(unittest.TestCase):
     def test_automatic_data_before_ack_cannot_complete_or_prove_query(self):
         tracker = TransactionTracker()
         tracker.on_port_opened("fixture", 921600)
-        data = bytes([0] * 24 + [20] * 8 + [255] * 51 + [0] * 3 + [0, 0])
+        data = bytes([0] * 24 + [20] * 8 + [255] * 51 + [0] * 3 + [0, 0, 0, 0])
         result = tracker.on_valid_frame(gui.FrameType.GET_DATA, data)
         self.assertEqual(result["status_code"], "UNSOLICITED_DATA")
         self.assertFalse(tracker.get_hardware_status()["matched_request_reply"])

+ 2 - 2
tests/unit/test_gui_stress_current.py

@@ -31,8 +31,8 @@ class FakeSerial:
             self.duties = frame.payload if len(frame.payload) == 36 else frame.payload + b"\x00"
             self.chunks.append(encode_frame(FrameType.SET_ACK))
         else:
-            automatic = encode_frame(FrameType.GET_DATA, bytes(32) + bytes([255]) * 51 + bytes(5))
-            data = bytearray(self.duties[:32] + bytes(range(24)) + bytes(range(27)) + self.duties[32:35] + bytes([0, self.duties[35]]))
+            automatic = encode_frame(FrameType.GET_DATA, bytes(32) + bytes([255]) * 51 + bytes(7))
+            data = bytearray(self.duties[:32] + bytes(range(24)) + bytes(range(27)) + self.duties[32:35] + bytes([0, 0, 0, self.duties[35]]))
             data[24] += self.fan_delta
             raw = automatic if self.only_automatic else (
                 automatic + encode_frame(FrameType.GET_ACK) + encode_frame(FrameType.GET_DATA, data))

+ 25 - 11
tests/unit/test_gui_v3_ssr_diagnostic.py

@@ -36,9 +36,9 @@ def test_v2_set_appends_three_independent_heater_outputs():
             model.set_all(bad)
 
 
-def test_v2_get_preserves_temperature_offsets_and_reports_ssr_hood_buzzer():
+def test_v2_get_preserves_temperature_offsets_and_reports_ssr_buttons_buzzer():
     model = gui.Model("6400-v2")
-    payload = bytearray([0] * 24 + [20] * 8 + [255] * 51 + [3, 41, 97, 1, 1])
+    payload = bytearray([0] * 24 + [20] * 8 + [255] * 51 + [3, 41, 97, 1, 1, 0, 1])
     payload[32] = 28
     payload[56] = 39
     payload[82] = 62
@@ -47,17 +47,29 @@ def test_v2_get_preserves_temperature_offsets_and_reports_ssr_hood_buzzer():
     assert state["ct"]["temperature_c"][0] == 39
     assert state["ct"]["temperature_c"][26] == 62
     assert state["ssr"] == [3, 41, 97]
-    assert state["hood_switch"] is True
+    assert state["estop_btn"] is True
+    assert state["hood_open_btn"] is True
+    assert state["hood_close_btn"] is False
     assert state["buzzer_state"] is True
     assert state["product"] == "6400-v2"
     explained = model.explain(gui.encode_frame(0x42, payload))["fields"]
     assert "SSR2 腔体2+3 共用: 41%" in explained
-    assert any("高温罩开关" in f and "按下" in f for f in explained)
+    assert any("急停按钮 EPB1" in f and "按下" in f for f in explained)
+    assert any("开罩按钮 SB1" in f and "按下" in f for f in explained)
+    assert any("合罩按钮 SB2" in f and "未按下" in f for f in explained)
     assert any("蜂鸣器" in f and "开启" in f for f in explained)
-    # Legacy 86B payload still parses cleanly with False hood/buzzer
+    # Legacy 88B payload still parses cleanly
+    legacy_88 = model.state(bytes(payload[:86]) + bytes([1, 1]))
+    assert legacy_88["ssr"] == [3, 41, 97]
+    assert legacy_88["hood_switch"] is True
+    assert legacy_88["buzzer_state"] is True
+    # Legacy 86B payload still parses cleanly with False buttons/buzzer
     legacy_state = model.state(bytes(payload[:86]))
     assert legacy_state["ssr"] == [3, 41, 97]
-    assert legacy_state["hood_switch"] is False
+    assert legacy_state["estop_btn"] is False
+    assert legacy_state["hood_open_btn"] is False
+    assert legacy_state["hood_close_btn"] is False
+    assert legacy_state["buzzer_state"] is False
     with pytest.raises(ValueError):
         model.state(bytes(83))
     assert len(gui.Model("6400-front-rear").set_all([0] * 24 + [20] * 8)) == 38
@@ -101,12 +113,12 @@ def test_diagnostic_does_not_complete_get_or_set_and_survives_fragmentation():
             assert tracker.tx_state == "WAIT_GET_DATA"
     # MRDIMM rejects 20B 6400-v2 diagnostic, but accepts 8B MRDIMM format-2 diagnostic
     assert not any(kind == "FRAME_VALID" for kind, _ in StreamReceiver("mrdimm-chamber").feed_bytes(diag))
-    mr_diag = gui.encode_frame(0x52, bytes([2, 0x80, 3, 1, 0, 0x0B, 0x03, 0x00]))
+    mr_diag = gui.encode_frame(0x52, bytes([2, 0x80, 3, 2, 0, 0x0B, 0x03, 0x00]))
     mr_evts = StreamReceiver("mrdimm-chamber").feed_bytes(mr_diag)
     assert sum(kind == "FRAME_VALID" for kind, _ in mr_evts) == 1
     mr_parsed = gui.Model("mrdimm-chamber").parse(mr_diag)[0]
     assert mr_parsed["kind"] == "diagnostic"
-    assert mr_parsed["diagnostic"]["firmware_version"] == "3.1.0"
+    assert mr_parsed["diagnostic"]["firmware_version"] == "3.2.0"
     assert mr_parsed["diagnostic"]["motor_any_active"] is True
     assert mr_parsed["diagnostic"]["duty_bank_valid"] is True
     assert mr_parsed["diagnostic"]["watchdog_expired"] is False
@@ -121,8 +133,10 @@ def test_v2_stream_rejects_old_lengths_and_accepts_new_data():
         events = receiver.feed_bytes(gui.encode_frame(kind, bytes(size)))
         assert any(event == "FRAME_REJECTED" for event, _ in events)
         assert not any(event == "FRAME_VALID" for event, _ in events)
-    events = receiver.feed_bytes(gui.encode_frame(0x42, bytes(88)))
-    assert sum(event == "FRAME_VALID" for event, _ in events) == 1
+    events_90 = receiver.feed_bytes(gui.encode_frame(0x42, bytes(90)))
+    assert sum(event == "FRAME_VALID" for event, _ in events_90) == 1
+    events_88 = receiver.feed_bytes(gui.encode_frame(0x42, bytes(88)))
+    assert sum(event == "FRAME_VALID" for event, _ in events_88) == 1
     events_legacy = receiver.feed_bytes(gui.encode_frame(0x42, bytes(86)))
     assert sum(event == "FRAME_VALID" for event, _ in events_legacy) == 1
 
@@ -223,7 +237,7 @@ def test_chamber_curve_store_and_direct_image_export(tmp_path):
 def test_pwm_unified_20hz_and_thermal_test_session_continuous_recording():
     assert gui.PWM_FREQUENCY_HZ == 20
     assert gui.PWM_PERIOD_MS == 50.0
-    assert gui.SOFTWARE_VERSION == "3.1.0"
+    assert gui.SOFTWARE_VERSION == "3.2.0"
 
     cfg = gui.ChamberMappingConfig.default("6400-v2")
     store = gui.TemperatureCurveStore()

+ 26 - 7
tools/_vendor/prod2u_status.py

@@ -1,9 +1,9 @@
 """Status decoding for the two Prod2U products matching the single frame protocol.
 
 GET_DATA:
-- 6400 V2 (v3.1.0): 88 bytes (0..85 unchanged + 86 hood_switch + 87 buzzer_state); backward-compat with 86 bytes
+- 6400 V2 (v3.2.0): 90 bytes (0..85 unchanged + 86 estop_btn + 87 hood_open_btn + 88 hood_close_btn + 89 buzzer_state); backward-compat with 88/86 bytes
 - 6400 V1: 83 bytes (PTC0..23, Front0..3, Rear0..3, BMC0..23, CT0..26)
-- MRDIMM (v3.1.0): 65 bytes (0..62 unchanged + 63 hood_switch + 64 buzzer_state); backward-compat with 63 bytes
+- MRDIMM (v3.2.0): 65 bytes (0..62 unchanged + 63 hood_switch + 64 buzzer_state); backward-compat with 63 bytes
 DIAGNOSTIC (0x52):
 - 6400 V2: 20 bytes (format 1, board_id 0x64)
 - MRDIMM: 8 bytes (format 2, board_id 0x80)
@@ -28,20 +28,36 @@ def state_6400(payload: bytes | bytearray, layout: dict[str, Any] | None = None)
         rear = list(p[39:43])
         bmc_raw = list(p[43:67])
         ct_raw = list(p[67:94])
-    elif len(p) in (83, 86, 88):
+    elif len(p) in (83, 86, 88, 90):
         ptc = list(p[0:24])
         front = list(p[24:28])
         rear = list(p[28:32])
         bmc_raw = list(p[32:56])
         ct_raw = list(p[56:83])
     else:
-        raise ValueError(f"6400 GET_DATA payload length must be 83, 86, 88 or 94, got {len(p)}")
+        raise ValueError(f"6400 GET_DATA payload length must be 83, 86, 88, 90 or 94, got {len(p)}")
     bmc_temps = [decode_temperature(b) for b in bmc_raw]
     ct_temps = [decode_temperature(b) for b in ct_raw]
-    is_v2 = len(p) in (86, 88)
+    is_v2 = len(p) in (86, 88, 90)
     ssr = list(p[83:86]) if is_v2 else []
-    hood_switch = bool(p[86] & 1) if len(p) == 88 else False
-    buzzer = bool(p[87] & 1) if len(p) == 88 else False
+    if len(p) == 90:
+        estop_btn = bool(p[86] & 1)
+        hood_open_btn = bool(p[87] & 1)
+        hood_close_btn = bool(p[88] & 1)
+        buzzer = bool(p[89] & 1)
+        hood_switch = bool(hood_open_btn or hood_close_btn)
+    elif len(p) == 88:
+        estop_btn = False
+        hood_open_btn = False
+        hood_close_btn = False
+        hood_switch = bool(p[86] & 1)
+        buzzer = bool(p[87] & 1)
+    else:
+        estop_btn = False
+        hood_open_btn = False
+        hood_close_btn = False
+        hood_switch = False
+        buzzer = False
     return {
         "product": "6400-v2" if is_v2 else "6400-front-rear",
         "ptc_applied": ptc,
@@ -52,6 +68,9 @@ def state_6400(payload: bytes | bytearray, layout: dict[str, Any] | None = None)
         "rear": rear,
         "ssr": ssr,
         "ssr_applied": ssr,
+        "estop_btn": estop_btn,
+        "hood_open_btn": hood_open_btn,
+        "hood_close_btn": hood_close_btn,
         "hood_switch": hood_switch,
         "buzzer": buzzer,
         "buzzer_state": buzzer,

Разница между файлами не показана из-за своего большого размера
+ 5 - 4
tools/board-viewer/README.zh-CN.md


+ 23 - 0
tools/board-viewer/board_viewer/regression_v2.py

@@ -67,6 +67,29 @@ def validate_v20_mainboard_regression(payload: Mapping[str, object]) -> None:
     if "2" not in pins77 or (pins77["2"].get("fpga") or {}).get("ball") != "M9":
         raise BoardRegressionError("CON77.2 must map to CPLD ball M9 (RX)")
 
+    # Check CON165 (V3.0 aligned SSR1/SSR2/SSR4 + EPB1/SB1/SB2 buttons + CON165.12 NC)
+    con165 = by_reference["CON165"]
+    pins165 = _pin_index(con165)
+    for pnum, ball, label in (
+        ("14", "E14", "SSR1"),
+        ("13", "E8", "SSR2"),
+        ("11", "D9", "SSR4"),
+        ("10", "F8", "EPB1"),
+        ("9", "C11", "SB1"),
+        ("8", "A11", "SB2"),
+    ):
+        if pnum not in pins165 or (pins165[pnum].get("fpga") or {}).get("ball") != ball:
+            raise BoardRegressionError(f"CON165.{pnum} ({label}) must map to CPLD ball {ball}")
+    if "12" in pins165 and (pins165["12"].get("fpga") or {}).get("ball") == "F7":
+        raise BoardRegressionError("CON165.12 must be NC in V3.0 (old U3.F7 binding removed)")
+
+    # Check CON146 (V3.0 +24V high-side buzzer driven by U3.H6)
+    if "CON146" not in by_reference:
+        raise BoardRegressionError("CON146 missing on V2.0 board")
+    pins146 = _pin_index(by_reference["CON146"])
+    if "1" not in pins146 or (pins146["1"].get("fpga") or {}).get("ball") != "H6":
+        raise BoardRegressionError("CON146.1 (buzzer) must map to CPLD ball H6")
+
     try:
         validate_resistor_index(payload)
     except ValueError as exc:

+ 2 - 0
tools/board-viewer/board_viewer/server.py

@@ -69,6 +69,8 @@ SCHEMATIC_FILES = {
     "/schematics/fcb_v2_0.pdf": "reference/original/schematics/fcb_fpga+mcu_v2_0_0902.pdf",
     "/schematics/6400_v2_0_electrical.pdf": "reference/original/schematics/6400高温罩电气图V2.0.pdf",
     "/schematics/6400高温罩电气图V2.0.pdf": "reference/original/schematics/6400高温罩电气图V2.0.pdf",
+    "/schematics/6400_v3_0_electrical.pdf": "reference/original/schematics/6400高温罩电气图V3.0.pdf",
+    "/schematics/6400高温罩电气图V3.0.pdf": "reference/original/schematics/6400高温罩电气图V3.0.pdf",
     "/schematics/8000_v1_2_electrical.pdf": "reference/original/schematics/8000高温罩电气图V1.2.pdf",
     "/schematics/8000高温罩电气图V1.2.pdf": "reference/original/schematics/8000高温罩电气图V1.2.pdf",
 }

+ 150 - 37
tools/board-viewer/generate_v2_0_assets.py

@@ -890,21 +890,30 @@ def _build_v20_annotations(
         }
 
     # V2.0 R1294 is fitted to +24V; V1.2 uses +12V at the same reference.
-    # Neither assembly makes this power LED output a TTL UART.
+    # V3.0 schematic & v3.2.0 RTL bind CON146.1/2 to the MCU-triggered +24V buzzer
+    # (4000 Hz, 80% duty square wave on U3.H6; NOT a TTL UART).
     touchpoint_anns["CON146"] = {
-        "summary": "按键/指示灯扩展座3:Pin1为24V KEYLED功率输出,Pin3为按键输入,Pin2/4为GND;Host TTL使用CON12。",
+        "summary": "蜂鸣器 +24V 高边驱动座(电气图 V3.0:Pin1 KEYLED_V3 +24V 蜂鸣器正端 ← U3.H6 经 R1301/R1297/Q10621/Q10620 驱动,开启时 4000Hz 80% 占空比方波;Pin2 GND 蜂鸣器负端;SET_ALL 字节35 / GET_DATA 字节89;非 TTL)",
         "pins": {
             "1": {
-                "summary": "H6经R1301/R1297、Q10621 NMOS和Q10620 PMOS控制KEYLED_V3;R1294已装接+24V,R1295的+5V选项未装。不是TTL。",
-                "direction": "output", "external_level": "+24V switched power",
-                "function_category": "power", "reserved": True,
-                "fixed_load_conflict": True, "evidence_tier": "cross_verified",
-                "path": ["U3.H6", "R1301", "R1297", "Q10621", "Q10620", "CON146.1 (KEYLED_V3)"],
+                "summary": "CON146.1 (KEYLED_V3, +24V 高边蜂鸣器输出) ← Q10620(HL2309, R1294装+24V/R1295 NC) ← Q10621(2N7002) ← R1297(220Ω) ← SW_KEYLED3 ← R1301(0Ω) ← FPGA U3.H6 (buzzer_out:开启 4000Hz 80% 占空比方波 6250拍周期/5000高/1250低;关闭/复位/看门狗保持低电平;非 TTL)",
+                "direction": "output", "external_level": "+24V high-side buzzer (4000Hz 80% duty)",
+                "function_category": "pwm", "active_level": "high", "polarity": "normal",
+                "reserved": True, "fixed_load_conflict": True, "evidence_tier": "cross_verified",
+                "path": ["U3.H6 (buzzer_out)", "R1301 (0R)", "SW_KEYLED3", "R1297 (220R)", "Q10621 (2N7002)", "Q10620 (HL2309 +24V)", "CON146.1 (KEYLED_V3)"],
                 "external_components": ["R1301", "R1297", "Q10621", "Q10620", "R1294", "R1295"],
-                "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd"],
+                "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V3.0.pdf", "constraints/prod2u_6400_v2.adc"],
+                "fpga": {
+                    "ball": "H6",
+                    "board_signal": "SW_KEYLED3",
+                    "io_standard": "LVCMOS33",
+                    "capabilities": ["pwm", "gpio_output"],
+                    "evidence_tier": "cross_verified",
+                    "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V3.0.pdf", "constraints/prod2u_6400_v2.adc"],
+                },
             },
             "3": {
-                "summary": "CON146.3 KEY3_CON经R1293/R1110接U3.N7;按键输入网络带RC,不作为Host TTL。",
+                "summary": "CON146.3 KEY3_CON 经 R1293/R1110 接 U3.N7;按键输入网络带 RC,当前固件未绑定,不作为 Host TTL。",
                 "direction": "input", "external_level": "3.3V key input with RC",
                 "function_category": "gpio_input", "reserved": True,
                 "evidence_tier": "cross_verified",
@@ -912,10 +921,18 @@ def _build_v20_annotations(
                 "external_components": ["R1293", "R1110"],
                 "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd"],
             },
-            **{p: {"summary": f"CON146.{p} GND", "direction": "passive",
-                   "external_level": "0V", "function_category": "ground",
-                   "path": [f"CON146.{p} (GND)"], "evidence_tier": "cross_verified",
-                   "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd"]} for p in ("2", "4")},
+            "2": {
+                "summary": "CON146.2 GND(蜂鸣器负极回路地)",
+                "direction": "passive", "external_level": "0V", "function_category": "ground",
+                "path": ["CON146.2 (GND)"], "evidence_tier": "cross_verified",
+                "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V3.0.pdf"],
+            },
+            "4": {
+                "summary": "CON146.4 GND",
+                "direction": "passive", "external_level": "0V", "function_category": "ground",
+                "path": ["CON146.4 (GND)"], "evidence_tier": "cross_verified",
+                "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd"],
+            },
         },
     }
 
@@ -1384,53 +1401,121 @@ def _build_v20_annotations(
                 "pins": pins_dict,
             }
 
-    # CON165, CON166 (14-pin + 2-shield Photoelectric / SSR headers)
+    # CON165, CON166 (14-pin + 2-shield SSR / Hood-Button / Photoelectric headers)
+    # 6400高温罩电气图V3.0 Page 4 aligns CON165 pins 1:1 with FCB_FPGA+MCU_V2.0_20260914.brd:
+    #   CON165.14/13/11 -> SSR1/SSR2/SSR4 (U3.E14/E8/D9, 20Hz PWM)
+    #   CON165.12       -> NC (empty pin; old temporary U3.F7 removed)
+    #   CON165.10/9/8   -> EPB1/SB1/SB2 (U3.F8/C11/A11, PULLDOWN, GET_ALL bytes 86/87/88)
     ssr_active_pins = {
-        "CON165.14": "现场CON165.1 SSR1 (ssr1_out, 驱动 -1-7E 110W/24V 辅助加热器)",
-        "CON165.13": "现场CON165.2 SSR2 (ssr2_out, 腔体2+3共用,驱动 -2-7E 220W/24V 加热布)",
-        "CON165.11": "现场CON165.4 SSR4 (ssr4_out, 驱动 -4-7E 110W/24V 辅助加热器)",
+        "CON165.14": ("SSR1 (ssr1_out, 腔1 -1-7E 110W/24V 加热布)", "R1698", "R1860", "CPLD_GPIO64"),
+        "CON165.13": ("SSR2 (ssr2_out, 腔2+3共用 -2-7E 220W/24V 加热布)", "R1695", "R1859", "ADC0_CH7"),
+        "CON165.11": ("SSR4 (ssr4_out, 腔4 -4-7E 110W/24V 加热布)", "R1694", "R1857", "ADC0_CH5"),
+    }
+    v30_button_pins = {
+        "CON165.10": (
+            "急停按钮 EPB1 (estop_btn_in)",
+            "F8",
+            "IO10 / CON_PE10 -> R1696(22Ω) -> PE10 -> R1856(0Ω) -> ADC0_CH0 -> U3.F8",
+            ["R1696", "R1856", "R1724"],
+            "R1724(10K上拉)未贴装(NC),约束配 LVCMOS33 + 内部 PULLDOWN(默认低 0x00,按下高 0x01);仅在 GET_ALL 时放进回包第 86 字节透传,不做任何 CPLD 安全联锁或停机处理",
+        ),
+        "CON165.9": (
+            "开罩按钮 SB1 (hood_open_btn_in)",
+            "C11",
+            "IO9 / CON_PE9 -> R1693(22Ω) -> PE9 -> R1855(0Ω) -> BANK0_GPIO2 -> U3.C11",
+            ["R1693", "R1855", "R1717"],
+            "R1717(10K上拉)未贴装(NC),约束配 LVCMOS33 + 内部 PULLDOWN(默认低 0x00,按下高 0x01);仅在 GET_ALL 时放进回包第 87 字节,不主动上报",
+        ),
+        "CON165.8": (
+            "合罩按钮 SB2 (hood_close_btn_in)",
+            "A11",
+            "IO8 / CON_PE8 -> R1692(22Ω) -> PE8 -> R1854(0Ω) -> BANK0_GPIO1 -> U3.A11",
+            ["R1692", "R1854", "R1723"],
+            "R1723(10K上拉)未贴装(NC),约束配 LVCMOS33 + 内部 PULLDOWN(默认低 0x00,按下高 0x01);仅在 GET_ALL 时放进回包第 88 字节,不主动上报",
+        ),
     }
+    con165_verified_pins = {"14", "13", "12", "11", "10", "9", "8", "1", "2", "4"}
     for ref in ("CON165", "CON166"):
         pins_dict = {}
         for p_idx in range(1, 15):
             pnum = str(p_idx)
             key = f"{ref}.{pnum}"
             net, hit = trace_net_to_u3_u27(ref, pnum, comp_pins, net_to_pins)
-            if hit is not None:
+            if key in v30_button_pins:
+                btn_label, btn_ball, chain_txt, btn_res, btn_note = v30_button_pins[key]
+                pins_dict[pnum] = {
+                    "summary": f"{key} ({net}) → {btn_label} → FPGA U3.{btn_ball}({chain_txt};{btn_note})",
+                    "direction": "input",
+                    "external_level": "3.3V LVCMOS (PULLDOWN, active-HIGH 0x01)",
+                    "function_category": "gpio_input",
+                    "active_level": "high",
+                    "polarity": "normal",
+                    "adc_pulltype": "PULLDOWN",
+                    "external_components": btn_res,
+                    "path": [f"{key} ({net})", f"{btn_res[0]} (22R)", f"{btn_res[1]} (0R)", f"U3.{btn_ball} ({btn_label})"],
+                    "evidence_tier": "cross_verified",
+                    "sources": [
+                        "FCB_FPGA+MCU_V2.0_20260914.brd",
+                        "6400高温罩电气图V3.0.pdf",
+                        "evidence/hardware/20261023/main_bom.csv",
+                        "constraints/prod2u_6400_v2.adc",
+                    ],
+                    "fpga": {
+                        "ball": btn_ball,
+                        "board_signal": net,
+                        "io_standard": "LVCMOS33",
+                        "capabilities": ["gpio_input", "gpio"],
+                        "evidence_tier": "cross_verified",
+                        "sources": ["6400高温罩电气图V3.0.pdf", "constraints/prod2u_6400_v2.adc"],
+                    },
+                }
+            elif key == "CON165.12":
+                pins_dict[pnum] = {
+                    "summary": "CON165.12 (IO12 / CON_PE12) — 电气图 V3.0 第4页为空脚 (NC),已取消旧版暂绑的 U3.F7",
+                    "direction": "passive",
+                    "external_level": "NC (unconnected in V3.0)",
+                    "function_category": "unknown",
+                    "path": ["CON165.12 (CON_PE12)", "R1697 (22R)", "R1858 (0R)", "U3.F7 (unbound/NC in V3.0)"],
+                    "external_components": ["R1697", "R1858", "R1725"],
+                    "evidence_tier": "cross_verified",
+                    "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V3.0.pdf"],
+                }
+            elif hit is not None:
                 _dev, ball, _fpga_net, path_list, ext_list = hit
                 if key in ssr_active_pins:
-                    ssr_label = ssr_active_pins[key]
+                    ssr_label, r_ser, r_zero, fpga_sig = ssr_active_pins[key]
                     pins_dict[pnum] = {
-                        "summary": f"{key} ({net}) → FPGA U3.{ball} ({ssr_label} 20Hz PWM,高有效,默认关闭)",
+                        "summary": f"{key} ({net} → {r_ser}/{r_zero} → {fpga_sig}) → FPGA U3.{ball}({ssr_label},20Hz PWM 50ms周期,高有效,默认/看门狗关闭)",
                         "direction": "output",
-                        "external_level": "3.3V SSR Control",
-                        "function_category": "gpio_output",
+                        "external_level": "3.3V SSR 20Hz PWM",
+                        "function_category": "pwm",
                         "active_level": "high",
                         "polarity": "normal",
-                        "external_components": ext_list,
-                        "path": path_list,
+                        "external_components": [r_ser, r_zero],
+                        "path": [f"{key} ({net})", f"{r_ser} (22R)", f"{r_zero} (0R)", f"U3.{ball} ({fpga_sig})"],
                         "evidence_tier": "cross_verified",
-                        "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V2.0.pdf"],
+                        "sources": ["FCB_FPGA+MCU_V2.0_20260914.brd", "6400高温罩电气图V3.0.pdf", "constraints/prod2u_6400_v2.adc"],
                         "fpga": {
                             "ball": ball,
                             "board_signal": net,
                             "io_standard": "LVCMOS33",
-                            "capabilities": ["gpio_output", "gpio"],
+                            "capabilities": ["pwm", "gpio_output", "gpio"],
                             "evidence_tier": "cross_verified",
-                            "sources": ["config/pin_inventory.fcb_fpga_mcu_v2_0.json"],
+                            "sources": ["6400高温罩电气图V3.0.pdf", "constraints/prod2u_6400_v2.adc"],
                         },
                     }
                 elif ref == "CON165" and p_idx in (1, 2, 4):
                     pins_dict[pnum] = {
-                        "summary": f"CAD {key} / 现场CON165.{15-p_idx} → U3.{ball},旧SSR引脚固定低电平",
+                        "summary": f"{key} ({net}) → U3.{ball},旧版废弃 SSR 引脚(当前固件 ssr_unused_zero 固定拉低)",
                         "direction": "output", "external_level": "0V", "function_category": "gpio_output",
+                        "reserved": True,
                         "path": path_list, "external_components": ext_list,
                         "evidence_tier": "cross_verified", "sources": ["constraints/prod2u_6400_v2.adc"],
-                        "fpga": {"ball": ball, "board_signal": net, "io_standard": "LVCMOS33"},
+                        "fpga": {"ball": ball, "board_signal": net, "io_standard": "LVCMOS33", "evidence_tier": "cross_verified", "sources": ["constraints/prod2u_6400_v2.adc"]},
                     }
                 else:
                     pins_dict[pnum] = {
-                        "summary": f"{key} ({net}) ↔ FPGA U3.{ball}(光电限位/SSR 预留通道,6400 V2.0 空余)",
+                        "summary": f"{key} ({net}) ↔ FPGA U3.{ball}(光电限位/GPIO 预留通道,6400 V2.0 空余)",
                         "direction": "bidirectional",
                         "external_level": "3.3V LVCMOS",
                         "function_category": "gpio",
@@ -1449,7 +1534,9 @@ def _build_v20_annotations(
                     }
         touchpoint_anns[ref] = {
             "summary": (
-                "固态继电器 SSR 与光电接口座 1(现场Pin 1/2/4(CAD 14/13/11)对应 6400 V2.0 SSR1/SSR2/SSR4 20Hz PWM,50ms控制(腔体1/2+3共用/4,默认关闭) → U3.E14/E8/D9 驱动 -1-7E 110W / -2-7E 220W / -4-7E 110W;旧F3/F1/G4固定低,其余空余;现场针号=15-CAD针号)"
+                "固态继电器 SSR 与急停/开关罩按钮接口座(电气图 V3.0 第4页与主板物理脚位 1:1 对齐:"
+                "Pin 14/13/11=SSR1/SSR2/SSR4 → U3.E14/E8/D9 20Hz PWM;Pin 12=空脚 NC;"
+                "Pin 10=急停 EPB1 → U3.F8、Pin 9=开罩 SB1 → U3.C11、Pin 8=合罩 SB2 → U3.A11 均配 PULLDOWN 仅 GET_ALL 透传;旧 F3/F1/G4 固定低电平)"
                 if ref == "CON165"
                 else "光电限位与 GPIO 扩展座 2(空余插座:Pin 1..14 为 CON_PE15..28 ↔ U3.D16/E15/D14/R9/T10/L2/L1/M2/N3/K4/H2/H1/J2/K3)"
             ),
@@ -1697,20 +1784,41 @@ def _build_v20_annotations(
         },
         {
             "id": "ssr-control",
-            "name": "三路加热布 SSR 调功控制",
+            "name": "三路加热布 SSR 调功控制 (SSR1/SSR2/SSR4)",
             "touchpoint": "CON165",
-            "pins": ["1", "2", "4"],
-            "external_level": "3.3V高有效;1秒周期;默认/看门狗关闭",
+            "pins": ["14", "13", "11"],
+            "external_level": "3.3V高有效;20Hz PWM (50ms周期);默认/看门狗关闭",
             "evidence_tier": "cross_verified",
-            "sources": ["config/pin_inventory.fcb_fpga_mcu_v2_0.json"],
+            "sources": ["reference/original/schematics/6400高温罩电气图V3.0.pdf", "config/pin_inventory.fcb_fpga_mcu_v2_0.json"],
+        },
+        {
+            "id": "hood-buttons",
+            "name": "急停 EPB1 / 开罩 SB1 / 合罩 SB2 按钮检测 (仅 GET_ALL 透传)",
+            "touchpoint": "CON165",
+            "pins": ["10", "9", "8"],
+            "external_level": "3.3V LVCMOS + 内部 PULLDOWN(外置上拉未贴装,默认低0x00/按下高0x01)",
+            "evidence_tier": "cross_verified",
+            "sources": ["reference/original/schematics/6400高温罩电气图V3.0.pdf", "config/pin_inventory.fcb_fpga_mcu_v2_0.json"],
+        },
+        {
+            "id": "buzzer-output",
+            "name": "MCU 触发蜂鸣器高边驱动 (4000Hz / 80% 占空比)",
+            "touchpoint": "CON146",
+            "pins": ["1", "2"],
+            "external_level": "+24V 高边开关 (U3.H6 4000Hz 80%占空比方波:6250拍周期/5000高/1250低)",
+            "evidence_tier": "cross_verified",
+            "sources": ["reference/original/schematics/6400高温罩电气图V3.0.pdf", "config/pin_inventory.fcb_fpga_mcu_v2_0.json"],
         },
     ]
 
     # These pin paths are produced by the structural BFS above. NC options and
     # transistor conduction are not verified by that search, even if names match.
+    # CON165 pins verified against main_bom.csv + main_pins.csv + V3.0 PDF stay cross_verified.
     for ref in [*(f"CON{i}" for i in range(147, 151)),
                 *(f"CON{i}" for i in range(154, 164)), "CON165", "CON166", "CON171"]:
-        for pin in touchpoint_anns.get(ref, {}).get("pins", {}).values():
+        for pnum, pin in touchpoint_anns.get(ref, {}).get("pins", {}).items():
+            if ref == "CON165" and pnum in con165_verified_pins:
+                continue
             if "fpga" in pin:
                 _mark_inferred(pin)
                 pin["summary"] = "拓扑候选(未核装配/导通):" + pin.get("summary", "")
@@ -1911,10 +2019,11 @@ def generate_v2_0_mainboard() -> None:
                 "bytes": asset_file.stat().st_size,
             }
 
+    v30_pdf_path = ROOT / "reference/original/schematics/6400高温罩电气图V3.0.pdf"
     build_info = {
         "schema": "board-viewer-build-info-v1",
         "generated_at": datetime.now(timezone.utc).isoformat(),
-        "generator_version": "2.1.0",
+        "generator_version": "3.2.0",
         "toolchain": {"python": sys.version.split()[0], "kicad": "not_used"},
         "sources": {
             **_generator_sources(),
@@ -1922,6 +2031,10 @@ def generate_v2_0_mainboard() -> None:
                 "path": "reference/original/board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd",
                 "sha256": sha256_file(brd_path),
             },
+            "schematic_v3_0": {
+                "path": "reference/original/schematics/6400高温罩电气图V3.0.pdf",
+                "sha256": sha256_file(v30_pdf_path),
+            },
             "annotations": {
                 "path": str(ANNOTATIONS_V12_PATH.relative_to(ROOT)),
                 "sha256": sha256_file(ANNOTATIONS_V12_PATH),

Разница между файлами не показана из-за своего большого размера
+ 528 - 363
tools/board-viewer/generated-v2_0/board-data.json


+ 11 - 7
tools/board-viewer/generated-v2_0/build-info.json

@@ -1,7 +1,7 @@
 {
   "schema": "board-viewer-build-info-v1",
-  "generated_at": "2026-10-29T16:19:52.676082+00:00",
-  "generator_version": "2.1.0",
+  "generated_at": "2026-11-24T03:32:08.650760+00:00",
+  "generator_version": "3.2.0",
   "toolchain": {
     "python": "3.13.5",
     "kicad": "not_used"
@@ -9,7 +9,7 @@
   "sources": {
     "generator_v20": {
       "path": "tools/board-viewer/generate_v2_0_assets.py",
-      "sha256": "93e6f87d12b37ee72a06b1e3adaa23f1b3ab1fa31fd80da40fa4cc97d0bac250"
+      "sha256": "1092a715230ca70e041e3b014ff95e5a98d56778998a787621925644d21315d1"
     },
     "generator_annotations": {
       "path": "tools/board-viewer/board_viewer/annotations.py",
@@ -35,13 +35,17 @@
       "path": "reference/original/board/FCB_FPGA_MCU_V2.0_20260914/FCB_FPGA+MCU_V2.0_20260914.brd",
       "sha256": "c4a75fdc17746910989b76f2e10c357e57d67ec73bad79ad4310948c0e71fcfe"
     },
+    "schematic_v3_0": {
+      "path": "reference/original/schematics/6400\u9ad8\u6e29\u7f69\u7535\u6c14\u56feV3.0.pdf",
+      "sha256": "ec9b2e67710639451b8cac3979aa888f6347ef021135497054d134645743a4c1"
+    },
     "annotations": {
       "path": "config/board_viewer_annotations.fcb_fpga_mcu_v1_2.json",
       "sha256": "396003e88574d77b88314b0eb97d5efe957bf07273041623714763a82a3d9a74"
     },
     "inventory": {
       "path": "config/pin_inventory.fcb_fpga_mcu_v2_0.json",
-      "sha256": "4a76c797f6c194c3af41b10c1d0a58f9b1208ed1cc157643d547766aafac15f3"
+      "sha256": "08fc085c9f94b46c9288ce1bc03a2b96d4ab3807eb06a6ac1dadd784036ad56a"
     },
     "schema_data": {
       "path": "schemas/board_viewer_data.schema.json",
@@ -54,11 +58,11 @@
   },
   "assets": {
     "board-data.json": {
-      "sha256": "abdbaba9716d06a78e2ca1d6ea3a5d722a61488ab6b950633e2250997312833b",
-      "bytes": 3926332
+      "sha256": "b9493dd242f603aead2089c180ccd3fa1baa378a102a1238d09a36c3875f5347",
+      "bytes": 3933224
     },
     "import-report.json": {
-      "sha256": "ada2248aa0e9cd19785845633fb25265c84b84b42c63a0c08cdab8c211d56a0a",
+      "sha256": "5a1c1afd61bb1856d122dd05cb4a4df4df9ecf4b3c0d377997e39584dac69f00",
       "bytes": 485
     },
     "board-mask-edge.svg": {

+ 1 - 1
tools/board-viewer/generated-v2_0/import-report.json

@@ -5,7 +5,7 @@
   "source_format": "allegro_brd",
   "output_file": "board-data.json",
   "errors": [],
-  "timestamp": "2026-10-29T16:19:52.660963+00:00",
+  "timestamp": "2026-11-24T03:32:08.624533+00:00",
   "stats": {
     "connectors": 41,
     "jumpers": 18,

+ 3 - 3
tools/board-viewer/generated-v2_0_fan/build-info.json

@@ -1,6 +1,6 @@
 {
   "schema": "board-viewer-build-info-v1",
-  "generated_at": "2026-10-29T16:19:53.245599+00:00",
+  "generated_at": "2026-11-24T03:32:09.627195+00:00",
   "generator_version": "2.1.0",
   "toolchain": {
     "python": "3.13.5",
@@ -9,7 +9,7 @@
   "sources": {
     "generator_v20": {
       "path": "tools/board-viewer/generate_v2_0_assets.py",
-      "sha256": "93e6f87d12b37ee72a06b1e3adaa23f1b3ab1fa31fd80da40fa4cc97d0bac250"
+      "sha256": "1092a715230ca70e041e3b014ff95e5a98d56778998a787621925644d21315d1"
     },
     "generator_annotations": {
       "path": "tools/board-viewer/board_viewer/annotations.py",
@@ -50,7 +50,7 @@
       "bytes": 193774
     },
     "import-report.json": {
-      "sha256": "f48dd5505d0b4a3f756c4f63df5d813fb7220c68b260390d7950de212563dac2",
+      "sha256": "bed4ac392097218942c33a9b8cf559ebdeda4edaa9ddf8eb6c2dd56280028ff6",
       "bytes": 390
     },
     "board-mask-edge.svg": {

+ 1 - 1
tools/board-viewer/generated-v2_0_fan/import-report.json

@@ -5,7 +5,7 @@
   "source_format": "allegro_brd",
   "output_file": "board-data.json",
   "errors": [],
-  "timestamp": "2026-10-29T16:19:53.243996+00:00",
+  "timestamp": "2026-11-24T03:32:09.625148+00:00",
   "stats": {
     "connectors": 7,
     "fuses": 4

+ 115 - 21
tools/board-viewer/web/board-logic.mjs

@@ -1172,21 +1172,21 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         logicalSignal: `${rtlPort} (${ptc.net})`,
         boardSignal: ptc.net,
         peripheralRole: ptc.role,
-        pinDefinition: `24V PTC 加热功率输出 (${ptc.role}, 500Hz 高有效 PWM)`,
+        pinDefinition: `24V PTC 加热功率输出 (${ptc.role}, 20Hz 统一高有效 PWM, 50ms周期)`,
         displayBadge: `FPGA U3.${ptc.ball} · ${rtlPort} (${ptc.tag}/${ptc.net})`,
         tags,
         isUsed: ptc.idx < 24,
       };
     }
     const v20FanMap = {
-      "CON155.5": {tag: "FAN1", alt: "Front0", rtl: "fan_front_out[0]", ball: "P12", role: "1#腔新风/进风双风扇 PWM (Front0)"},
-      "CON155.6": {tag: "FAN5", alt: "Rear0", rtl: "fan_rear_out[0]", ball: "A10", role: "1#腔排风/出风单风扇 PWM (Rear0)"},
-      "CON155.11": {tag: "FAN2", alt: "Front1", rtl: "fan_front_out[1]", ball: "D8", role: "2#腔新风/进风双风扇 PWM (Front1)"},
-      "CON155.12": {tag: "FAN6", alt: "Rear1", rtl: "fan_rear_out[1]", ball: "C7", role: "2#腔排风/出风单风扇 PWM (Rear1)"},
-      "CON154.5": {tag: "FAN3", alt: "Front2", rtl: "fan_front_out[2]", ball: "C4", role: "3#腔新风/进风双风扇 PWM (Front2)"},
-      "CON154.6": {tag: "FAN7", alt: "Rear2", rtl: "fan_rear_out[2]", ball: "B5", role: "3#腔排风/出风单风扇 PWM (Rear2)"},
-      "CON154.11": {tag: "FAN4", alt: "Front3", rtl: "fan_front_out[3]", ball: "B1", role: "4#腔新风/进风双风扇 PWM (Front3)"},
-      "CON154.12": {tag: "FAN8", alt: "Rear3", rtl: "fan_rear_out[3]", ball: "A14", role: "4#腔排风/出风单风扇 PWM (Rear3)"},
+      "CON154.5": {tag: "FAN1", alt: "Front0", rtl: "fan_front_out[0]", ball: "C4", role: "1#腔新风/进风双风扇 PWM (Front0)"},
+      "CON154.6": {tag: "FAN5", alt: "Rear0", rtl: "fan_rear_out[0]", ball: "B5", role: "1#腔排风/出风单风扇 PWM (Rear0)"},
+      "CON154.11": {tag: "FAN2", alt: "Front1", rtl: "fan_front_out[1]", ball: "B1", role: "2#腔新风/进风双风扇 PWM (Front1)"},
+      "CON154.12": {tag: "FAN6", alt: "Rear1", rtl: "fan_rear_out[1]", ball: "A14", role: "2#腔排风/出风单风扇 PWM (Rear1)"},
+      "CON155.5": {tag: "FAN3", alt: "Front2", rtl: "fan_front_out[2]", ball: "P12", role: "3#腔新风/进风双风扇 PWM (Front2)"},
+      "CON155.6": {tag: "FAN7", alt: "Rear2", rtl: "fan_rear_out[2]", ball: "A10", role: "3#腔排风/出风单风扇 PWM (Rear2)"},
+      "CON155.11": {tag: "FAN4", alt: "Front3", rtl: "fan_front_out[3]", ball: "D8", role: "4#腔新风/进风双风扇 PWM (Front3)"},
+      "CON155.12": {tag: "FAN8", alt: "Rear3", rtl: "fan_rear_out[3]", ball: "C7", role: "4#腔排风/出风单风扇 PWM (Rear3)"},
     };
     if (key in v20FanMap) {
       const f = v20FanMap[key];
@@ -1196,16 +1196,16 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         logicalSignal: `${f.rtl} (${f.alt})`,
         boardSignal: f.alt,
         peripheralRole: f.role,
-        pinDefinition: `${f.role} (500Hz PWM;连接器高电平为ON,FPGA球位低电平为ON,经主板 2N7002 NMOS 反相, FAN_BOARD_INVERT_MASK=8'hFF)`,
+        pinDefinition: `${f.role} (20Hz 统一 PWM;连接器高电平为ON,FPGA球位低电平为ON,经主板 2N7002 NMOS 反相, FAN_BOARD_INVERT_MASK=8'hFF)`,
         displayBadge: `FPGA U3.${f.ball} · ${f.rtl} (${f.alt}/${f.tag})`,
         tags: ["FAN", f.tag, f.alt.toUpperCase()],
         isUsed: true,
       };
     }
     const v20SsrMap = {
-      "CON165.1": {tag: "SSR1", rtl: "ssr1_out (ssr_ctrl_out[0])", ball: "F3", role: "SSR1 固态继电器常开控制 (-1-7E 110W/24V)"},
-      "CON165.2": {tag: "SSR2", rtl: "ssr2_out (ssr_ctrl_out[1])", ball: "F1", role: "SSR2 固态继电器常开控制 (-2-7E 220W/24V)"},
-      "CON165.4": {tag: "SSR4", rtl: "ssr4_out (ssr_ctrl_out[2])", ball: "G4", role: "SSR4 固态继电器常开控制 (-4-7E 110W/24V)"},
+      "CON165.14": {tag: "SSR1", rtl: "ssr1_out", ball: "E14", role: "SSR1 腔1加热布 20Hz PWM 控制 (-1-7E 110W/24V,CON_PE14→R1698/R1860→CPLD_GPIO64)"},
+      "CON165.13": {tag: "SSR2", rtl: "ssr2_out", ball: "E8", role: "SSR2 腔2+3共用加热布 20Hz PWM 控制 (-2-7E 220W/24V,CON_PE13→R1695/R1859→ADC0_CH7)"},
+      "CON165.11": {tag: "SSR4", rtl: "ssr4_out", ball: "D9", role: "SSR4 腔4加热布 20Hz PWM 控制 (-4-7E 110W/24V,CON_PE11→R1694/R1857→ADC0_CH5)"},
     };
     if (key in v20SsrMap) {
       const s = v20SsrMap[key];
@@ -1215,12 +1215,72 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         logicalSignal: `${s.rtl} (${s.tag})`,
         boardSignal: `${s.tag}_CTRL`,
         peripheralRole: s.role,
-        pinDefinition: `${s.role} (配置完成后固定输出 1'b1 高电平使能主回路)`,
+        pinDefinition: `${s.role} (电气图 V3.0 第4页对齐;20Hz 统一 PWM 50ms周期,默认/看门狗输出 0%)`,
         displayBadge: `FPGA U3.${s.ball} · ${s.rtl} (${s.tag})`,
         tags: ["SSR", s.tag],
         isUsed: true,
       };
     }
+    const v20BtnMap = {
+      "CON165.10": {tag: "EPB1", rtl: "estop_btn_in", ball: "F8", byteIdx: 86, role: "急停按钮 EPB1 检测 (IO10/CON_PE10→R1696/R1856→ADC0_CH0)", extra: "无 CPLD 安全联锁(外部电路直接失效开关罩),仅透传"},
+      "CON165.9": {tag: "SB1", rtl: "hood_open_btn_in", ball: "C11", byteIdx: 87, role: "开罩按钮 SB1 检测 (IO9/CON_PE9→R1693/R1855→BANK0_GPIO2)", extra: "不主动上报"},
+      "CON165.8": {tag: "SB2", rtl: "hood_close_btn_in", ball: "A11", byteIdx: 88, role: "合罩按钮 SB2 检测 (IO8/CON_PE8→R1692/R1854→BANK0_GPIO1)", extra: "不主动上报"},
+    };
+    if (key in v20BtnMap) {
+      const b = v20BtnMap[key];
+      return {
+        chip: "FPGA U3",
+        physicalPin: `U3.${b.ball}`,
+        logicalSignal: `${b.rtl} (${b.tag})`,
+        boardSignal: net || b.tag,
+        peripheralRole: b.role,
+        pinDefinition: `${b.role};外部上拉电阻未贴装,约束配 LVCMOS33 + 内部 PULLDOWN(未按下/无电=0x00,按下高电平=0x01),仅 GET_ALL 写入回包第 ${b.byteIdx} 字节(${b.extra})`,
+        displayBadge: `FPGA U3.${b.ball} · ${b.rtl} (${b.tag})`,
+        tags: ["SSR", "GPIO", b.tag, "BUTTON"],
+        isUsed: true,
+      };
+    }
+    if (key === "CON165.12") {
+      return {
+        chip: "NC",
+        physicalPin: "NC (V3.0 空脚)",
+        logicalSignal: "未连接 (已取消旧版暂绑 U3.F7)",
+        boardSignal: net || "CON_PE12",
+        peripheralRole: "CON165.12 空脚 (NC)",
+        pinDefinition: "电气图 V3.0 第4页确认 CON165.12 为空脚,不再沿用旧版暂绑的 U3.F7。",
+        displayBadge: "NC · V3.0 空脚",
+        tags: ["SSR"],
+        isUsed: false,
+      };
+    }
+    if (key === "CON165.1" || key === "CON165.2" || key === "CON165.4") {
+      const retiredBall = key === "CON165.1" ? "F3" : (key === "CON165.2" ? "F1" : "G4");
+      const idx = key === "CON165.1" ? 0 : (key === "CON165.2" ? 1 : 2);
+      return {
+        chip: "FPGA U3",
+        physicalPin: `U3.${retiredBall}`,
+        logicalSignal: `ssr_unused_zero[${idx}] (固定低电平)`,
+        boardSignal: net,
+        peripheralRole: "旧版废弃 SSR 引脚 (钳位低电平)",
+        pinDefinition: `旧版 SSR 引脚 U3.${retiredBall},现由 ssr_unused_zero[${idx}] 固定输出 0。`,
+        displayBadge: `FPGA U3.${retiredBall} · ssr_unused_zero[${idx}]`,
+        tags: ["SSR"],
+        isUsed: false,
+      };
+    }
+    if (key === "CON146.1") {
+      return {
+        chip: "FPGA U3",
+        physicalPin: "U3.H6",
+        logicalSignal: "buzzer_out (KEYLED_V3 +24V 蜂鸣器)",
+        boardSignal: "KEYLED_V3",
+        peripheralRole: "MCU 触发蜂鸣器 +24V 高边驱动 (4000Hz 80% 占空比)",
+        pinDefinition: "CON146.1 KEYLED_V3 (+24V 高边输出) ← Q10620/Q10621 ← R1297/R1301 ← U3.H6;SET_ALL 第 35 字节控制(0x00 关闭、0x01 开启输出 4000Hz 80% 占空比方波:6250拍周期/5000高/1250低),GET_DATA 第 89 字节回读,复位/看门狗保持低电平;非 TTL。",
+        displayBadge: "FPGA U3.H6 · buzzer_out (4000Hz 80%)",
+        tags: ["BUZZER", "KEYLED", "CON146"],
+        isUsed: true,
+      };
+    }
     const v20Con159Map = {
       "CON159.1": {tag: "M1", net: "PUL1 (X1-S)", ball: "C12", role: "1轴 -M1 (1#前部风门) STEP 脉冲 (X1-S → -U1 X-STEP)"},
       "CON159.2": {tag: "M1", net: "DIR1 (X1-D)", ball: "B12", role: "1轴 -M1 (1#前部风门) DIR 方向 (X1-D → -U1 X-DIR)"},
@@ -1284,16 +1344,40 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         isUsed: true,
       };
     }
+    if (ver === "v1_2" && ref === "CON140" && pnum === "3") {
+      return {
+        chip: "FPGA U3",
+        physicalPin: "U3.L3",
+        logicalSignal: "hood_switch_in (EX_GPIO31)",
+        boardSignal: net,
+        peripheralRole: "MRDIMM 高温罩开关输入 (GET_ALL 字节63)",
+        pinDefinition: "CON140.3 经 R1263 接 U3.L3 (LVCMOS33 + PULLDOWN, 非 GND);仅 GET_ALL 时采样放进第 63 字节。",
+        displayBadge: "FPGA U3.L3 · hood_switch_in",
+        tags: ["GPIO", "CON140"],
+        isUsed: true,
+      };
+    }
     if (ver === "v1_2" && ref === "CON146" && (pnum === "1" || pnum === "3")) {
+      if (pnum === "1") {
+        return {
+          chip: "FPGA U3",
+          physicalPin: "U3.H6",
+          logicalSignal: "buzzer_out (12V KEYLED_V3 蜂鸣器)",
+          boardSignal: net,
+          peripheralRole: "MCU 触发蜂鸣器 12V 高边输出(不能用作 Host TTL)",
+          pinDefinition: "U3.H6 经 NMOS+PMOS 控制 +12V KEYLED_V3(4000Hz 80% 占空比方波:6250拍周期/5000高/1250低;SET_ALL 字节68 / GET_DATA 字节64),输出有1µF和100nF电容;不是3.3V TTL。",
+          displayBadge: "FPGA U3.H6 · buzzer_out (12V 蜂鸣器 / 非TTL)",
+          tags: ["KEYLED", "BUZZER"],
+          isUsed: true,
+        };
+      }
       return {
         chip: "BOARD",
-        physicalPin: pnum === "1" ? "12V KEYLED功率输出" : "KEY3按键输入",
+        physicalPin: "KEY3按键输入",
         logicalSignal: "当前固件未绑定",
         boardSignal: net,
         peripheralRole: "KEY/LED座,不能用作Host TTL",
-        pinDefinition: pnum === "1"
-          ? "H6 经 NMOS+PMOS 控制 +12V KEYLED_V3,输出有1µF和100nF电容;不是3.3V TTL。"
-          : "N7 按键输入含10kΩ上拉及100nF电容;当前Host RX使用CON140.2。",
+        pinDefinition: "N7 按键输入含10kΩ上拉及100nF电容;当前Host RX使用CON140.2。",
         displayBadge: "CON146 · 非Host串口",
         tags: ["KEYLED"],
         isUsed: false,
@@ -1368,7 +1452,7 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         logicalSignal: `${rtlPort} (${ptc.heat})`,
         boardSignal: ptc.heat,
         peripheralRole: role,
-        pinDefinition: `+12V PTC 高边 MOS 功率输出 (${role}, 500Hz 高有效 PWM)`,
+        pinDefinition: `+12V PTC 高边 MOS 功率输出 (${role}, 20Hz 统一高有效 PWM)`,
         displayBadge: `FPGA U3.${ptc.ball} · ${rtlPort}`,
         tags: ["PTC", ptc.tag],
         isUsed,
@@ -1391,7 +1475,7 @@ function describeLogicalPin(touchpoint, pin, boardVersion = "v2_0") {
         logicalSignal: rtl,
         boardSignal: net,
         peripheralRole: `MRDIMM 腔${f.axis + 1} FAN${f.axis + 1} PWM`,
-        pinDefinition: "500Hz PWM;主板MMBT2222 NPN反相,连接器高电平为ON、FPGA球位低电平为ON。",
+        pinDefinition: "20Hz 统一 PWM;主板MMBT2222 NPN反相,连接器高电平为ON、FPGA球位低电平为ON。",
         displayBadge: `FPGA U3.${f.ball} · ${rtl}`,
         tags: ["FAN", `FAN${f.axis + 1}`],
         isUsed: true,
@@ -1618,6 +1702,9 @@ export function classifyTouchpointPeripheral(touchpoint, boardVersion = "v2_0")
     } else if (["CON165", "CON164"].includes(ref)) {
       peripheralType = "SSR";
       isUsed = true;
+    } else if (ref === "CON146") {
+      peripheralType = "GPIO";
+      isUsed = true;
     } else if (/^CON(53|55|56|57|79|80|81|82)$/.test(ref)) {
       peripheralType = "TEMP";
       isUsed = true;
@@ -1679,6 +1766,9 @@ export function classifyTouchpointPeripheral(touchpoint, boardVersion = "v2_0")
     } else if (["CON101", "CON130", "CON131", "CON132", "CON133", "J29", "J30"].includes(ref)) {
       peripheralType = "MCU";
       isUsed = false;
+    } else if (ref === "CON146") {
+      peripheralType = "GPIO";
+      isUsed = true;
     } else if (["CON2", "CON23"].includes(ref) || ref.startsWith("PL") || ref.startsWith("TP")) {
       peripheralType = "POWER";
       isUsed = true;
@@ -1709,6 +1799,9 @@ export function classifyTouchpointPeripheral(touchpoint, boardVersion = "v2_0")
     } else if (/^CON(53|55|56|57|79|8[0-9]|9[0-8])$/.test(ref)) {
       peripheralType = "TEMP";
       isUsed = true;
+    } else if (ref === "CON146") {
+      peripheralType = "GPIO";
+      isUsed = true;
     } else if (["CON2", "CON23"].includes(ref) || ref.startsWith("PL") || ref.startsWith("TP")) {
       peripheralType = "POWER";
       isUsed = true;
@@ -1798,7 +1891,8 @@ export function buildPeripheralIndex(data, boardVersion = "v2_0") {
       {label: "PTC 3#腔 (CON149)", category: "PTC", query: "CON149"},
       {label: "PTC 4#腔 (CON150)", category: "PTC", query: "CON150"},
       {label: "FAN 全部风扇", category: "FAN", usage: "used", query: ""},
-      {label: "SSR 继电器 (CON165)", category: "SSR", query: "CON165"},
+      {label: "SSR/急停/开关罩 (CON165)", category: "SSR", query: "CON165"},
+      {label: "蜂鸣器 4kHz (CON146)", category: "GPIO", query: "CON146"},
       {label: "JTAG / SWD", category: "JTAG", query: ""},
       {label: "空余插座", category: "ALL", usage: "spare", query: ""},
     );

+ 43 - 39
tools/board-viewer/web/cpld-arch-data.mjs

@@ -1,5 +1,5 @@
 /**
- * Reviewed dev 2.1.0 notes. Board facts come from generated native-BRD data;
+ * Reviewed dev v3.2.0 notes. Board facts come from generated native-BRD data + V3.0 PDF;
  * these project notes are maintained text, not parsed RTL or measured hardware.
  * Current production targets: 6400 V2.0 and MRDIMM V1.2. V1.1 is historical.
  */
@@ -53,14 +53,14 @@ export const BOARD_VERSION_COMM_MATRIX = {
       "jumpQuery": "CON53"
     },
     "thermalPwm": {
-      "freq": "500 Hz (周期 50,000 clks = 2.0 ms,每 1% = 500 clks = 20 µs,100 相位扫描)",
+      "freq": "20 Hz 统一热控 PWM (周期 1,250,000 clks = 50 ms,每 1% = 12,500 clks = 500 µs,100 相位扫描);蜂鸣器单独 4000 Hz / 80% 占空比 (6250拍周期 / 5000高 / 1250低)",
       "ptcChannels": "24路:通道0..17为CON147/148/149奇脚1..11;通道18为CON149.19(K5);通道19..23为CON150的五组并联针。CON149.13(P2)不在当前24路中。",
-      "fanChannels": "Front0..3=腔1..4新风/进风,Rear0..3=腔1..4排风/出风;物理PWM索引分别[5,7,1,3]和[6,8,2,4]。主板NMOS反相后,CON154/155连接器高电平为ON,FPGA球位低电平为ON。",
-      "ssrChannels": "3 路常开固态继电器 SSR1/2/4 (CON165.1/2/4 → U3.F3/F1/G4,驱动 -1-7E 110W / -2-7E 220W / -4-7E 110W),配置完成后常驱高电平 1'b1",
-      "jumpQuery": "CON147"
+      "fanChannels": "Front0..3=腔1..4新风/进风,Rear0..3=腔1..4排风/出风;CON154=腔1/2 (C4/B5/B1/A14)、CON155=腔3/4 (P12/A10/D8/C7),物理PWM索引分别[1,3,5,7]和[2,4,6,8]。主板NMOS反相后,连接器高电平为ON,FPGA球位低电平为ON。",
+      "ssrChannels": "电气图 V3.0 第4页 CON165 对齐:Pin14/13/11=SSR1/SSR2/SSR4 (U3.E14/E8/D9, 20Hz PWM 默认0%),Pin12=NC,Pin10/9/8=急停EPB1(F8)/开罩SB1(C11)/合罩SB2(A11)(PULLDOWN,仅GET_ALL透传无联锁);蜂鸣器 CON146.1 (U3.H6, 4000Hz 80%占空比);旧F3/F1/G4固定低。",
+      "jumpQuery": "CON165"
     },
     "motorSpec": "当前6400热控协议不驱动步进电机;CON159等板级网络不代表当前固件已启用。",
-    "watchdogSpec": "有效主控命令后的30s看门狗;超时回退PTC=0%、FAN=20%。自动输出不喂狗。配置完成复位默认值不等于未配置期间的物理电平保证。"
+    "watchdogSpec": "有效主控命令后的30s看门狗;超时回退PTC=0%、FAN=20%、SSR=0%、蜂鸣器=0。自动输出不喂狗。"
   },
   "v2_0_fan": {
     "versionKey": "v2_0_fan",
@@ -74,7 +74,7 @@ export const BOARD_VERSION_COMM_MATRIX = {
       "connector": "CON168 (14Pin 控制排线输入座)",
       "txPin": "CON168.5/6/11/12 接收主板 CON155 或 CON154 的 4 路 PWM1..4 开漏信号",
       "rxPin": "CON168.1..4 / 7..10 回传 8 路风扇转速脉冲 FG1_1..FG4_2 至主板分压网络",
-      "peerDevice": "主板 CON155 (1#/2#腔) 或 CON154 (3#/4#腔)",
+      "peerDevice": "主板 CON154 (1#/2#腔) 或 CON155 (3#/4#腔)",
       "jumpQuery": "CON168"
     },
     "hostRs232": {
@@ -88,7 +88,7 @@ export const BOARD_VERSION_COMM_MATRIX = {
       "connector": "CON8 / CON169 / CON170 / CON171 (8Pin 双风扇输出座)",
       "txPin": "Pin 7 (PWM1..4): 无源铜皮 1:1 直通 CON168.5/6/11/12(零逻辑反相)",
       "rxPin": "Pin 5/6 (FG*_1/2): 双风扇独立转速反馈直通 CON168",
-      "baud": "500 Hz PWM 开漏下拉",
+      "baud": "20 Hz 统一 PWM 开漏下拉",
       "pollCmd": "子板没有PWM反相器;主板已反相,子板PWM连接器高电平为ON。",
       "jumpQuery": "CON8"
     },
@@ -99,7 +99,7 @@ export const BOARD_VERSION_COMM_MATRIX = {
       "jumpQuery": "CON169"
     },
     "thermalPwm": {
-      "freq": "500 Hz (由主板 FPGA U3 产生)",
+      "freq": "20 Hz 统一 PWM (由主板 FPGA U3 产生,50 ms 周期)",
       "ptcChannels": "子板不承载 PTC 回路",
       "fanChannels": "每块四组输出CON8/169/170/171,每组可接双风扇;当前线束进风双机、排风单机。FG1/FG2线号与实际风机编号须按实物核对。",
       "ssrChannels": "无",
@@ -145,10 +145,10 @@ export const BOARD_VERSION_COMM_MATRIX = {
       "jumpQuery": "CON53"
     },
     "thermalPwm": {
-      "freq": "500 Hz (PWM_PERIOD_CLKS = 50,000, PWM_CLKS_PER_PERCENT = 500)",
+      "freq": "20 Hz 统一 PWM (PWM_PERIOD_CLKS = 1,250,000, PWM_CLKS_PER_PERCENT = 12,500);蜂鸣器单独 4000 Hz 80% 占空比 (CON146.1 / U3.H6)",
       "ptcChannels": "24路物理PTC:CON18/27/28/29每座6路,对应腔1..4;每腔共享一个逻辑占空比,高电平为ON。",
       "fanChannels": "四路PWM:CON25.7/B1、CON8.7/C4、CON24.7/B5、CON26.7/A14;主板MMBT2222 NPN反相,连接器高电平为ON。",
-      "ssrChannels": "CON120.2全局电机使能:U3.C11高,经Q145 NMOS拉低座端EN;生产固件常使能。",
+      "ssrChannels": "CON120.2全局电机使能(U3.C11);高温罩开关 CON140.3(U3.L3 PULLDOWN);蜂鸣器 CON146.1(U3.H6, 4000Hz 80%)。",
       "jumpQuery": "CON25"
     },
     "motorSpec": "轴0..11(M1..M12)按CON104,105,106,113,107,108,109,114,110,111,112,115排列。每轴一个运动段,新命令替换该轴旧段;可并行使能,不要求同步启动。",
@@ -224,7 +224,7 @@ export const CPLD_MENU_TREE = [
           },
           {
             "id": "curr_pwm_wd",
-            "title": "500Hz 热控 PWM、风扇极性掩码与 30s 看门狗参数"
+            "title": "20Hz 统一热控 PWM、4kHz 蜂鸣器、风扇极性与 30s 看门狗"
           }
         ]
       },
@@ -331,7 +331,7 @@ export const CPLD_MENU_TREE = [
           },
           {
             "id": "proto_payload_map",
-            "title": "SET_ALL (32B/68B)、GET_DATA (83B/63B) 与 MOTOR_DONE 字节映射"
+            "title": "SET_ALL (36B/69B)、GET_DATA (90B/65B) 与 MOTOR_DONE 字节映射"
           },
           {
             "id": "proto_golden_vectors",
@@ -379,8 +379,8 @@ export const CPLD_MENU_TREE = [
     "children": [
       {
         "id": "drv_thermal",
-        "title": "PTC 加热与四线风扇电气驱动链路",
-        "badge": "500Hz Power",
+        "title": "PTC 加热、四线风扇、SSR 与蜂鸣器电气驱动链路",
+        "badge": "20Hz Power",
         "topics": [
           {
             "id": "ext_ptc_mos",
@@ -392,7 +392,7 @@ export const CPLD_MENU_TREE = [
           },
           {
             "id": "ext_ssr_relay",
-            "title": "6400 V2.0 常开固态继电器 SSR1/2/4 驱动回路"
+            "title": "6400 V2.0 SSR1/2/4、急停/开关罩按钮与 4kHz 蜂鸣器回路"
           }
         ]
       },
@@ -461,7 +461,7 @@ const TOPICS = {
       ],
       [
         "执行路径",
-        "占空比bank → 500Hz PWM → 板级极性适配;MRDIMM另有12轴单段执行器。"
+        "占空比bank → 20Hz 统一 PWM (PTC/FAN/SSR) + 4000Hz 80% 蜂鸣器;MRDIMM另有12轴单段执行器。"
       ],
       [
         "采集与发送",
@@ -570,7 +570,7 @@ const TOPICS = {
     "kvTable": [
       [
         "SET",
-        "6400为32字节;MRDIMM为68字节。"
+        "6400 V2.0 为 36 字节(兼容 35B);MRDIMM 为 69 字节(兼容 68B)。"
       ],
       [
         "GET",
@@ -579,9 +579,9 @@ const TOPICS = {
     ]
   },
   "rtl_pwm_engine": {
-    "title": "pwm_bitmap_engine.v + fan_board_output_adapter.v",
+    "title": "pwm_bitmap_engine.v + fan_board_output_adapter.v + buzzer_pwm_4khz.v",
     "file": "src/actuator/pwm_bitmap_engine.v",
-    "summary": "500Hz PWM扫描0..99百分比相位,输出经板级反相适配。",
+    "summary": "全板热控 PWM 统一 20Hz (50ms周期,每1%=12,500拍) 扫描0..99百分比相位;蜂鸣器单独 4000Hz 80% 占空比。",
     "kvTable": [
       [
         "占空比",
@@ -628,25 +628,25 @@ const TOPICS = {
     ]
   },
   "proto_payload_map": {
-    "title": "SET_ALL (32B/68B)、GET_DATA (83B/63B) 与 MOTOR_DONE 字节映射",
-    "file": "contracts/mrdimm-wire.yaml",
-    "summary": "整数多字节字段使用小端。详细字节映射以对应合同为准。",
+    "title": "SET_ALL (36B/69B)、GET_DATA (90B/65B) 与 MOTOR_DONE 字节映射",
+    "file": "contracts/6400-v2-wire.yaml",
+    "summary": "整数多字节字段使用小端。v3.2.0 末尾新增急停/开关罩按钮检测(仅GET_ALL)与蜂鸣器控制字节。",
     "kvTable": [
       [
-        "6400 SET32",
-        "PTC24 + Front4(进风) + Rear4(出风),均0..100。"
+        "6400 V2 SET36",
+        "PTC24 + Front4(进风) + Rear4(排风) + SSR1/2/4(3) + buzzer(1: 0/1,4000Hz 80%);兼容35B。"
       ],
       [
-        "6400 DATA83",
-        "占空比32 + BMC24 + CT27。"
+        "6400 V2 DATA90",
+        "占空比32 + BMC24 + CT27 + SSR3 + 急停EPB1(86) + 开罩SB1(87) + 合罩SB2(88) + 蜂鸣器(89)。"
       ],
       [
-        "MRDIMM SET68",
-        "FAN4 + 逻辑PTC4 + 12×{action:u8, steps:u16le, half_us:u16le}。"
+        "MRDIMM SET69",
+        "FAN4 + 逻辑PTC4 + 12×{action:u8, steps:u16le, half_us:u16le} + buzzer(1: 0/1);兼容68B。"
       ],
       [
-        "MRDIMM DATA63",
-        "占空比8 + BMC24 + CT27 + 下限位mask:u16le + 上限位mask:u16le。"
+        "MRDIMM DATA65",
+        "占空比8 + BMC24 + CT27 + 下限位u16le + 上限位u16le + 高温罩开关(63) + 蜂鸣器(64)。"
       ],
       [
         "DONE4",
@@ -767,7 +767,7 @@ const TOPICS = {
     "kvTable": [
       [
         "6400 V2",
-        "Front0..3=腔1..4新风/进风,Rear0..3=腔1..4排风/出风;物理PWM索引分别[5,7,1,3]和[6,8,2,4]。主板NMOS反相后,CON154/155连接器高电平为ON,FPGA球位低电平为ON。"
+        "Front0..3=腔1..4新风/进风,Rear0..3=腔1..4排风/出风;CON154=腔1/2 (C4/B5/B1/A14),CON155=腔3/4 (P12/A10/D8/C7),20Hz 统一 PWM。主板NMOS反相后,连接器高电平为ON,FPGA球位低电平为ON。"
       ],
       [
         "MRDIMM V1.2",
@@ -780,17 +780,21 @@ const TOPICS = {
     ]
   },
   "ext_ssr_relay": {
-    "title": "6400 V2.0 常开固态继电器 SSR1/2/4 驱动回路",
+    "title": "6400 V2.0 SSR1/2/4、急停/开关罩按钮与 4kHz 蜂鸣器回路",
     "file": "src/top/prod2u_6400_v2_top.v",
-    "summary": "6400 V2当前生产固件配置完成后将SSR1/2/4输出拉高。",
+    "summary": "电气图 V3.0 第4/7页与主板 FCB_FPGA+MCU_V2.0_20260914.brd 物理脚位完全对齐。",
     "kvTable": [
       [
-        "映射",
-        "CON165.1/F3、.2/F1、.4/G4;这不是MRDIMM电机全局EN映射。"
+        "SSR 20Hz PWM",
+        "CON165.14/13/11 → U3.E14/E8/D9 (SSR1/SSR2/SSR4,0..100% 20Hz PWM,默认 0%);CON165.12 为空脚 NC;旧 F3/F1/G4 固定低电平。"
       ],
       [
-        "协议",
-        "当前32B热控SET不包含独立SSR设置。"
+        "按钮检测(仅GET_ALL)",
+        "急停 EPB1=CON165.10→U3.F8(字节86,无联锁)、开罩 SB1=CON165.9→U3.C11(字节87)、合罩 SB2=CON165.8→U3.A11(字节88);外部上拉 NC,配内部 PULLDOWN。"
+      ],
+      [
+        "蜂鸣器 4000Hz 80%",
+        "CON146.1 KEYLED_V3 (+24V高边) / CON146.2 GND ← U3.H6 经 R1301/R1297/Q10621/Q10620;SET35/GET89;开启 6250拍周期/5000高/1250低,关闭/看门狗保持低。"
       ]
     ]
   },
@@ -877,7 +881,7 @@ export function getCpldTopicDetail(topicId, boardVersion = "v2_0") {
   if (topicId === "curr_overview") {
     return {
       title: `${curr.badge} · 项目接口说明`, file: curr.topFile, tag: curr.topModule,
-      summary: `项目说明以dev 2.1.0为基准;原生板数据、当前ADC和实板线束分别核对。${curr.watchdogSpec}`,
+      summary: `项目说明以dev v3.2.0为基准;原生板数据、电气图V3.0、当前ADC和实板线束分别核对。${curr.watchdogSpec}`,
       jumpPills: [curr.hostTtl, curr.hostRs232, curr.bmcUart].map(x => ({label:x.connector, query:x.jumpQuery})),
       kvTable: [["顶层/约束", `${curr.topModule} · ${curr.constraintFile}`],
         ["Host波特率", curr.hostBaudDefault],

+ 9 - 4
tools/generate_6400_manual.py

@@ -164,8 +164,13 @@ def generate(root: Path | None = None, *, product: str = "6400") -> dict[Path, b
     if ssr_count and (ssr_count != 3 or fields["ssr_percent"]["offset"] != 83 or fields["ssr_percent"]["count"] != 3):
         raise ValueError("V2 SSR block must append three bytes at 83..85")
     if buzzer_count:
-        if fields.get("hood_switch", {}).get("offset") != 86 or fields.get("buzzer_state", {}).get("offset") != 87:
-            raise ValueError("V2 hood_switch/buzzer_state must append at 86..87")
+        if (
+            fields.get("estop_btn", {}).get("offset") != 86
+            or fields.get("hood_open_btn", {}).get("offset") != 87
+            or fields.get("hood_close_btn", {}).get("offset") != 88
+            or fields.get("buzzer_state", {}).get("offset") != 89
+        ):
+            raise ValueError("V2 estop_btn/hood_open_btn/hood_close_btn/buzzer_state must append at 86..89")
 
     pwm = fan["pwm"]
     if int(pwm["ptc_hz"]) != int(outputs["ptc_pwm_hz"]) or int(pwm["fan_hz"]) != int(outputs["fan_pwm_hz"]):
@@ -288,8 +293,8 @@ def generate(root: Path | None = None, *, product: str = "6400") -> dict[Path, b
     sample += bytes([int(outputs.get("default_ssr_percent", 0))] * ssr_count)
     invalid += bytes([int(outputs.get("default_ssr_percent", 0))] * ssr_count)
     if buzzer_count:
-        sample += bytes([0, int(outputs.get("default_buzzer", 0))])
-        invalid += bytes([0, int(outputs.get("default_buzzer", 0))])
+        sample += bytes([0, 0, 0, int(outputs.get("default_buzzer", 0))])
+        invalid += bytes([0, 0, 0, int(outputs.get("default_buzzer", 0))])
     if len(sample) != length or len(invalid) != length:
         raise ValueError("GET_DATA sample length mismatch")
 

+ 8 - 3
tools/get_all.py

@@ -41,8 +41,8 @@ def query(serial_port, timeout=3.0):
 
 
 def telemetry(payload):
-    if len(payload) not in (86, 88):
-        raise ValueError("current 6400 GET_DATA must contain 86 or 88 bytes")
+    if len(payload) not in (86, 88, 90):
+        raise ValueError("current 6400 GET_DATA must contain 86, 88 or 90 bytes")
     result = {
         "ptc_chambers_1_to_4": [list(payload[i:i+6]) for i in range(0, 24, 6)],
         "intake_chambers_1_to_4": list(payload[24:28]),
@@ -53,7 +53,12 @@ def telemetry(payload):
                                   "SSR2_chambers2_and3": payload[84],
                                   "SSR4_chamber4": payload[85]},
     }
-    if len(payload) == 88:
+    if len(payload) == 90:
+        result["estop_btn"] = bool(payload[86] & 1)
+        result["hood_open_btn"] = bool(payload[87] & 1)
+        result["hood_close_btn"] = bool(payload[88] & 1)
+        result["buzzer"] = bool(payload[89] & 1)
+    elif len(payload) == 88:
         result["hood_switch"] = bool(payload[86] & 1)
         result["buzzer"] = bool(payload[87] & 1)
     return result

+ 36 - 17
tools/prod2u_gui.py

@@ -47,7 +47,7 @@ PWM_PERIOD_MS = 50.0
 SOFTWARE_VERSION = (
     (ROOT / "VERSION").read_text(encoding="utf-8").strip()
     if (ROOT / "VERSION").is_file()
-    else "3.1.0"
+    else "3.2.0"
 )
 
 FRAME_TYPE_NAMES = {
@@ -280,7 +280,7 @@ class Model:
     def state(self, payload: bytes) -> dict[str, Any]:
         if self.motor:
             return mrdimm_state(payload, self.contract)
-        valid_lens = (86, 88) if self.product == "6400-v2" else (83,)
+        valid_lens = (86, 88, 90) if self.product == "6400-v2" else (83,)
         if len(payload) not in valid_lens:
             raise ValueError(f"{self.product} GET_DATA 载荷必须为 {valid_lens} 字节;请使用匹配版本的 GUI 和固件")
         return state_6400(payload, self.contract)
@@ -460,15 +460,17 @@ class Model:
                     for index, value in enumerate(state.get(group.lower(), [])):
                         fields.append(f"{self.output_label(group, index)}: {value}%")
                 if self.product == "6400-v2":
-                    fields.append(f"高温罩开关 (CON165.3/F7): {'按下 (高电平=1)' if state.get('hood_switch') else '未按下/默认 (低电平=0)'}")
-                    fields.append(f"蜂鸣器状态 (CON146.1/H6): {'开启 (1)' if state.get('buzzer') else '关闭 (0)'}")
+                    fields.append(f"急停按钮 EPB1 (CON165.10/F8): {'按下 (高电平=1)' if state.get('estop_btn') else '未按下/默认 (低电平=0)'}")
+                    fields.append(f"开罩按钮 SB1 (CON165.9/C11): {'按下 (高电平=1)' if state.get('hood_open_btn') else '未按下/默认 (低电平=0)'}")
+                    fields.append(f"合罩按钮 SB2 (CON165.8/A11): {'按下 (高电平=1)' if state.get('hood_close_btn') else '未按下/默认 (低电平=0)'}")
+                    fields.append(f"蜂鸣器状态 (CON146.1/H6, 4000Hz 80%): {'开启 (1)' if state.get('buzzer') else '关闭 (0)'}")
             else:
                 fields.append(f"FAN 生效占空比 (4路): {state.get('fan', [])}")
                 fields.append(f"PTC 生效占空比 (4路): {state.get('ptc', [])}")
                 fields.append(f"下限位掩码 (Lower Limit): 0x{state.get('lower_limit_mask', 0):04X}")
                 fields.append(f"上限位掩码 (Upper Limit): 0x{state.get('upper_limit_mask', 0):04X}")
                 fields.append(f"高温罩开关 (CON140.3/L3): {'按下 (高电平=1)' if state.get('hood_switch') else '未按下/默认 (低电平=0)'}")
-                fields.append(f"蜂鸣器状态 (CON146.1/H6): {'开启 (1)' if state.get('buzzer') else '关闭 (0)'}")
+                fields.append(f"蜂鸣器状态 (CON146.1/H6, 4000Hz 80%): {'开启 (1)' if state.get('buzzer') else '关闭 (0)'}")
 
             bmc_temps = state.get("bmc", {}).get("temperature_c", [])
             ct_temps = state.get("ct", {}).get("temperature_c", [])
@@ -2374,23 +2376,25 @@ def self_test(product: str) -> int:
         p_done_bl = model.parse(done_bl)[0]
         assert p_done_bl["axis"] == 4 and p_done_bl["reason"] == "BOTH_LIMITS" and p_done_bl["steps_done"] == 0
 
-        # V3.1.0 65B GET_DATA (hood_switch=1, buzzer=1) + 8B DIAGNOSTIC
+        # V3.2.0 65B GET_DATA (hood_switch=1, buzzer=1) + 8B DIAGNOSTIC
         mr_status = bytes([20] * 4 + [0] * 4 + [255] * 51 + [0, 0, 0, 0, 1, 1])
         mr_dec = model.state(mr_status)
         assert mr_dec["hood_switch"] is True and mr_dec["buzzer"] is True
-        mr_diag = bytes([2, 0x80, 3, 1, 0, 0x0B, 0x05, 0x00])
+        mr_diag = bytes([2, 0x80, 3, 2, 0, 0x0B, 0x05, 0x00])
         p_diag = model.parse(encode_frame(FrameType.DIAGNOSTIC, mr_diag))[0]["diagnostic"]
-        assert p_diag["supported"] and p_diag["firmware_version"] == "3.1.0" and p_diag["buzzer_on"] and p_diag["active_axes"] == [0, 2]
+        assert p_diag["supported"] and p_diag["firmware_version"] == "3.2.0" and p_diag["buzzer_on"] and p_diag["active_axes"] == [0, 2]
 
     if product == "6400-v2":
-        status = bytes([0] * 24 + [20] * 8 + [255] * 51 + [0, 25, 100, 1, 1])
+        # V3.2.0 90B GET_DATA (EPB1=1, SB1=1, SB2=0, buzzer=1)
+        status = bytes([0] * 24 + [20] * 8 + [255] * 51 + [0, 25, 100, 1, 1, 0, 1])
         decoded = model.state(status)
         assert decoded["ssr"] == [0, 25, 100]
-        assert decoded["hood_switch"] is True and decoded["buzzer"] is True
+        assert decoded["estop_btn"] is True and decoded["hood_open_btn"] is True
+        assert decoded["hood_close_btn"] is False and decoded["buzzer"] is True
         assert len(decoded["ct"]["raw"]) == 27
-        diagnostic = bytes([1, 0x64, 3, 1, 0, 0x23, 0, 0, 0x4C, 0, 0, 0x80, 0x0C, 25, 1, 0, 1, 1, 0, 48])
+        diagnostic = bytes([1, 0x64, 3, 2, 0, 0x23, 0, 0, 0x4C, 0, 0, 0x80, 0x0C, 25, 1, 0, 1, 1, 0, 48])
         d_parsed = model.parse(encode_frame(FrameType.DIAGNOSTIC, diagnostic))[0]["diagnostic"]
-        assert d_parsed["temperature_c"] == 25 and d_parsed["buzzer_on"] is True
+        assert d_parsed["temperature_c"] == 25 and d_parsed["buzzer_on"] is True and d_parsed["firmware_version"] == "3.2.0"
 
     # 5. Chamber mapping default + custom configuration & curve image generation
     cmap = ChamberMappingConfig.default(product)
@@ -3842,9 +3846,9 @@ def run_gui(product: str) -> int:
 
     buzzer_var = tk.BooleanVar(value=False)
     if product in ("6400-v2", "mrdimm-chamber"):
-        frame_buz = ttk.LabelFrame(tab_set, text="🔔 蜂鸣器触发控制 (SET_ALL 末尾字节,CON146.1 / 球位 H6;看门狗超时自动关闭)", padding=6)
+        frame_buz = ttk.LabelFrame(tab_set, text="🔔 蜂鸣器触发控制 (SET_ALL 末尾字节,CON146.1/H6;开启输出 4000Hz 80% 占空比方波,看门狗超时自动关闭)", padding=6)
         frame_buz.pack(fill="x", pady=4)
-        ttk.Checkbutton(frame_buz, text="触发蜂鸣器开启 (1=ON, 0=OFF)", variable=buzzer_var).pack(side="left", padx=6)
+        ttk.Checkbutton(frame_buz, text="触发蜂鸣器开启 (1=ON 4000Hz/80%, 0=OFF)", variable=buzzer_var).pack(side="left", padx=6)
 
     # Generated SET frame display
     frame_set_res = ttk.LabelFrame(tab_set, text="生成的 SET_ALL 命令报文 (HEX 与逐字段拆解)", padding=8)
@@ -3966,9 +3970,18 @@ def run_gui(product: str) -> int:
                                 ax_lbl = MRDIMM_AXIS_NAMES[ax] if ax < len(MRDIMM_AXIS_NAMES) else f"Axis{ax}"
                                 text_get_resp_out.insert("end", f"  • {ax_lbl}: 下限位={l_act}, 上限位={u_act}\n")
 
-                    if product in ("6400-v2", "mrdimm-chamber"):
+                    if product == "6400-v2":
+                        epb_txt = "按下(1)" if state.get("estop_btn") else "未按(0)"
+                        sb1_txt = "按下(1)" if state.get("hood_open_btn") else "未按(0)"
+                        sb2_txt = "按下(1)" if state.get("hood_close_btn") else "未按(0)"
+                        buz_txt = "开启 4000Hz/80%(1)" if state.get("buzzer") else "关闭(0)"
+                        text_get_resp_out.insert(
+                            "end",
+                            f"【按钮检测 (仅GET_ALL)】: 急停EPB1(F8)={epb_txt} | 开罩SB1(C11)={sb1_txt} | 合罩SB2(A11)={sb2_txt}  |  【蜂鸣器(H6)】: {buz_txt}\n",
+                        )
+                    elif product == "mrdimm-chamber":
                         hood_txt = "按下 (高电平=1)" if state.get("hood_switch") else "未按下/默认 (低电平=0)"
-                        buz_txt = "开启 (1)" if state.get("buzzer") else "关闭 (0)"
+                        buz_txt = "开启 4000Hz/80%(1)" if state.get("buzzer") else "关闭 (0)"
                         text_get_resp_out.insert("end", f"【高温罩开关检测】: {hood_txt}  |  【蜂鸣器状态】: {buz_txt}\n")
 
                     # Temperatures
@@ -4195,7 +4208,13 @@ def run_gui(product: str) -> int:
                     bmc_note = "无有效采样" if bmc_valid == 0 else f"{bmc_valid}/24 通道就绪"
                     origin = "查询应答" if matched_query else "自动遥测(未关联查询)"
                     summary = f"{origin} | BMC: {bmc_note} | CT7428 有效: {ct_valid}/27 通道"
-                    if product in ("6400-v2", "mrdimm-chamber"):
+                    if product == "6400-v2":
+                        epb_s = "按下(1)" if st.get("estop_btn") else "未按(0)"
+                        sb1_s = "按下(1)" if st.get("hood_open_btn") else "未按(0)"
+                        sb2_s = "按下(1)" if st.get("hood_close_btn") else "未按(0)"
+                        buz_s = "开(1)" if st.get("buzzer") else "关(0)"
+                        summary += f" | 急停EPB1={epb_s} | 开罩SB1={sb1_s} | 合罩SB2={sb2_s} | 蜂鸣器={buz_s}"
+                    elif product == "mrdimm-chamber":
                         hood_s = "按下(1)" if st.get("hood_switch") else "未按(0)"
                         buz_s = "开(1)" if st.get("buzzer") else "关(0)"
                         summary += f" | 高温罩开关={hood_s} | 蜂鸣器={buz_s}"

+ 12 - 12
tools/pwm_scope.py

@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-"""6400V2.0 scope test 1.1.0: SET36/GET88 (compat SET35/GET86), 20Hz PWM, fan 5s 50%/0% toggle, hood_switch/buzzer."""
+"""6400V2.0 scope test 1.2.0: SET36/GET90 (compat SET35/GET88/86), 20Hz PWM, fan 5s 50%/0% toggle, EPB1/SB1/SB2 + 4000Hz 80% buzzer."""
 import argparse
 import binascii
 import datetime as dt
@@ -13,7 +13,7 @@ import sys
 import time
 import unicodedata
 
-SCRIPT_VERSION = "1.1.0"
+SCRIPT_VERSION = "1.2.0"
 BOX_WIDTH = 90
 DEFAULT_PORT = "/dev/serial/by-path/pci-0000:00:14.0-usb-0:3:1.0-port0"
 FALLBACK_USB1_PORTS = (
@@ -163,9 +163,9 @@ def output_rows():
         rows.append((24 + j, f"腔{j % 4 + 1}{role}",
                      FAN_PINS[j], FAN_BALLS[j], 20))
     for j, (name, pin, ball) in enumerate((
-            ("SSR1 腔1", "CON165.1", "E14"),
-            ("SSR2 腔2+3共用", "CON165.2", "E8"),
-            ("SSR4 腔4", "CON165.4", "D9"))):
+            ("SSR1 腔1", "CON165.14", "E14"),
+            ("SSR2 腔2+3共用", "CON165.13", "E8"),
+            ("SSR4 腔4", "CON165.11", "D9"))):
         rows.append((32 + j, name, pin, ball, 20))
     return rows
 
@@ -211,9 +211,9 @@ def show_map(style=None):
     st = style or Style(enabled=sys.stdout.isatty() and not os.environ.get("NO_COLOR"))
     top, mid, sep, bot, row, _ = _box_helpers(st)
 
-    print(top(f"6400V2.0 示波器与温度测试 (脚本 v{SCRIPT_VERSION} / 适配固件 3.1.0)"))
+    print(top(f"6400V2.0 示波器与温度测试 (脚本 v{SCRIPT_VERSION} / 适配固件 3.2.0)"))
     print(row(
-        f"{st.bold('协议')}: SET36 / GET88 (921600 8N1)     "
+        f"{st.bold('协议')}: SET36 / GET90 (921600 8N1)     "
         f"{st.bold('统一频率')}: 20Hz (周期 50.00ms, 1% = 0.50ms)"
     ))
     print(row(
@@ -425,8 +425,8 @@ class Link:
                     self.last_ack_at = time.monotonic()
                     get_ack = True
                 elif kind == 2 and typ == 0x42 and get_ack:
-                    if len(payload) not in (86, 88):
-                        raise RuntimeError(f"GET长度={len(payload)},要求86或88;需配套3.x固件")
+                    if len(payload) not in (86, 88, 90):
+                        raise RuntimeError(f"GET长度={len(payload)},要求86/88/90;需配套3.x固件")
                     answer = payload
             if answer is not None:
                 return answer
@@ -467,7 +467,7 @@ def render_live_panel(style, *, cycles, total_cycles, elapsed, remaining,
     if matches is None:
         mode_badge = style.yellow("本轮应答未确认")
     elif read_only:
-        mode_badge = style.cyan("只读 GET86 正常")
+        mode_badge = style.cyan("只读 GET90 正常")
     elif matches:
         mode_badge = style.bold_green("✓ SET35/GET86 35路回读一致")
     else:
@@ -524,10 +524,10 @@ def render_live_panel(style, *, cycles, total_cycles, elapsed, remaining,
         ))
         lines.append(row(
             f"SSR 1/2/4 : {ssr_vals[0]:2d}% / {ssr_vals[1]:2d}% / {ssr_vals[2]:2d}% "
-            f"({ssr_vals[0]*0.5:4.1f} / {ssr_vals[1]*0.5:4.1f} / {ssr_vals[2]*0.5:4.1f}ms @ CON165.1/.2/.4) {b3}"
+            f"({ssr_vals[0]*0.5:4.1f} / {ssr_vals[1]*0.5:4.1f} / {ssr_vals[2]*0.5:4.1f}ms @ CON165.14/.13/.11) {b3}"
         ))
     else:
-        lines.append(row(style.dim("等待首轮 GET88 数据回读...")))
+        lines.append(row(style.dim("等待首轮 GET90 数据回读...")))
 
     lines.append(mid("CT7428 (U6 @ 0x49) 9路实时温度"))
     if ct and len(ct) >= 9:

+ 1 - 1
tools/run_6400_acquisition.py

@@ -53,7 +53,7 @@ module prod2u_6400_v2_acquisition_fixture (
   .temp_scl_alt(temp_scl_alt), .temp_sda_alt(temp_sda_alt),
   .ssr1_out(), .ssr2_out(), .ssr4_out(),
   .ssr_unused_zero(),
-  .hood_switch_in(1'b0), .buzzer_out()
+  .estop_btn_in(1'b0), .hood_open_btn_in(1'b0), .hood_close_btn_in(1'b0), .buzzer_out()
  );
  // Timer-only elaboration acceleration. UART bit timing, I2C timing,
  // 25 MHz clock and every acquisition/state/RAM path stay unchanged.

+ 9 - 3
tools/run_6400_connector.py

@@ -42,9 +42,12 @@ def fixture_from_adc(adc: Path) -> tuple[str, dict[str, str]]:
     # changed assignment instead of inadvertently driving the old port.
     for port, ball in {"sys_clk": "J1", "host_ttl_rx": "J4", "host_ttl_tx": "K2",
                        "host_rs232_rx": "R13", "host_rs232_tx": "T14",
-                       "hood_switch_in": "F7", "buzzer_out": "H6"}.items():
+                       "estop_btn_in": "F8", "hood_open_btn_in": "C11", "hood_close_btn_in": "A11",
+                       "buzzer_out": "H6"}.items():
         if by_port.get(port) != ball:
             raise ValueError(f"physical fixture input/output {port} expected {ball}, ADC has {by_port.get(port)}")
+    if "F7" in by_ball:
+        raise ValueError(f"CON165.12 (ball F7) must be NC/unbound in V3.0, ADC binds {by_ball['F7']}")
     lines = [
         "`timescale 1ns/1ps",
         "// Generated from the actual production ADC. No expected logical-to-pin permutation is substituted.",
@@ -55,7 +58,7 @@ def fixture_from_adc(adc: Path) -> tuple[str, dict[str, str]]:
         " output wire [23:0] ptc_connector_pwm,",
         " output wire [10:0] spare_connector_pwm,",
         " output wire [2:0] ssr_connector,",
-        " input wire hood_switch_in,",
+        " input wire estop_btn_in, hood_open_btn_in, hood_close_btn_in,",
         " output wire buzzer_connector",
         ");",
         " wire [3:0] front_fan_pwm_out, rear_fan_pwm_out;",
@@ -74,7 +77,8 @@ def fixture_from_adc(adc: Path) -> tuple[str, dict[str, str]]:
         "  .temp_scl_alt(temp_scl_alt), .temp_sda_alt(temp_sda_alt),",
         "  .ssr1_out(ssr1_out), .ssr2_out(ssr2_out), .ssr4_out(ssr4_out),",
         "  .ssr_unused_zero(),",
-        "  .hood_switch_in(hood_switch_in), .buzzer_out(buzzer_out)",
+        "  .estop_btn_in(estop_btn_in), .hood_open_btn_in(hood_open_btn_in), .hood_close_btn_in(hood_close_btn_in),",
+        "  .buzzer_out(buzzer_out)",
         " );",
     ]
     used: dict[str, str] = {}
@@ -136,6 +140,8 @@ def main() -> int:
         "actual_adc_pad_mapping": pad_map,
         "physical_fan_balls": FAN_BALLS, "physical_ptc_balls": PTC_BALLS,
         "physical_spare_balls": SPARE_BALLS, "physical_ssr_balls": SSR_BALLS,
+        "physical_button_balls": {"estop_btn_in": "F8", "hood_open_btn_in": "C11", "hood_close_btn_in": "A11"},
+        "physical_buzzer_ball": "H6",
         "fixture_sha256": hashlib.sha256(fixture_path.read_bytes()).hexdigest(),
         "commands": [],
     }

+ 1 - 1
tools/stream_receiver.py

@@ -74,7 +74,7 @@ class StreamReceiver:
                 FrameType.GET_ACK: 0,
                 FrameType.HEARTBEAT_ACK: (0, 4),
                 FrameType.BEACON: 0,
-                FrameType.GET_DATA: (86, 88) if self.product == "6400-v2" else 83,
+                FrameType.GET_DATA: (86, 88, 90) if self.product == "6400-v2" else 83,
                 FrameType.NACK: 2,
             }
             if self.product == "6400-v2":

+ 1 - 1
tools/stress_test_35ptc_24h.py

@@ -169,7 +169,7 @@ class StressTester:
             self.last_bmc = list(data[32:56])
             self.last_ct = list(data[56:83])
             self.last_ssr = list(data[83:86])
-            matches = len(data) in (86, 88) and data[:32] + data[83:86] == payload[:35]
+            matches = len(data) in (86, 88, 90) and data[:32] + data[83:86] == payload[:35]
             if not matches:
                 self.duty_mismatch_count += 1
                 logging.error("[Cycle %d] Duty mismatch: PTC=%s intake=%s exhaust=%s",

+ 2 - 2
tools/thermal_test_server.py

@@ -56,8 +56,8 @@ def detect_container_privileges() -> dict[str, Any]:
         "privileged": is_privileged,
         "device_nodes": dev_nodes,
         "pwm_unified_hz": 20,
-        "software_version": getattr(gui, "SOFTWARE_VERSION", "3.1.0"),
-        "protocol": {"6400-v2": "SET36/GET88 (hood_switch+buzzer)", "mrdimm": "SET69/GET65+DIAG8"},
+        "software_version": getattr(gui, "SOFTWARE_VERSION", "3.2.0"),
+        "protocol": {"6400-v2": "SET36/GET90 (EPB1+SB1+SB2+4kHz80% buzzer)", "mrdimm": "SET69/GET65+DIAG8 (4kHz80% buzzer)"},
     }