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

feat(prod2u): move Y limit to CON34.3 / F9

Relocate y_limit_raw from CON68.4/L8 (OC PWM path) to CON34.3/F9
(FAN_GPIO11 tach input). Keep X on CON68.3/M6; startup one-shot and
active-high polarity unchanged. Regenerate ADC/manifest.

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

+ 2 - 2
ACCEPTANCE_MATRIX.md

@@ -29,8 +29,8 @@
 ## Physical / board remaining uncertainties(不升格为 confirmed pass)
 
 - Intake solenoid:CON141.1/P2 **inferred** LOC;外部驱动/线圈极性未确认。
-- Exhaust X/Y STEP/DIR/EN 在 CON138–139 为 EX_GPIO 产品角色 **inferred**;限位在 **CON68**(风扇6 复用)。
-- 历史 A11 与 CON124 装配冲突记录保留;产品 y_limit 已迁至 CON68.4/L8。
+- Exhaust X/Y STEP/DIR/EN 在 CON138–139 为 EX_GPIO 产品角色 **inferred**;X 限位 **CON68.3/M6**,Y 限位 **CON34.3/F9**。
+- 历史 A11 与 CON124 装配冲突记录保留;产品 y_limit 已迁至 CON34.3/F9。
 - 详见 [`docs/IO_EVIDENCE_MATRIX.zh-CN.md`](docs/IO_EVIDENCE_MATRIX.zh-CN.md)。
 
 ## Frozen protocol numbers

+ 3 - 2
AGENTS.md

@@ -52,8 +52,9 @@ Current authority is limited to the above contract files, this `AGENTS.md`, and
 
 ## Limit one-shot contract
 
