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

feat(prod2u): remap motor/limit/solenoid onto CON138–141

Dedicate free V1.2 EX_GPIO connectors for X motor+EN, Y motor, X/Y
limits, and intake solenoid; expose solenoid on package and grow ADC
to 25 balls so TD can LOC the new layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 месяцев назад
Родитель
Сommit
40ee501f7e

+ 6 - 5
ACCEPTANCE_MATRIX.md

@@ -10,7 +10,8 @@
 | Project configuration | `project.json`:4 FAN + 4 chamber PTC→8 PWM + intake/exhaust doors;UART/I2C/motor/watchdog/limits.startup | pass(源合同) |
 | Schema | 配置节闭合;count/list 漂移拒绝 | pass(源合同) |
 | Protocol model | CRC;duty 0..100;**SET_ALL 11 字节**;旧 14 字节拒绝;马达 `00=stop` / 电磁铁 `00=hold` | pass(源合同) |
-| Generator / ADC | 确定性产物;活动 ADC 24 脚;`intake_solenoid_out` 不 LOC | pass(源合同) / solenoid ball **blocked** |
+| Generator / ADC | 确定性产物;活动 ADC **25** 脚(含 `intake_solenoid_out`@P2);CON138–141 产品重映射 | pass(源合同) / solenoid **inferred** LOC |
+
 | Startup one-shot | 450 步/burst、1000 step/s、50 ms、最多 10 burst;`startup_done` 后 limit 惰性 | pass(源合同 + 既有 Icarus/formal 目标) |
 
 ## Offline verification(收据绑定)
@@ -25,11 +26,11 @@
 | Package / replay | final closure 包已出具;`review-compact` @ tip `445814a…`(RUN_ID `packager-compact-20260805T042343Z`) | pass(closure + compact) |
 | Physical hardware | COM/JTAG/烧录未授权 | **`not_run`** |
 
-## Physical / board blocked(不升格为 pass)
+## Physical / board remaining uncertainties(不升格为 confirmed pass)
 
-- Intake solenoid FPGA ball / 极性 / ADC 链未确认。
-- Exhaust X/Y 产品轴名与丝印角色未闭环。
-- A11 与 CON124 装配冲突待确认。
+- Intake solenoid:CON141.1/P2 **inferred** LOC;外部驱动/线圈极性未确认。
+- Exhaust X/Y STEP/DIR/EN/limit 在 CON138–140 为 EX_GPIO 产品角色 **inferred**。
+- 历史 A11 与 CON124 装配冲突记录保留;产品 y_limit 已迁离 A11。
 - 详见 [`docs/IO_EVIDENCE_MATRIX.zh-CN.md`](docs/IO_EVIDENCE_MATRIX.zh-CN.md)。
 
 ## Frozen protocol numbers

+ 2 - 1
AGENTS.md

@@ -52,7 +52,8 @@ Current authority is limited to the above contract files, this `AGENTS.md`, and
 
 ## Limit one-shot contract
 
-- X limit: CON30 pin3 / FPGA B9. Y limit: CON12 pin3 / FPGA A11. Active high.
+- X limit: CON140 pin1 / FPGA T11. Y limit: CON140 pin2 / FPGA P13. Active high.
+  (Legacy 0611/early V1.2 probe points CON30.3→B9 and CON12.3→A11 are retired for this product remap.)
 - Limit is used only once per FPGA power-on, global hardware reset, or reconfiguration.
 - Startup closes both dampers: PTC 0%, FAN 10%, motor EN_n 0, DIR = 1 (close).
 - Per axis:

+ 3 - 3
FINAL_DELIVERY_REPORT.md

@@ -31,9 +31,9 @@
 
 ## 合法 blocked / not_run
 
-- `intake_solenoid_out`:无完整 connector→driver→ball→ADC 链 → **blocked**(禁止 LOC)。
-- X/Y STEP/DIR 产品轴名与丝印未完全闭环 → **blocked**。
-- A11 vs CON124 装配冲突待确认 → **blocked**。
+- `intake_solenoid_out`:CON141.1/P2 **inferred** LOC;外部驱动/线圈极性未确认。
+- X/Y STEP/DIR/EN/limit:CON138–140 EX_GPIO 产品角色 **inferred**。
+- 历史 A11 vs CON124 装配冲突记录保留;产品 y_limit 已迁至 CON140.2/P13。
 - COM / JTAG / 烧录未授权 → Hardware **`not_run`**。
 
 ## 明确作废的活动声明

+ 5 - 5
OPEN_QUESTIONS.md

@@ -11,12 +11,12 @@ No user product-contract decision currently blocks the **11-byte SET_ALL + solen
 - PWM ~20 Hz is a protocol/debug target; it does not guarantee a specific fan mechanical speed or torque.
 - Packager integrate tip `445814a…` (`packager-compact-20260805T042343Z`) merged to `dev`; packaging-only — does not reopen the software/TD closure above.
 
-## Physical blocked (remain blocked; do not invent pins)
+## Physical / evidence remaining uncertainties
 
-- `intake_solenoid_out` lacks a confirmed connector → driver → FPGA ball → ADC chain; keep **un-LOC’d**.
-- Exhaust X/Y product axis naming vs silkscreen role not fully closed.
-- A11 vs CON124 assembly conflict unresolved.
-- Contract prose historically said CON30.3 for X limit; V1.2 probe point is **CON125.3 / B9** (see IO evidence matrix).
+- `intake_solenoid_out` is **inferred-LOC’d** on **CON141.1 / P2** (EX_GPIO33). Connector→series-R→ball is board-data backed; external driver / coil polarity still **unconfirmed**.
+- Exhaust X/Y STEP/DIR/EN/limit product roles on CON138–CON140 are **inferred** (generic EX_GPIO nets, not silkscreen MOTOR/LIMIT names).
+- Historical **A11 vs CON124** WATER_COOL conflict remains a board-assembly note; product **y_limit** no longer uses A11 (now CON140.2 / P13).
+- Contract prose historically said CON30.3 for X limit; V1.2 product probe is now **CON140.1 / T11** (legacy CON125.3 / B9 retired for this remap).
 
 ## Non-goals for docs lane
 

+ 2 - 2
README.zh-CN.md

@@ -25,7 +25,7 @@ PTC/FAN 占空为十进制 0..100。PWM ≈20 Hz。PTC active-high;FAN 在 FPG
 
 ## 启动限位(one-shot)
 
-上电/`startup_done==0`:X/Y 向 close(DIR=1)间歇寻限位,最多 10 burst × 450 步 @ 1000 step/s,burst 间隔 50 ms;限位 active-high(X: B9,Y: A11)。`startup_done` 前主机 UART 被丢弃;完成后限位对普通 jog **惰性**。
+上电/`startup_done==0`:X/Y 向 close(DIR=1)间歇寻限位,最多 10 burst × 450 步 @ 1000 step/s,burst 间隔 50 ms;限位 active-high(X: CON140.1/T11,Y: CON140.2/P13)。`startup_done` 前主机 UART 被丢弃;完成后限位对普通 jog **惰性**。
 
 ## 当前基线与验证真相(final closure)
 
@@ -37,7 +37,7 @@ PTC/FAN 占空为十进制 0..100。PWM ≈20 Hz。PTC active-high;FAN 在 FPG
 | TD built commit | `8f28660f176e18e97a015e66bdae0ff747e0fc63`(生产综合输入与 tip 一致,tip 未强制重跑 TD) |
 | Bitstream SHA-256 | `ce3157c593858c33c36e9805fe477a3955ba6f380b4a04f5f9236d3fbddb376d` |
 | Hardware / JTAG / 烧录 | **`not_run`**(未授权) |
-| 物理 blocked | 进风电磁铁 ball/ADC;X/Y 产品轴名与丝印;A11 vs CON124(见 `OPEN_QUESTIONS.md` / IO 证据矩阵) |
+| 物理 uncertainties | 进风电磁铁外部驱动/线圈极性;CON138–140 EX_GPIO 产品角色 inferred;历史 A11 vs CON124(见 `OPEN_QUESTIONS.md` / IO 证据矩阵) |
 
 `packager-compact-20260805T042343Z` 已合入 `dev`(integrate tip `445814a…` + 活动文档对齐;review-compact 打包体系);生产综合输入相对 `da7b05a…` **未变**,**不**改写上表软件/TD/bitstream 闭合证据。
 