-- X limit: CON68 pin3 / FPGA M6 (FAN_GPIO47 tach path). Y limit: CON68 pin4 / FPGA L8 (FAN_GPIO48; requires fan OC transistor Q109 unpopulated or FPGA-side wiring — see project.json). Active high at FPGA. CON68 pin1=GND, pin2=+12V_FAN6 reserved.
-  (Legacy 0611/early V1.2 probe points CON30.3→B9 and CON12.3→A11 are retired for this product remap.)
+- X limit: CON68 pin3 / FPGA M6 (FAN_GPIO47 tach path). Y limit: CON34 pin3 / FPGA F9 (FAN_GPIO11 tach path). Active high at FPGA.
+  CON68 pin1=GND and pin2=+12V_FAN6 are reserved (do not wire limits there). CON34 pin1=GND and pin2=+12V_FAN10 are reserved.
+  (Legacy probe points CON30.3→B9, CON12.3→A11, CON140.1→T11, CON140.2→P13, and CON68.4→L8 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:

+ 2 - 2
FINAL_DELIVERY_REPORT.md

@@ -32,8 +32,8 @@
 ## 合法 blocked / not_run
 
 - `intake_solenoid_out`:CON141.1/P2 **inferred** LOC;外部驱动/线圈极性未确认。
-- X/Y STEP/DIR/EN:CON138–139 EX_GPIO 产品角色 **inferred**;限位在 **CON68**(风扇6 复用)。
-- 历史 A11 vs CON124 装配冲突记录保留;产品 y_limit 已迁至 CON68.4/L8。
+- X/Y STEP/DIR/EN:CON138–139 EX_GPIO 产品角色 **inferred**;X 限位 CON68.3/M6,Y 限位 CON34.3/F9。
+- 历史 A11 vs CON124 装配冲突记录保留;产品 y_limit 已迁至 CON34.3/F9。
 - COM / JTAG / 烧录未授权 → Hardware **`not_run`**。
 
 ## 明确作废的活动声明

+ 3 - 3
OPEN_QUESTIONS.md

@@ -14,10 +14,10 @@ No user product-contract decision currently blocks the **11-byte SET_ALL + solen
 ## Physical / evidence remaining uncertainties
 
 - `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 on CON138–CON139 are **inferred** EX_GPIO roles; limits now on **CON68** (fan-6 header repurposed).
-- Historical **A11 vs CON124** WATER_COOL conflict remains a board-assembly note; product **y_limit** is CON68.4 / L8 (not A11).
+- Exhaust X/Y STEP/DIR/EN on CON138–CON139 are **inferred** EX_GPIO roles; X limit on **CON68.3 / M6**, Y limit on **CON34.3 / F9** (fan-header tach pin3 repurposed).
+- Historical **A11 vs CON124** WATER_COOL conflict remains a board-assembly note; product **y_limit** is CON34.3 / F9 (not A11).
 - Contract prose historically said CON30.3(丝印) for X limit; V1.2 product probe is now **CON68.3 / M6**.
-- CON68 pin4 is stock open-collector fan PWM: Y-limit harness needs Q109 unpopulated + 0R to FAN_GPIO48, or a flying lead to R708 FPGA side.
+- CON34/CON68 pin2 (+12V fan rails) and pin1 (GND) must not carry limit signals.
 
 ## 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: CON68.3/M6,Y: CON68.4/L8;CON68 为风扇 6 座复用,见 IO 证据)。`startup_done` 前主机 UART 被丢弃;完成后限位对普通 jog **惰性**。
+上电/`startup_done==0`:X/Y 向 close(DIR=1)间歇寻限位,最多 10 burst × 450 步 @ 1000 step/s,burst 间隔 50 ms;限位 active-high(X: CON68.3/M6,Y: CON34.3/F9;风扇座 pin3 tach 复用,见 IO 证据)。`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`**(未授权) |
-| 物理 uncertainties | 进风电磁铁外部驱动/线圈极性;CON138–139 马达 EX_GPIO 角色 inferred;CON68 限位复用风扇座(Y 需 Q109 改线);历史 A11 vs CON124 |
+| 物理 uncertainties | 进风电磁铁外部驱动/线圈极性;CON138–139 马达 EX_GPIO 角色 inferred;限位复用风扇座 pin3(X:CON68 / Y:CON34);历史 A11 vs CON124 |
 
 `packager-compact-20260805T042343Z` 已合入 `dev`(integrate tip `445814a…` + 活动文档对齐;review-compact 打包体系);生产综合输入相对 `da7b05a…` **未变**,**不**改写上表软件/TD/bitstream 闭合证据。
 

+ 7 - 6
config/pin_inventory.prod2u_door_temp_v1_2.json

@@ -274,17 +274,18 @@
     },
     {
       "signal": "y_limit_raw",
-      "function_net": "FAN_GPIO48",
-      "board_connector": "CON68",
-      "connector_pin": 4,
-      "fpga_ball": "L8",
+      "function_net": "FAN_GPIO11",
+      "board_connector": "CON34",
+      "connector_pin": 3,
+      "legacy_connector_note": "Previously CON68.4/L8; before that CON140.2/P13 and CON12.3/A11",
+      "fpga_ball": "F9",
       "direction": "input",
       "active_level": "high",
       "product_role": "startup_y_close_limit",
       "physical_path_conclusion": "inferred",
       "product_role_conclusion": "inferred",
       "conclusion": "inferred",
-      "conclusion_notes": "CON68 is stock four-wire fan6. Pin4 is OC PWM via Q109 to L8/FAN_GPIO48. Product Y limit reuses L8 as GPIO input; assemble with Q109 unpopulated and 0R CON68.4↔FAN_GPIO48, or wire to R708 FPGA side. Remapped from CON140.2/P13.",
+      "conclusion_notes": "CON34.3→R670→F9 tach path is a true FPGA digital input (optional R944 pull-up). Close-limit role product-contract inferred. Present active-high at FPGA. CON34.1=GND and CON34.2=+12V_FAN10 reserved.",
       "manually_verified": true,
       "source_confidence": "v1_2_board_data_fan_header_repurpose"
     },
@@ -407,7 +408,7 @@
   ],
   "blocked_summary": [
     "V1.2 silkscreen CON30.3 for X limit (historical; product now uses CON68.3 / M6)",
-    "CON124 as intake actuator (WATER_COOL -> A11); product y_limit on CON68.4 / L8",
+    "CON124 as intake actuator (WATER_COOL -> A11); product y_limit on CON34.3 / F9",
     "CON144-146 as intake actuator (KEYLED)",
     "External solenoid driver / coil polarity on CON141 (inferred LOC only)"
   ]

+ 1 - 1
constraints/prod2u_p4_normal_v3.adc

@@ -23,5 +23,5 @@ set_pin_assignment { x_dir } { LOCATION = R8; IOSTANDARD = LVCMOS33; PULLTYPE =
 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 = M6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_limit_raw } { LOCATION = L8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_limit_raw } { LOCATION = F9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { intake_solenoid_out } { LOCATION = P2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 2 - 2
docs/HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md

@@ -13,7 +13,7 @@ run_id: `con138-141-20260805T061504Z`
 - PTC:FPGA 球 **active-high**。
 - 限位:期望 **active-high** 表示已到位(合同);用高阻探头,勿强驱。
 - X 限位探点:**CON68.3 / M6**(FAN_GPIO47;旧 CON140.1/T11、CON125.3/B9 已退役)。
-- Y 限位探点:**CON68.4 / L8**(FAN_GPIO48;装配见 IO 矩阵 CON68 注;旧 CON140.2/P13、CON12.3/A11 已退役)。
+- Y 限位探点:**CON34.3 / F9**(FAN_GPIO11;旧 CON68.4/L8、CON140.2/P13、CON12.3/A11 已退役)。
 - X 电机:**CON139.1–3** → STEP/DIR/EN_n(R6/R8/T7)。
 - Y 电机:**CON138.1–2** → STEP/DIR(T3/R4)。
 - 进风电磁铁逻辑球:**CON141.1 / P2**(外部功率驱动自备)。
@@ -88,7 +88,7 @@ EN_n  0(保持)
 | 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 | M6 | **CON68.3** | inferred(FAN_GPIO47 tach 复用) |
-| Y limit | L8 | **CON68.4** | inferred(FAN_GPIO48;需 Q109 改线,见 IO 矩阵) |
+| Y limit | F9 | **CON34.3** | inferred(FAN_GPIO11 tach 复用) |
 | X STEP/DIR | R6/R8 | **CON139.1/2** | inferred |
 | Y STEP/DIR | T3/R4 | **CON138.1/2** | inferred |
 | EN_n | T7 | **CON139.3** | inferred |

+ 3 - 3
docs/IO_EVIDENCE_MATRIX.zh-CN.md

@@ -65,12 +65,12 @@ Active ADC(`constraints/prod2u_p4_normal_v3.adc`)绑定 PTC/FAN/UART/I2C **c
 | 21 | Y STEP | CON138.1 | EX_GPIO21 | T3 | 同上 |
 | 22 | Y DIR | CON138.2 | EX_GPIO22 | R4 | 同上 |
 | 23 | X limit | CON68.3 | FAN_GPIO47 | M6 | 复用风扇6 转速脚;startup-only;active-high @ FPGA |
-| 24 | Y limit | CON68.4 | FAN_GPIO48 | L8 | 复用风扇6 PWM 控制球;需 Q109 不贴/0R 改线,见装配注 |
+| 24 | Y limit | CON34.3 | FAN_GPIO11 | F9 | 复用风扇10 转速脚;直连数字输入;startup-only;active-high @ FPGA |
 | 25 | intake_solenoid_out | CON141.1 | EX_GPIO33 | P2 | 无板级 solenoid 网名;外部驱动未确认 |
 
-CON68 装配注:pin1=GND;pin2=+12V_FAN6(限位线禁止接入);pin3→M6 为直连数字输入;pin4 原开集电极 PWM,Y 限位需 Q109 不贴并 0R 连通 CON68.4↔FAN_GPIO48,或改接到 R708 FPGA 侧。
+限位装配注:CON68/CON34 的 pin1=GND、pin2=+12V_FAN* 禁止接限位信号;pin3 均为 tach→FPGA 数字输入(X: M6;Y: F9)。旧 CON68.4/L8(OC PWM)已退役,不再作 Y 限位。
 
-历史路径(已退役产品 LOC,保留证据):C11/B12/D15/H14/A10/B9/A11/T11/P13 仍可在 board-data 中查到,但 **不再** 写入活动 ADC。
+历史路径(已退役产品 LOC,保留证据):C11/B12/D15/H14/A10/B9/A11/T11/P13/L8 仍可在 board-data 中查到,但 **不再** 写入活动 ADC。
 
 ---
 

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

@@ -67,7 +67,7 @@ PTC 8 路物理 PWM 由 4 个 chamber 逻辑值复制。FAN 4 路独立。PWM ~2
 
 ## 马达、限位和看门狗
 
-出风门 X/Y:450 步 jog,1000 step/s。限位 **仅 startup** 使用(CON68.3/M6、CON68.4/L8;旧 CON140/T11·P13 与 B9/A11 已退役);运行期 limit 不干预 STEP。看门狗 10 s → PTC=0、FAN=20,马达停止,电磁铁去激励。
+出风门 X/Y:450 步 jog,1000 step/s。限位 **仅 startup** 使用(CON68.3/M6、CON34.3/F9;旧 CON68.4/L8、CON140/T11·P13 与 B9/A11 已退役);运行期 limit 不干预 STEP。看门狗 10 s → PTC=0、FAN=20,马达停止,电磁铁去激励。
 
 ## 温度读取
 

+ 2 - 2
projects/prod2u-door-temp/project.json

@@ -119,7 +119,7 @@
     },
     "channels": [
       {"name": "x_limit_raw", "ball": "M6"},
-      {"name": "y_limit_raw", "ball": "L8"}
+      {"name": "y_limit_raw", "ball": "F9"}
     ]
   },
   "temperature": {
@@ -152,7 +152,7 @@
     "y_step": "T3",
     "y_dir": "R4",
     "x_limit_raw": "M6",
-    "y_limit_raw": "L8"
+    "y_limit_raw": "F9"
   },
   "resource_policy": {
     "target_ram": "optional",

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

@@ -48,7 +48,7 @@
         "name": "x_limit_raw"
       },
       {
-        "ball": "L8",
+        "ball": "F9",
         "name": "y_limit_raw"
       }
     ],

+ 1 - 1
src/generated/prod2u_door_temp.adc

@@ -23,5 +23,5 @@ set_pin_assignment { x_dir } { LOCATION = R8; IOSTANDARD = LVCMOS33; PULLTYPE =
 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 = M6; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
-set_pin_assignment { y_limit_raw } { LOCATION = L8; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
+set_pin_assignment { y_limit_raw } { LOCATION = F9; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }
 set_pin_assignment { intake_solenoid_out } { LOCATION = P2; IOSTANDARD = LVCMOS33; PULLTYPE = NONE; }

+ 1 - 1
src/generated/td-source-manifest.json

@@ -93,7 +93,7 @@
       "signal": "x_limit_raw"
     },
     {
-      "ball": "L8",
+      "ball": "F9",
       "signal": "y_limit_raw"
     },
     {

+ 1 - 1
tests/unit/test_phase1_contract.py

@@ -36,7 +36,7 @@ EXPECTED_ACTIVE_INTERFACE = (
     ("y_step", "T3"),
     ("y_dir", "R4"),
     ("x_limit_raw", "M6"),
-    ("y_limit_raw", "L8"),
+    ("y_limit_raw", "F9"),
     ("intake_solenoid_out", "P2"),
 )
 

+ 1 - 1
tests/unit/test_prod2u_p4_normal_v3_td_files.py

@@ -49,7 +49,7 @@ class Prod2UP4NormalV3TDFilesTests(unittest.TestCase):
             "y_step": "T3",
             "y_dir": "R4",
             "x_limit_raw": "M6",
-            "y_limit_raw": "L8",
+            "y_limit_raw": "F9",
             "intake_solenoid_out": "P2",
         }.items():
             self.assertRegex(adc, rf"set_pin_assignment\s+\{{\s*{signal}\s*\}}.*LOCATION\s*=\s*{ball}")