+ 89 - 62
config/pin_inventory.prod2u_door_temp_v1_2.json

@@ -8,12 +8,12 @@
   "product_thermal_gate_allowed": false,
   "matrix_doc": "docs/IO_EVIDENCE_MATRIX.zh-CN.md",
   "matrix_counts": {
-    "confirmed": 20,
-    "inferred": 8,
-    "blocked": 5,
+    "confirmed": 17,
+    "inferred": 12,
+    "blocked": 4,
     "total_rows": 33
   },
-  "electrical_boundary": "Only evidence-backed FPGA balls from V1.2 board-data / 0611 PDF cross-check. Intake solenoid package pin remains unbound. Do not treat 0611 CON30 silkscreen as V1.2 authority.",
+  "electrical_boundary": "V1.2 EX_GPIO on CON138–CON141 used for product motor/limit/solenoid remap. Connector→series-R→ball paths are board-data backed; product roles remain inferred except legacy confirmed PTC/FAN/UART/I2C. External solenoid driver not confirmed. Do not treat 0611 CON30 silkscreen as V1.2 authority.",
   "source_documents": [
     {
       "kind": "allegro_brd",
@@ -30,7 +30,11 @@
     {
       "kind": "schematic_pdf",
       "path": "reference/original/schematics/FCB_FPGA+MCU0611.pdf",
-      "pages": [3, 8, 10],
+      "pages": [
+        3,
+        8,
+        10
+      ],
       "confidence": "present"
     },
     {
@@ -255,115 +259,134 @@
     },
     {
       "signal": "motor_en_n",
-      "function_net": "FAN_GPIO4",
-      "board_connector": "CON125",
-      "connector_pin": 4,
-      "legacy_connector_note": "0611 silkscreen CON30.4; absent on V1.2 board-data",
-      "fpga_ball": "A10",
+      "function_net": "EX_GPIO27",
+      "board_connector": "CON139",
+      "connector_pin": 3,
+      "legacy_connector_note": "Previously CON125.4 / A10 (0611 CON30.4); remapped to CON139.3",
+      "fpga_ball": "T7",
       "direction": "output",
       "active_level": "low",
       "product_role": "shared_motor_enable_n",
-      "conclusion": "confirmed",
+      "conclusion": "inferred",
       "manually_verified": true,
-      "source_confidence": "v1_2_board_database_path_and_0611_net"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap",
+      "conclusion_notes": "Physical CON139.3→R1259→T7 confirmed in board-data; motor EN product role inferred."
     },
     {
       "signal": "y_limit_raw",
-      "function_net": "FAN_GPIO1",
-      "board_connector": "CON12",
-      "connector_pin": 3,
-      "fpga_ball": "A11",
+      "function_net": "EX_GPIO30",
+      "board_connector": "CON140",
+      "connector_pin": 2,
+      "fpga_ball": "P13",
       "direction": "input",
       "active_level": "high",
       "product_role": "startup_y_close_limit",
-      "physical_path_conclusion": "confirmed",
+      "physical_path_conclusion": "inferred",
       "product_role_conclusion": "inferred",
-      "conclusion": "confirmed",
-      "conclusion_notes": "Physical CON12.3->A11 is confirmed; naming as close-limit is product-contract inferred.",
+      "conclusion": "inferred",
+      "conclusion_notes": "Remapped from CON12.3/A11 to CON140.2/P13 to avoid CON124 WATER_COOL conflict on A11.",
       "manually_verified": true,
-      "source_confidence": "v1_2_board_data_cross_verified"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap"
     },
     {
       "signal": "x_limit_raw",
-      "function_net": "FAN_GPIO3",
-      "board_connector": "CON125",
-      "connector_pin": 3,
-      "legacy_connector_note": "Product/AGENTS text CON30.3 is 0611 silkscreen; V1.2 board-data has no CON30.",
-      "fpga_ball": "B9",
+      "function_net": "EX_GPIO29",
+      "board_connector": "CON140",
+      "connector_pin": 1,
+      "legacy_connector_note": "Previously CON125.3/B9 (0611 CON30.3); remapped to CON140.1",
+      "fpga_ball": "T11",
       "direction": "input",
       "active_level": "high",
       "product_role": "startup_x_close_limit",
-      "physical_path_conclusion": "confirmed",
+      "physical_path_conclusion": "inferred",
       "v1_2_con30_silkscreen_conclusion": "blocked",
       "product_role_conclusion": "inferred",
-      "conclusion": "confirmed",
-      "conclusion_notes": "Ball B9/FAN_GPIO3 confirmed via CON125.3 on V1.2; CON30.3 silkscreen claim blocked for V1.2.",
+      "conclusion": "inferred",
+      "conclusion_notes": "Physical CON140.1→R1261→T11 board-data backed; close-limit role product-contract inferred.",
       "manually_verified": true,
-      "source_confidence": "v1_2_board_database_and_0611_pdf"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap"
     },
     {
       "signal": "x_step",
-      "fpga_ball": "C11",
+      "fpga_ball": "R6",
       "direction": "output",
       "product_role": "exhaust_x_step",
       "conclusion": "inferred",
-      "conflict_notes": "V1.2 also maps C11 to CON12.4 FAN_GPIO2 (cross_verified) and CON120.2 ENA path (board_database).",
+      "conflict_notes": "Prior C11 dual-map (CON12.4 / CON120.2) retired for product STEP.",
       "manually_verified": false,
-      "source_confidence": "active_adc_ball_only_not_v1_2_axis_label"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap",
+      "function_net": "EX_GPIO25",
+      "board_connector": "CON139",
+      "connector_pin": 1
     },
     {
       "signal": "x_dir",
-      "function_net": "DIR1",
-      "board_connector": "CON104",
-      "connector_pin": 3,
-      "fpga_ball": "B12",
+      "function_net": "EX_GPIO26",
+      "board_connector": "CON139",
+      "connector_pin": 2,
+      "fpga_ball": "R8",
       "direction": "output",
       "product_role": "exhaust_x_dir",
       "conclusion": "inferred",
       "manually_verified": false,
-      "source_confidence": "v1_2_board_database_path_product_axis_inferred"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap"
     },
     {
       "signal": "y_step",
-      "function_net": "DIR12",
-      "board_connector": "CON115",
-      "connector_pin": 3,
-      "fpga_ball": "D15",
+      "function_net": "EX_GPIO21",
+      "board_connector": "CON138",
+      "connector_pin": 1,
+      "fpga_ball": "T3",
       "direction": "output",
       "product_role": "exhaust_y_step",
       "conclusion": "inferred",
-      "conflict_notes": "V1.2 intermediate net name is DIR12, not PUL; ball matches 0611 MOTOR_STEP.",
+      "conflict_notes": "Prior D15 DIR12 naming retired for product STEP.",
       "manually_verified": false,
-      "source_confidence": "v1_2_board_database_path_product_axis_inferred"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap"
     },
     {
       "signal": "y_dir",
-      "function_net": "DIR9",
-      "board_connector": "CON112",
-      "connector_pin": 3,
-      "fpga_ball": "H14",
+      "function_net": "EX_GPIO22",
+      "board_connector": "CON138",
+      "connector_pin": 2,
+      "fpga_ball": "R4",
       "direction": "output",
       "product_role": "exhaust_y_dir",
       "conclusion": "inferred",
       "manually_verified": false,
-      "source_confidence": "v1_2_board_database_path_product_axis_inferred"
+      "source_confidence": "v1_2_board_data_ex_gpio_product_remap"
     },
     {
       "signal": "intake_solenoid_out",
-      "fpga_ball": null,
-      "board_connector": null,
-      "connector_pin": null,
+      "fpga_ball": "P2",
+      "board_connector": "CON141",
+      "connector_pin": 1,
       "direction": "output",
       "product_role": "chamber1_intake_solenoid",
-      "conclusion": "blocked",
+      "conclusion": "inferred",
       "rejected_candidates": [
-        {"ref": "CON124", "reason": "WATER_COOL_V+ path to A11; conflicts with y_limit ball; not solenoid"},
-        {"ref": "CON144", "reason": "KEYLED_V1 to N6"},
-        {"ref": "CON145", "reason": "KEYLED_V2 to P6"},
-        {"ref": "CON146", "reason": "KEYLED_V3 to N7"}
+        {
+          "ref": "CON124",
+          "reason": "WATER_COOL_V+ path to A11; conflicts with former y_limit; not solenoid"
+        },
+        {
+          "ref": "CON144",
+          "reason": "KEYLED_V1 to N6"
+        },
+        {
+          "ref": "CON145",
+          "reason": "KEYLED_V2 to P6"
+        },
+        {
+          "ref": "CON146",
+          "reason": "KEYLED_V3 to N7"
+        }
       ],
       "manually_verified": false,
-      "source_confidence": "no_v1_2_solenoid_net"
+      "source_confidence": "v1_2_ex_gpio_assigned_external_driver_unconfirmed",
+      "function_net": "EX_GPIO33",
+      "active_level": "high",
+      "conclusion_notes": "CON141.1→R1265→P2 path exists; no on-board solenoid driver net — inferred product LOC."
     },
     {
       "signal": "x_limit_connector_con30_pin3_v1_2_silkscreen",
@@ -374,14 +397,18 @@
       "conclusion": "blocked",
       "manually_verified": false,
       "source_confidence": "con30_absent_from_v1_2_board_data",
-      "remapped_to": {"board_connector": "CON125", "connector_pin": 3, "fpga_ball": "B9", "remap_confidence": "inferred"}
+      "remapped_to": {
+        "board_connector": "CON125",
+        "connector_pin": 3,
+        "fpga_ball": "B9",
+        "remap_confidence": "inferred"
+      }
     }
   ],
   "blocked_summary": [
-    "V1.2 silkscreen CON30.3 for X limit (use CON125.3 / B9 instead)",
-    "intake_solenoid_out FPGA ball / connector",
-    "CON124 as intake actuator (WATER_COOL -> A11)",
+    "V1.2 silkscreen CON30.3 for X limit (historical; product now uses CON140.1 / T11)",
+    "CON124 as intake actuator (WATER_COOL -> A11); product y_limit moved off A11",
     "CON144-146 as intake actuator (KEYLED)",
-    "CON104/105/106 as confirmed intake/exhaust product axes without further cross-check"
+    "External solenoid driver / coil polarity on CON141 (inferred LOC only)"
   ]
 }

+ 8 - 7
constraints/prod2u_p4_normal_v3.adc

@@ -17,10 +17,11 @@ set_pin_assignment { fan_pwm_out[0] } { LOCATION = B1; IOSTANDARD = LVCMOS33; PU
 set_pin_assignment { fan_pwm_out[1] } { LOCATION = C4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { fan_pwm_out[2] } { LOCATION = B5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { fan_pwm_out[3] } { LOCATION = A14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { motor_en_n } { LOCATION = A10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_step } { LOCATION = C11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_dir } { LOCATION = B12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_step } { LOCATION = D15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_dir } { LOCATION = H14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_limit_raw } { LOCATION = B9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_limit_raw } { LOCATION = A11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { motor_en_n } { LOCATION = T7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_step } { LOCATION = R6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_dir } { LOCATION = R8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_step } { LOCATION = T3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_dir } { LOCATION = R4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_limit_raw } { LOCATION = T11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_limit_raw } { LOCATION = P13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { intake_solenoid_out } { LOCATION = P2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 14 - 11
docs/HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md

@@ -1,7 +1,7 @@
 # Prod2U V1.2 硬件测试顺序与期望波形(简版)
 
-run_id: `linux-continue-20260804T155114Z`  
-前提:比特流与 active ADC 仅含证据矩阵 **confirmed** 球;`intake_solenoid_out` **未 LOC**。  
+run_id: `con138-141-20260805T061504Z`  
+前提:比特流与 active ADC 含 confirmed PWM/UART/I2C 球 + CON138–141 **inferred** 电机/限位/电磁铁球(共 25);`intake_solenoid_out` **LOC @ P2**。  
 本文件 **不是** 已执行硬件回执;物理 COM/JTAG 未授权前状态为 `not_run`。
 
 引脚权威见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。
@@ -12,8 +12,11 @@ run_id: `linux-continue-20260804T155114Z`
 - FAN:FPGA 球 **active-low** PWM;座端经板级反相后给风扇。
 - PTC:FPGA 球 **active-high**。
 - 限位:期望 **active-high** 表示已到位(合同);用高阻探头,勿强驱。
-- X 限位 V1.2 探点:**CON125.3 / B9**(不要再按丝印找 CON30)。
-- Y 限位探点:**CON12.3 / A11**。确认 CON124 水冷座未与 A11 争用。
+- X 限位探点:**CON140.1 / T11**(旧 CON125.3 / B9 已退役)。
+- Y 限位探点:**CON140.2 / P13**(旧 CON12.3 / A11 已退役;CON124 水冷仍可能占用 A11,但不再与产品限位争用)。
+- X 电机:**CON139.1–3** → STEP/DIR/EN_n(R6/R8/T7)。
+- Y 电机:**CON138.1–2** → STEP/DIR(T3/R4)。
+- 进风电磁铁逻辑球:**CON141.1 / P2**(外部功率驱动自备)。
 
 ## 1. 推荐测试顺序
 
@@ -27,7 +30,7 @@ run_id: `linux-continue-20260804T155114Z`
 | 6 | 出风门 jog | SET_ALL exhaust X/Y = 01 或 02 | §2.4;450 个 STEP 上升沿 @ 1000 step/s |
 | 7 | 运行期限位惰性 | startup 后拨动限位 | STEP 不被 limit 截断 |
 | 8 | 看门狗 | 停发 SET_ALL ≥10 s | PTC→0,FAN→20;马达停 |
-| 9 | 进风电磁铁 | — | **跳过 / blocked**(无 FPGA 球) |
+| 9 | 进风电磁铁 | SET_ALL intake = 01/02/00 | CON141.1/P2 电平随 open/close/hold;**外部驱动必接** |
 
 ## 2. 期望波形
 
@@ -84,9 +87,9 @@ EN_n  0(保持)
 | UART2 | N11/M10 | CON78.2/1(RS-232 电平!逻辑域在 U23 FPGA 侧) | confirmed |
 | FAN1–4 | C4/B5/B1/A14 | CON8/24/25/26.7 或球侧 | confirmed |
 | PTC 腔1–4 | F16/G16… | CON18/27/28/29 功率针(危险)或 HEAT 控制侧 | confirmed |
-| X limit | B9 | **CON125.3** | 球 confirmed;CON30 丝印 blocked |
-| Y limit | A11 | **CON12.3** | confirmed |
-| X STEP/DIR | C11/B12 | 球侧;座号 inferred | inferred |
-| Y STEP/DIR | D15/H14 | 球侧;座号 inferred | inferred |
-| EN_n | A10 | CON125.4 | confirmed 球 |
-| 进风电磁铁 | — | — | **blocked** |
+| X limit | T11 | **CON140.1** | inferred(EX_GPIO29) |
+| Y limit | P13 | **CON140.2** | inferred(EX_GPIO30;A11/CON124 历史冲突已避开) |
+| X STEP/DIR | R6/R8 | **CON139.1/2** | inferred |
+| Y STEP/DIR | T3/R4 | **CON138.1/2** | inferred |
+| EN_n | T7 | **CON139.3** | inferred |
+| 进风电磁铁 | P2 | **CON141.1** | inferred(外部驱动) |

+ 36 - 85
docs/IO_EVIDENCE_MATRIX.zh-CN.md

@@ -1,7 +1,7 @@
 # Prod2U V1.2 端到端 IO 证据矩阵
 
-run_id: `linux-continue-20260804T155114Z`  
-matrix_version: `v1.2-e2e`  
+run_id: `con138-141-20260805T061504Z`  
+matrix_version: `v1.2-e2e-con138-141`  
 board: `FCB FPGA+MCU V1.2 20260717`  
 device: `EF2L45BG256B` (BG256)
 
@@ -14,29 +14,27 @@ device: `EF2L45BG256B` (BG256)
 |----|------|------|
 | V1.2 BRD | `reference/original/board/FCB_FPGA_MCU_V1.2_20260717/FCB_FPGA+MCU_V1.2_20260717.brd` | 原始板库(Allegro;hash confirmed) |
 | board-viewer 产物 | `tools/board-viewer/generated/board-data.json` | 首选:连接器焊盘→网络→FPGA 球 |
-| 生成信息 | `tools/board-viewer/generated/build-info.json` | KiCad 10.0.4 导入;board-data sha256 `daecebf7…` |
-| V1.2 注释 | `config/board_viewer_annotations.fcb_fpga_mcu_v1_2.json` | 模板/触摸点语义 |
+| V1.2 注释 | `config/board_viewer_annotations.fcb_fpga_mcu_v1_2.json` | CON138–141 EX_GPIO 路径 |
 | 0611 原理图 PDF | `reference/original/schematics/FCB_FPGA+MCU0611.pdf` | FAN_GPIO/HEAT/UART 功能表与球位 |
-| 系统电气图 | `reference/original/schematics/8000高温罩电气图V2.0.pdf` | 整机边界(非 FPGA 球位权威) |
-| 产品合同 | `projects/prod2u-door-temp/project.json` + `AGENTS.md` | 逻辑角色与 active ADC 24 球 |
+| 产品合同 | `projects/prod2u-door-temp/project.json` + `AGENTS.md` | 逻辑角色与 active ADC **25** 球 |
 
 ## 判定规则
 
 | 等级 | 含义 |
 |------|------|
 | **confirmed** | V1.2 `board-data` 路径为 `cross_verified`/`verified_fpga`,或 V1.2 板库路径与 0611 PDF 功能表在 **同一 FPGA 球 / 功能网** 上一致 |
-| **inferred** | 物理球/连接器有板级证据,但 **产品角色**(限位/轴号/进风电磁铁)无板网命名实锤,或 V1.2 丝印相对 0611 发生重编号 |
+| **inferred** | 物理球/连接器有板级证据,但 **产品角色**(限位/轴号/进风电磁铁)无板网命名实锤,或为产品重映射到通用 EX_GPIO |
 | **blocked** | V1.2 无可用连接器/球路径,或候选网络语义冲突且不足以绑定 ADC |
 
-Active ADC(`constraints/prod2u_p4_normal_v3.adc`)只应继续绑定 **confirmed 物理球**;`intake_solenoid_out` 保持未 LOC。
+Active ADC(`constraints/prod2u_p4_normal_v3.adc`)绑定 PTC/FAN/UART/I2C **confirmed** 球,以及 CON138–141 上的电机/限位/电磁铁 **inferred** 球(25 脚合计)。
 
 ## 统计(本矩阵主表行)
 
 | 等级 | 行数 |
 |------|-----:|
-| confirmed | 20 |
-| inferred | 8 |
-| blocked | 5 |
+| confirmed | 17 |
+| inferred | 12 |
+| blocked | 4 |
 | **合计** | **33** |
 
 ---
@@ -50,94 +48,47 @@ Active ADC(`constraints/prod2u_p4_normal_v3.adc`)只应继续绑定 **confir
 | 3 | UART TX | UART2_TX / RS232_TX2 | CON78.1 | M10 | 同上 → M10 |
 | 4 | I2C SCL | CT7428 总线 | (片上 I2C;远端二极管座 CON53 等) | M8 | board-data / 注释交叉;产品 27 值 |
 | 5 | I2C SDA | CT7428 总线 | 同上 | N9 | 同上 |
-| 6 | PTC 腔1 物理0 | HEAT2 → PTC2 | CON18.3 | G16 | cross_verified 高边路径 |
-| 7 | PTC 腔1 物理1 | HEAT1 → PTC1 | CON18.1 | F16 | 同上 |
-| 8 | PTC 腔2 物理0 | HEAT8 → PTC8 | CON27.3 | N1 | 同上 |
-| 9 | PTC 腔2 物理1 | HEAT7 → PTC7 | CON27.1 | M1 | 同上 |
-| 10 | PTC 腔3 物理0 | HEAT14 → PTC14 | CON28.3 | R16 | 同上 |
-| 11 | PTC 腔3 物理1 | HEAT13 → PTC13 | CON28.1 | P16 | 同上 |
-| 12 | PTC 腔4 物理0 | HEAT20 → PTC20 | CON29.3 | P9 | 同上 |
-| 13 | PTC 腔4 物理1 | HEAT19 → PTC19 | CON29.1 | T9 | 同上 |
-| 14 | FAN 腔1 | FAN_PWM3 | CON25.7 | B1 | cross_verified;FPGA 侧 active-low 开集电极 |
-| 15 | FAN 腔2 | FAN_PWM1 | CON8.7 | C4 | 同上 |
-| 16 | FAN 腔3 | FAN_PWM2 | CON24.7 | B5 | 同上 |
-| 17 | FAN 腔4 | FAN_PWM4 | CON26.7 | A14 | 同上 |
-| 18 | 马达 EN_n 物理球 | FAN_GPIO4 / BANK0_GPIO4 | **V1.2 CON125.4** | A10 | V1.2 board_database 路径至 A10;0611 为 FAN_GPIO4 |
-| 19 | Y 限位输入物理路径 | FAN_GPIO1 / BANK0_GPIO1 | **CON12.3** | **A11** | V1.2 `cross_verified`:`CON12.3 → R660 → BANK0_GPIO1 → U3.A11`;0611 PDF sheet8 CON12.3=FAN_GPIO1 |
-| 20 | X 限位输入物理球 | FAN_GPIO3 / BANK0_GPIO3 | **V1.2 CON125.3**(非 CON30) | **B9** | V1.2:`CON125.3 → FAN_GPIO3 → BANK0_GPIO3 → U3.B9`;0611 PDF sheet8 **CON30.3=FAN_GPIO3** 与球位表一致 |
-
-> 极性:PTC active-high;FAN 在 FPGA 球 active-low(板级反相到风扇座)。限位 active-high(产品合同)。
+| 6–13 | PTC 腔1–4 物理对 | HEAT* | CON18/27/28/29 | G16/F16/N1/M1/R16/P16/P9/T9 | cross_verified 高边路径 |
+| 14–17 | FAN 腔1–4 | FAN_PWM* | CON25/8/24/26 | B1/C4/B5/A14 | cross_verified;FPGA 侧 active-low |
+
+> 极性:PTC active-high;FAN 在 FPGA 球 active-low。限位 active-high;EN_n active-low;电磁铁 open=high。
 
 ---
 
-## B. 推断(inferred)— 有物理线索,角色或丝印未闭环
+## B. 推断(inferred)— CON138–141 产品重映射
+
+| # | 产品角色 | 连接器.针 | 网 | FPGA 球 | 说明 |
+|--:|----------|-----------|----|---------|------|
+| 18 | X STEP | CON139.1 | EX_GPIO25 | R6 | 通用 EX_GPIO;产品轴角色 inferred |
+| 19 | X DIR | CON139.2 | EX_GPIO26 | R8 | 同上 |
+| 20 | motor_en_n | CON139.3 | EX_GPIO27 | T7 | 自 CON125.4/A10 迁出;极性仍 active-low |
+| 21 | Y STEP | CON138.1 | EX_GPIO21 | T3 | 同上 |
+| 22 | Y DIR | CON138.2 | EX_GPIO22 | R4 | 同上 |
+| 23 | X limit | CON140.1 | EX_GPIO29 | T11 | 自 CON125.3/B9 迁出;startup-only 角色 inferred |
+| 24 | Y limit | CON140.2 | EX_GPIO30 | P13 | 自 CON12.3/A11 迁出;避开 CON124/A11 冲突 |
+| 25 | intake_solenoid_out | CON141.1 | EX_GPIO33 | P2 | 无板级 solenoid 网名;外部驱动未确认 |
+| 26–29 | (备用) | CON138.3–4 / CON139.4 / CON140.3–4 / CON141.2–4 | EX_GPIO* | P4/T5/P11/L3/N2/M3/L5/K5 | 未分配产品角色 |
 
-| # | 产品角色 | 候选 | 状态 | 说明 |
-|--:|----------|------|------|------|
-| 21 | X 限位 =「关门限位」功能 | B9 / FAN_GPIO3 | inferred | 板网名是 GPIO,不是 LIMIT;startup-only 角色来自产品合同 |
-| 22 | Y 限位 =「关门限位」功能 | A11 / FAN_GPIO1 | inferred | 同上;物理路径已 confirmed(行 19) |
-| 23 | 出风门 X STEP | 球 C11 | inferred | Active ADC/project 使用 C11;V1.2 上 C11 同时出现在 **CON12.4 FAN_GPIO2**(cross_verified)与 **CON120.2 ENA**(board_database)。**不能**从旧固件臆造 STEP 座 |
-| 24 | 出风门 X DIR | 球 B12 / CON104.3 | inferred | V1.2 路径至 B12,中间网名 **DIR1**;轴角色 X 来自 project,非丝印 “X” |
-| 25 | 出风门 Y STEP | 球 D15 / CON115.3 | inferred | V1.2 路径至 D15,中间网名却是 **DIR12**(非 PUL);与 0611「MOTOR_STEP@D15」球位一致但连接器已变 |
-| 26 | 出风门 Y DIR | 球 H14 / CON112.3 | inferred | V1.2 路径至 H14,中间网名 **DIR9**;0611 球位一致、连接器已变 |
-| 27 | 马达 EN 座丝印 | 0611 CON30.4 → V1.2 CON125.4 | inferred | 同网 FAN_GPIO4@A10;V1.2 **无 CON30 焊盘**,丝印重编号为 CON125 |
-| 28 | 腔体风扇系统名 FM3–FM6 | CON8/24/25/26 | inferred | 系统电气图有风扇分区语义;FPGA 侧已用 FAN_PWM1–4 实锤,整机线号未在 V1.2 网表逐线闭环 |
+历史路径(已退役产品 LOC,保留证据):C11/B12/D15/H14/A10/B9/A11 仍可在 board-data 中查到,但 **不再** 写入活动 ADC。
 
 ---
 
-## C. 阻断(blocked)— 不得写入 ADC / 不得假装已接线
+## C. 阻断(blocked)— 不得当作确认进风/限位丝印
 
 | # | 产品角色 | 候选 | 状态 | 阻断原因 |
 |--:|----------|------|------|----------|
-| 29 | **X 限位连接器 = CON30.3(V1.2 丝印)** | CON30.3 | **blocked** | V1.2 `board-data` **无 CON30 足迹**(touchpoints=0)。0611 的 CON30.3=FAN_GPIO3 在 V1.2 落到 **CON125.3**。合同文字 “CON30 pin3” 对 V1.2 丝印 **不成立** |
-| 30 | **进风门电磁铁 FPGA 球** | `intake_solenoid_out` | **blocked** | V1.2 board-data / 注释中无 solenoid/电磁/阀 网名;逻辑 adapter 可保留,**禁止 LOC** |
-| 31 | 进风门座 CON124 | WATER_COOL_V+ → A11 | blocked | 板库路径指向 **A11**,与 Y 限位球冲突;语义为水冷而非进风电磁铁 |
-| 32 | 进风门座 CON144–146 | KEYLED_V1/2/3 → N6/P6/N7 | blocked | 键灯网络;非电磁铁证据 |
-| 33 | 将 CON104/105/106 直接当作进/出风门轴 | PUL1–3/DIR1–3 | blocked | 仅有电机缓冲座板库路径;**无**产品轴角色交叉验证;不得从旧固件指定进风步进 |
-
----
-
-## D. 焦点核对:限位与进风电磁铁
-
-### D.1 X 限位 — CON30.3 / B9
-
-| 断言 | 结论 | 证据 |
-|------|------|------|
-| FPGA 球 B9 存在且为 FAN_GPIO3/BANK0_GPIO3 | **confirmed** | 0611 PDF 功能表;V1.2 CON125.3→B9 |
-| 0611 连接器 CON30.3 = FAN_GPIO3 | **confirmed**(对 0611) | PDF sheet8 |
-| V1.2 丝印仍为 CON30.3 | **blocked** | board-data 无 CON30 |
-| V1.2 等效接触针 | **inferred** → CON125.3 | 同网同球,丝印重编号 |
-| 用作 startup X 关门限位 | **inferred** | 仅产品合同 / AGENTS.md |
-
-### D.2 Y 限位 — CON12.3 / A11
-
-| 断言 | 结论 | 证据 |
-|------|------|------|
-| CON12.3 → FAN_GPIO1 → A11 | **confirmed** | V1.2 cross_verified + 0611 PDF |
-| 用作 startup Y 关门限位 | **inferred** | 产品合同;板网非 LIMIT |
-| 与 CON124 WATER_COOL 同球 A11 | **风险记录** | CON124 为 board_database 晶体管路径;若装配水冷驱动,会与限位输入冲突 — 硬件前需确认 CON124 未占用 |
-
-### D.3 进风电磁铁
-
-| 断言 | 结论 |
-|------|------|
-| 存在已证实的 FPGA ball / 连接器针 | **blocked** |
-| 可把 WATER_COOL / KEYLED 当电磁铁 | **blocked**(否) |
+| 30 | X 限位 = CON30.3(V1.2 丝印) | CON30.3 | **blocked** | V1.2 无 CON30;产品现用 CON140.1 |
+| 31 | 进风门座 CON124 | WATER_COOL_V+ → A11 | blocked | 水冷语义;与历史 y_limit 同球冲突 |
+| 32 | 进风门座 CON144–146 | KEYLED → N6/P6/N7 | blocked | 键灯网络 |
+| 33 | CON104/105/106 直接当进出风轴 | PUL/DIR | blocked | 无产品轴角色交叉验证 |
 
 ---
 
-## E. Active ADC 策略(证据侧)
+## D. Active ADC 策略
 
-- 保持现有 **24 球** active 接口(时钟+UART+I2C+8 PTC+4 FAN+EN+X/Y STEP/DIR+X/Y limit)。
-- `intake_solenoid_out`:**不进入** ADC(blocked)。
-- 若后续板级确认进风球:先升本矩阵为 confirmed,再改 `project.json` / ADC(非本 evidence 工作树职责时可只提证据)。
-- V1.2 马达座丝印与 0611 CON30/58/65 **不一致**;ADC 绑的是 **球位**,不是旧丝印号。
+- **25 球**:时钟+UART+I2C+8 PTC+4 FAN+EN+X/Y STEP/DIR+X/Y limit+`intake_solenoid_out`。
+- CON138–141 pins 1–4 为非保留 EX_GPIO;pins 5–6 为 GND(不可占用)。
+- 电磁铁:仅逻辑电平球;**不**宣称板载功率驱动已确认。
 
 机器可读摘要:[`config/pin_inventory.prod2u_door_temp_v1_2.json`](../config/pin_inventory.prod2u_door_temp_v1_2.json)。  
 上电/联调顺序与期望波形:[`HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md`](HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md)。
-
-## F. 协议/产品范围(非引脚,但端到端)
-
-- SET_ALL **11 字节**;旧 14 字节 length `0x0E` 拒绝。
-- 限位 **仅 startup one-shot**;`startup_done` 后 limit 对 jog 无效。
-- 无 ACK/BUSY/ERROR/命令队列;硬件验证未授权前证据等级保持 `not_run`。

+ 2 - 2
docs/prod2u-door-temp-protocol.zh-CN.md

@@ -63,11 +63,11 @@ length `0x0E`(14 字节旧格式)及任何非法字段/CRC/长度均**静默
 
 PTC 8 路物理 PWM 由 4 个 chamber 逻辑值复制。FAN 4 路独立。PWM ~20 Hz,duty 0..100。PTC active-high;FAN FPGA active-low(top 反相)。
 
-进风门默认 **电磁铁**(`intake_solenoid_out`);物理 ball **blocked**(未 LOC),见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。
+进风门默认 **电磁铁**(`intake_solenoid_out`);物理球 **CON141.1 / P2**(`inferred` LOC),见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。外部驱动/线圈极性未板级确认。
 
 ## 马达、限位和看门狗
 
-出风门 X/Y:450 步 jog,1000 step/s。限位 **仅 startup** 使用(B9/A11);运行期 limit 不干预 STEP。看门狗 10 s → PTC=0、FAN=20,马达停止,电磁铁去激励。
+出风门 X/Y:450 步 jog,1000 step/s。限位 **仅 startup** 使用(CON140.1/T11、CON140.2/P13;旧 B9/A11 已退役);运行期 limit 不干预 STEP。看门狗 10 s → PTC=0、FAN=20,马达停止,电磁铁去激励。
 
 ## 温度读取
 

+ 17 - 14
projects/prod2u-door-temp/project.json

@@ -68,11 +68,14 @@
     "exhaust_axes": ["x", "y"],
     "solenoid": {
       "signal": "intake_solenoid_out",
-      "evidence_status": "blocked",
+      "ball": "P2",
+      "connector": "CON141",
+      "connector_pin": 1,
+      "evidence_status": "inferred",
       "open_level": "high",
       "closed_level": "low",
       "inactive_level": "low",
-      "notes": "Physical ball pending V1.2 solenoid net confirmation; logic adapter implemented, ADC pin blocked."
+      "notes": "Product remap: CON141.1 EX_GPIO33→P2 (series R). Connector→ball path is board-data backed; external driver/coil polarity not confirmed — evidence grade inferred."
     }
   },
   "motors": {
@@ -90,10 +93,10 @@
     "open_dir_value": 0,
     "close_dir_value": 1,
     "mapping": {
-      "x": {"axis": "x", "role": "exhaust", "step_ball": "C11", "dir_ball": "B12"},
-      "y": {"axis": "y", "role": "exhaust", "step_ball": "D15", "dir_ball": "H14"}
+      "x": {"axis": "x", "role": "exhaust", "step_ball": "R6", "dir_ball": "R8"},
+      "y": {"axis": "y", "role": "exhaust", "step_ball": "T3", "dir_ball": "R4"}
     },
-    "enable_n": {"ball": "A10", "active_level": "low", "policy": "shared_constant_low"}
+    "enable_n": {"ball": "T7", "active_level": "low", "policy": "shared_constant_low"}
   },
   "limits": {
     "limit_count": 2,
@@ -115,8 +118,8 @@
       "runtime_limit_use": false
     },
     "channels": [
-      {"name": "x_limit_raw", "ball": "B9"},
-      {"name": "y_limit_raw", "ball": "A11"}
+      {"name": "x_limit_raw", "ball": "T11"},
+      {"name": "y_limit_raw", "ball": "P13"}
     ]
   },
   "temperature": {
@@ -143,13 +146,13 @@
     "temp_sda": "N9",
     "ptc_pwm": ["G16", "F16", "N1", "M1", "R16", "P16", "P9", "T9"],
     "fan_pwm": ["B1", "C4", "B5", "A14"],
-    "motor_en_n": "A10",
-    "x_step": "C11",
-    "x_dir": "B12",
-    "y_step": "D15",
-    "y_dir": "H14",
-    "x_limit_raw": "B9",
-    "y_limit_raw": "A11"
+    "motor_en_n": "T7",
+    "x_step": "R6",
+    "x_dir": "R8",
+    "y_step": "T3",
+    "y_dir": "R4",
+    "x_limit_raw": "T11",
+    "y_limit_raw": "P13"
   },
   "resource_policy": {
     "target_ram": "optional",

+ 2 - 8
schemas/project.schema.json

@@ -917,17 +917,11 @@
                                                             },
                                                    "step_ball":  {
                                                                      "type":  "string",
-                                                                     "enum":  [
-                                                                                  "C11",
-                                                                                  "D15"
-                                                                              ]
+                                                                     "pattern":  "^[A-T](?:[1-9]|1[0-6])$"
                                                                  },
                                                    "dir_ball":  {
                                                                     "type":  "string",
-                                                                    "enum":  [
-                                                                                 "B12",
-                                                                                 "H14"
-                                                                             ]
+                                                                    "pattern":  "^[A-T](?:[1-9]|1[0-6])$"
                                                                 }
                                                },
                                 "additionalProperties":  false

+ 7 - 7
src/generated/host-contract.json

@@ -44,11 +44,11 @@
     "active_level": "high",
     "channels": [
       {
-        "ball": "B9",
+        "ball": "T11",
         "name": "x_limit_raw"
       },
       {
-        "ball": "A11",
+        "ball": "P13",
         "name": "y_limit_raw"
       }
     ],
@@ -85,7 +85,7 @@
     "dir_setup_cycles": 25000,
     "enable_n": {
       "active_level": "low",
-      "ball": "A10",
+      "ball": "T7",
       "policy": "shared_constant_low"
     },
     "execution": "overlap",
@@ -94,15 +94,15 @@
     "mapping": {
       "x": {
         "axis": "x",
-        "dir_ball": "B12",
+        "dir_ball": "R8",
         "role": "exhaust",
-        "step_ball": "C11"
+        "step_ball": "R6"
       },
       "y": {
         "axis": "y",
-        "dir_ball": "H14",
+        "dir_ball": "R4",
         "role": "exhaust",
-        "step_ball": "D15"
+        "step_ball": "T3"
       }
     },
     "open_dir_value": 0,

+ 8 - 7
src/generated/prod2u_door_temp.adc

@@ -17,10 +17,11 @@ set_pin_assignment { fan_pwm_out[0] } { LOCATION = B1; IOSTANDARD = LVCMOS33; PU
 set_pin_assignment { fan_pwm_out[1] } { LOCATION = C4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { fan_pwm_out[2] } { LOCATION = B5; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { fan_pwm_out[3] } { LOCATION = A14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { motor_en_n } { LOCATION = A10; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_step } { LOCATION = C11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_dir } { LOCATION = B12; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_step } { LOCATION = D15; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_dir } { LOCATION = H14; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { x_limit_raw } { LOCATION = B9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_limit_raw } { LOCATION = A11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { motor_en_n } { LOCATION = T7; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_step } { LOCATION = R6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_dir } { LOCATION = R8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_step } { LOCATION = T3; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_dir } { LOCATION = R4; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { x_limit_raw } { LOCATION = T11; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_limit_raw } { LOCATION = P13; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { intake_solenoid_out } { LOCATION = P2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 11 - 7
src/generated/td-source-manifest.json

@@ -69,32 +69,36 @@
       "signal": "fan_pwm_out[3]"
     },
     {
-      "ball": "A10",
+      "ball": "T7",
       "signal": "motor_en_n"
     },
     {
-      "ball": "C11",
+      "ball": "R6",
       "signal": "x_step"
     },
     {
-      "ball": "B12",
+      "ball": "R8",
       "signal": "x_dir"
     },
     {
-      "ball": "D15",
+      "ball": "T3",
       "signal": "y_step"
     },
     {
-      "ball": "H14",
+      "ball": "R4",
       "signal": "y_dir"
     },
     {
-      "ball": "B9",
+      "ball": "T11",
       "signal": "x_limit_raw"
     },
     {
-      "ball": "A11",
+      "ball": "P13",
       "signal": "y_limit_raw"
+    },
+    {
+      "ball": "P2",
+      "signal": "intake_solenoid_out"
     }
   ],
   "contract": {

+ 3 - 9
src/top/prod2u_p4_normal_v3_top.v

@@ -14,6 +14,7 @@ module prod2u_p4_normal_v3_top (
     output wire       y_dir,
     input  wire       x_limit_raw,
     input  wire       y_limit_raw,
+    output wire       intake_solenoid_out,
     inout  wire       temp_scl,
     inout  wire       temp_sda
 );
@@ -27,14 +28,9 @@ module prod2u_p4_normal_v3_top (
         end
     endgenerate
 
-    // intake_solenoid_out stays internal until V1.2 IO evidence assigns a confirmed
-    // FPGA ball. An unconstrained package pin previously blocked Anlogic bitgen.
-    // keep + unused sink retain adapter logic in the netlist without a package pin.
-    //
     // Sim hooks (hierarchical, no extra ports): startup_done, tick_500us,
-    // host_motor_*, motor_stop_mask, startup_motor_*, intake_solenoid_out,
+    // host_motor_*, motor_stop_mask, startup_motor_*,
     // limit_sync / limit_sync_valid, watchdog_timeout_event.
-    (* keep = "true" *) wire intake_solenoid_out;
     wire sys_rst_n;
     wire uart_rx_valid;
     wire [7:0] uart_rx_data;
@@ -327,8 +323,6 @@ module prod2u_p4_normal_v3_top (
 
     /* Limit inputs are two-stage synchronized and used during startup close-seek. */
     wire unused_abort_done = motor_abort_done;
-    // Sink keeps intake_solenoid_out (and related adapter) live without a package pin.
     wire unused_inputs = &{1'b0, uart_framing_error, frame_tx_busy, adapter_busy,
-        i2c_busy, temperature_busy, uart_tx_byte_done, unused_abort_done,
-        intake_solenoid_out};
+        i2c_busy, temperature_busy, uart_tx_byte_done, unused_abort_done};
 endmodule

+ 3 - 1
tests/cocotb/prod2u_door_temp_uart_top.v

@@ -17,6 +17,7 @@ module prod2u_door_temp_uart_top (
     output wire       y_dir,
     input  wire       x_limit_raw,
     input  wire       y_limit_raw,
+    output wire       intake_solenoid_out,
     inout  wire       temp_scl,
     inout  wire       temp_sda
 );
@@ -42,7 +43,8 @@ module prod2u_door_temp_uart_top (
         .motor_en_n(motor_en_n),
         .x_step(x_step), .x_dir(x_dir),         .y_step(y_step), .y_dir(y_dir),
         .x_limit_raw(x_limit_raw),
-        .y_limit_raw(y_limit_raw), .temp_scl(temp_scl), .temp_sda(temp_sda)
+        .y_limit_raw(y_limit_raw), .intake_solenoid_out(intake_solenoid_out),
+        .temp_scl(temp_scl), .temp_sda(temp_sda)
     );
 
     initial begin

+ 20 - 10
tests/unit/test_intake_dual_profile.py

@@ -60,16 +60,26 @@ class IntakeDualProfileTests(unittest.TestCase):
         self.assertIn("intake_limit_raw", top)
         self.assertIn("ERROR_motor_compat_requires_P4_INTAKE_ACTUATOR_SOLENOID_0", top)
 
-    def test_both_profiles_keep_24_ball_adc_without_intake_loc(self):
-        for path in (PROD_PROJECT, MOTOR_PROJECT):
-            project = load_project(path)
-            interface = render_adc(project)
-            self.assertEqual(len(interface), 24)
-            signals = [signal for signal, _ in interface]
-            self.assertNotIn("intake_step", signals)
-            self.assertNotIn("intake_dir", signals)
-            self.assertNotIn("intake_limit_raw", signals)
-            self.assertNotIn("intake_solenoid_out", signals)
+    def test_production_adc_includes_inferred_solenoid_loc(self):
+        project = load_project(PROD_PROJECT)
+        interface = render_adc(project)
+        self.assertEqual(len(interface), 25)
+        signals = [signal for signal, _ in interface]
+        self.assertIn("intake_solenoid_out", signals)
+        self.assertEqual(dict(interface)["intake_solenoid_out"], "P2")
+        self.assertNotIn("intake_step", signals)
+        self.assertNotIn("intake_dir", signals)
+        self.assertNotIn("intake_limit_raw", signals)
+
+    def test_motor_compat_adc_stays_24_without_intake_loc(self):
+        project = load_project(MOTOR_PROJECT)
+        interface = render_adc(project)
+        self.assertEqual(len(interface), 24)
+        signals = [signal for signal, _ in interface]
+        self.assertNotIn("intake_step", signals)
+        self.assertNotIn("intake_dir", signals)
+        self.assertNotIn("intake_limit_raw", signals)
+        self.assertNotIn("intake_solenoid_out", signals)
 
     def test_generator_profile_select_changes_compile_defines(self):
         with tempfile.TemporaryDirectory() as directory:

+ 12 - 11
tests/unit/test_phase1_contract.py

@@ -30,13 +30,14 @@ EXPECTED_ACTIVE_INTERFACE = (
     ("fan_pwm_out[1]", "C4"),
     ("fan_pwm_out[2]", "B5"),
     ("fan_pwm_out[3]", "A14"),
-    ("motor_en_n", "A10"),
-    ("x_step", "C11"),
-    ("x_dir", "B12"),
-    ("y_step", "D15"),
-    ("y_dir", "H14"),
-    ("x_limit_raw", "B9"),
-    ("y_limit_raw", "A11"),
+    ("motor_en_n", "T7"),
+    ("x_step", "R6"),
+    ("x_dir", "R8"),
+    ("y_step", "T3"),
+    ("y_dir", "R4"),
+    ("x_limit_raw", "T11"),
+    ("y_limit_raw", "P13"),
+    ("intake_solenoid_out", "P2"),
 )
 
 EXPECTED_EVIDENCE_ALLOWLIST = frozenset(
@@ -107,13 +108,13 @@ LEGACY_MARKERS = (
 
 
 class Phase1ContractTests(unittest.TestCase):
-    def test_active_interface_has_24_flattened_bits_and_unique_fpga_balls(self):
+    def test_active_interface_has_25_flattened_bits_and_unique_fpga_balls(self):
         project = load_project(PROJECT_PATH)
         rendered = tuple(render_adc(project))
         self.assertEqual(rendered, EXPECTED_ACTIVE_INTERFACE)
-        self.assertEqual(len(rendered), 24)  # flattened top-level I/O bits
-        self.assertEqual(len(render_adc(project)), 24)  # ADC assignment count
-        self.assertEqual(len({ball for _, ball in rendered}), 24)
+        self.assertEqual(len(rendered), 25)  # flattened top-level I/O bits (+solenoid)
+        self.assertEqual(len(render_adc(project)), 25)  # ADC assignment count
+        self.assertEqual(len({ball for _, ball in rendered}), 25)
         self.assertEqual(
             [channel["ball"] for channel in project["outputs"]["fan_channels"]],
             ["B1", "C4", "B5", "A14"],

+ 7 - 9
tests/unit/test_phase2_contract.py

@@ -107,11 +107,11 @@ class Phase2ContractTests(unittest.TestCase):
             ADC_PATH.read_text(encoding="ascii"),
         )
         self.assertEqual(tuple((signal.strip(), ball) for signal, ball in assignments), expected_interface)
-        self.assertEqual(len(assignments), 24)
-        self.assertEqual(len({ball for _, ball in assignments}), 24)
+        self.assertEqual(len(assignments), 25)
+        self.assertEqual(len({ball for _, ball in assignments}), 25)
         self.assertNotRegex(ADC_PATH.read_text(encoding="ascii"), r"(?i)ground|z_step|z_dir|ptc9")
 
-    def test_top_has_24_flattened_io_bits_and_only_phase2_active_ports(self):
+    def test_top_has_25_flattened_io_bits_and_solenoid_package_port(self):
         source = TOP_PATH.read_text(encoding="ascii")
         declaration = re.search(
             r"module\s+prod2u_p4_normal_v3_top\s*\((.*?)\);",
@@ -120,16 +120,14 @@ class Phase2ContractTests(unittest.TestCase):
         )
         self.assertIsNotNone(declaration)
         ports = declaration.group(1)
-        # Package IO stays at the confirmed 24-ball set. intake_solenoid_out is
-        # internal until a confirmed FPGA ball exists (blocked in IO evidence).
-        self.assertEqual(_flattened_top_level_io_bits(source), 24)
+        # Package IO is 25 balls after CON138–141 remap (+ intake_solenoid_out).
+        self.assertEqual(_flattened_top_level_io_bits(source), 25)
         expected = (
             "sys_clk", "host_uart_rx", "host_uart_tx", "ptc_pwm_out",
             "fan_pwm_out", "motor_en_n", "x_step", "x_dir", "y_step", "y_dir",
-            "x_limit_raw", "y_limit_raw", "temp_scl", "temp_sda",
+            "x_limit_raw", "y_limit_raw", "intake_solenoid_out", "temp_scl", "temp_sda",
         )
-        self.assertIn("intake_solenoid_out", source)
-        self.assertNotRegex(ports, r"\bintake_solenoid_out\b")
+        self.assertRegex(ports, r"\bintake_solenoid_out\b")
         for port in expected:
             self.assertRegex(ports, rf"\b{re.escape(port)}\b")
         self.assertRegex(ports, r"output\s+wire\s+\[7:0\]\s+ptc_pwm_out")

+ 8 - 5
tests/unit/test_prod2u_p4_normal_v3_td_files.py

@@ -43,11 +43,14 @@ class Prod2UP4NormalV3TDFilesTests(unittest.TestCase):
             "host_uart_tx": "M10",
             "temp_scl": "M8",
             "temp_sda": "N9",
-            "motor_en_n": "A10",
-            "x_step": "C11",
-            "x_dir": "B12",
-            "y_step": "D15",
-            "y_dir": "H14",
+            "motor_en_n": "T7",
+            "x_step": "R6",
+            "x_dir": "R8",
+            "y_step": "T3",
+            "y_dir": "R4",
+            "x_limit_raw": "T11",
+            "y_limit_raw": "P13",
+            "intake_solenoid_out": "P2",
         }.items():
             self.assertRegex(adc, rf"set_pin_assignment\s+\{{\s*{signal}\s*\}}.*LOCATION\s*=\s*{ball}")
 

+ 2 - 1
tests/unit/test_project_generation.py

@@ -71,11 +71,12 @@ class ProjectGenerationTests(unittest.TestCase):
 
             adc = (first / "generated" / "prod2u_door_temp.adc").read_text(encoding="ascii")
             assignments = [line for line in adc.splitlines() if line.startswith("set_pin_assignment")]
-            self.assertEqual(len(assignments), 24)
+            self.assertEqual(len(assignments), 25)
             self.assertTrue(any(line.startswith("set_pin_assignment { ptc_pwm_out[0] } { LOCATION = G16;") for line in assignments))
             self.assertTrue(any(line.startswith("set_pin_assignment { ptc_pwm_out[7] } { LOCATION = T9;") for line in assignments))
             self.assertTrue(any(line.startswith("set_pin_assignment { fan_pwm_out[0] } { LOCATION = B1;") for line in assignments))
             self.assertTrue(any(line.startswith("set_pin_assignment { fan_pwm_out[3] } { LOCATION = A14;") for line in assignments))
+            self.assertTrue(any(line.startswith("set_pin_assignment { intake_solenoid_out } { LOCATION = P2;") for line in assignments))
 
 
 if __name__ == "__main__":

+ 31 - 5
tools/generate_project.py

@@ -201,8 +201,26 @@ def _validate_project(payload: Mapping[str, Any]) -> None:
     else:
         _require(doors["intake_actuator"] == "solenoid", "default intake actuator must be solenoid")
     solenoid = _object(doors["solenoid"], "doors.solenoid")
-    _keys(solenoid, {"signal", "evidence_status", "open_level", "closed_level", "inactive_level", "notes"}, "doors.solenoid")
+    solenoid_keys = {"signal", "evidence_status", "open_level", "closed_level", "inactive_level", "notes"}
+    if solenoid.get("ball"):
+        solenoid_keys = solenoid_keys | {"ball", "connector", "connector_pin"}
+    _keys(solenoid, solenoid_keys, "doors.solenoid")
+    _require(solenoid["signal"] == "intake_solenoid_out", "solenoid signal must be intake_solenoid_out")
     _require(solenoid["open_level"] in {"high", "low"} and solenoid["closed_level"] in {"high", "low"}, "invalid solenoid levels")
+    _require(solenoid["inactive_level"] in {"high", "low"}, "invalid solenoid inactive level")
+    if motor_compat:
+        _require(solenoid.get("evidence_status") == "blocked", "motor-compat solenoid must stay blocked")
+        _require(not solenoid.get("ball"), "motor-compat solenoid must not bind a package ball")
+    elif solenoid.get("ball"):
+        _require(
+            solenoid["evidence_status"] in {"inferred", "confirmed"},
+            "assigned solenoid ball requires inferred or confirmed evidence_status",
+        )
+        _require(isinstance(solenoid["ball"], str) and solenoid["ball"], "invalid solenoid ball")
+        _require(isinstance(solenoid["connector"], str) and solenoid["connector"], "invalid solenoid connector")
+        _integer(solenoid["connector_pin"], "doors.solenoid.connector_pin", minimum=1)
+    else:
+        _require(solenoid.get("evidence_status") == "blocked", "unbound solenoid must stay blocked")
 
     motors = _object(payload["motors"], "motors")
     _keys(
@@ -260,7 +278,9 @@ def _validate_project(payload: Mapping[str, Any]) -> None:
             _require(item["axis"] == axis and item["role"] == "exhaust", f"motor {axis} role mismatch")
     enable = _object(motors["enable_n"], "motors.enable_n")
     _keys(enable, {"ball", "active_level", "policy"}, "motors.enable_n")
-    _require(enable == {"ball": "A10", "active_level": "low", "policy": "shared_constant_low"}, "motor enable mapping mismatch")
+    _require(isinstance(enable["ball"], str) and enable["ball"], "invalid motor enable ball")
+    _require(enable["active_level"] == "low", "motor enable must be active low")
+    _require(enable["policy"] == "shared_constant_low", "motor enable policy mismatch")
 
     limits = _object(payload["limits"], "limits")
     _keys(limits, {"limit_count", "active_level", "functional_use", "runtime_use", "startup", "channels"}, "limits")
@@ -476,12 +496,13 @@ def _active_interface(project: Mapping[str, Any]) -> tuple[tuple[str, str], ...]
     outputs = project["outputs"]
     pins = project["pins"]
     motors = project["motors"]
-    # Production ADC stays at confirmed 24 balls for both profiles. Intake motor /
-    # intake limit / solenoid never receive LOC here (blocked physical mapping).
+    # Base interface: clock+UART+I2C+PWM+EN+X/Y STEP/DIR+X/Y limit.
+    # Intake motor / intake limit stay blocked. Production solenoid LOCs only when
+    # doors.solenoid.ball is assigned with non-blocked evidence_status.
     limit_channels = [
         item for item in project["limits"]["channels"] if item["name"] in {"x_limit_raw", "y_limit_raw"}
     ]
-    return (
+    interface = (
         ("sys_clk", project["device"]["clock_ball"]),
         ("host_uart_rx", pins["host_uart_rx"]),
         ("host_uart_tx", pins["host_uart_tx"]),
@@ -496,6 +517,11 @@ def _active_interface(project: Mapping[str, Any]) -> tuple[tuple[str, str], ...]
         ("y_dir", motors["mapping"]["y"]["dir_ball"]),
         *tuple((item["name"], item["ball"]) for item in limit_channels),
     )
+    solenoid = project["doors"]["solenoid"]
+    ball = solenoid.get("ball")
+    if ball and solenoid.get("evidence_status") != "blocked":
+        interface = interface + ((solenoid["signal"], ball),)
+    return interface
 
 
 def render_adc(project: Mapping[str, Any]) -> tuple[tuple[str, str], ...]: