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

docs(prod2u): add 3-axis bring-up notes and five-round reviews

Bind Linux/TD/reference closure evidence and document Hardware NOT RUN.

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

+ 12 - 0
ACCEPTANCE_MATRIX.md

@@ -40,3 +40,15 @@
 - SET_ALL:**11** 字节;Temperature:**27** 值 / 33 字节响应帧。
 - PWM:~19.993602047 Hz;boot PTC=0/FAN=10;watchdog 10 s → PTC=0/FAN=20。
 - Ordinary motor:450 steps @ 1000 step/s;X/Y 可重叠。
+
+## 3-axis closure (`3axis-20260805T171312Z`)
+
+| Lane | Status | Notes |
+|------|--------|-------|
+| python / board_viewer | pass | CON12 remap + detached validate |
+| icarus / verilator / cocotb | pass | 3-axis startup + runtime hard-stop |
+| formal | pass | BMC hard-stop/startup/dispatcher; prove motor-temp contract |
+| td2026 | pass | tip `bb515af…`; bitstream `45f548ab…` |
+| reference ZIP | pass | Linux; Windows handoff blocked |
+| Hardware validation | NOT RUN | COM/JTAG not authorized |
+

+ 3 - 0
config/review_compact_evidence_allowlist.json

@@ -97,6 +97,9 @@
       "canonical_path": "evidence/hardware/HARDWARE_BRINGUP_NOTES.zh-CN.md",
       "match_basenames": [
         "hardware_bringup_notes.zh-cn.md"
+      ],
+      "match_workspace_paths": [
+        "docs/HARDWARE_BRINGUP_NOTES.zh-CN.md"
       ]
     }
   ],

+ 65 - 0
docs/HARDWARE_BRINGUP_NOTES.zh-CN.md

@@ -0,0 +1,65 @@
+# Prod2U V1.2 硬件 Bring-up 笔记(三轴六限位)
+
+run_id: `3axis-20260805T171312Z`  
+本文件 **不是** 已执行硬件回执。物理 COM/JTAG 未授权;**Hardware validation = NOT RUN**。
+
+引脚权威见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。  
+活动合同:`projects/prod2u-door-temp/`;无 solenoid / motor-compat。
+
+## 0. 安全与探点
+
+- 逻辑探点优先 FPGA 球侧 3.3 V;风扇/PTC 座为 12 V 功率域。
+- FAN:FPGA 球 **active-low** PWM;PTC:FPGA 球 **active-high**。
+- 限位:期望 **active-high** = 到位;用高阻探头,勿强驱。
+- 电机 EN:FPGA `motor_en_n` **恒 1**(`permanent_high`);板级 NPN 开集反相 → 座端有效电平需 bring-up 确认(矩阵注为 inferred)。
+- **勿**再按旧丝印/旧注解找限位:CON12 不是 GND/+12V/A11/C11;CON68/CON34 旧限位已退役。
+
+## 1. 推荐测试顺序
+
+| 步 | 项目 | 操作摘要 | 通过判据(期望) |
+|---:|------|----------|------------------|
+| 1 | 上电静态 | 上电,不发 UART | PTC≈0;FAN≈10% @~20 Hz;`motor_en_n`=1;STEP 无边沿 |
+| 2 | Startup 关门 | 观察 X/Y/Z STEP + LS | 见 §2.1;`startup_done` 前主机帧丢弃(无 TEMP 响应) |
+| 3 | UART 冒烟 | startup 后 GET_TEMPERATURE | `0x82` 27 字节载荷 + CRC |
+| 4 | FAN/PTC PWM | SET_ALL 单腔 0/50/100 | ~20 Hz;同腔两路 PTC 一致 |
+| 5 | 普通 jog | byte8/9/10 = Z/X/Y;`01`/`02` | 450 STEP 上升沿 @ 1000 step/s |
+| 6 | 运行期限位硬停 | jog 中拨对应方向限位 | 当前高脉冲结束后无新上升沿 |
+| 7 | `00` stop | busy 时或空闲发 `00` | 无新 jog;busy 忽略新 start |
+| 8 | 看门狗 | 停发 SET_ALL ≥10 s | PTC→0,FAN→20 |
+
+## 2. 期望行为摘要
+
+### 2.1 Startup(一次性)
+
+- DIR=1(关);三轴可并发。
+- 每轴最多 **5000** STEP @ 1000 step/s,停于对应 **LS**(关方向)。
+- 未触限位:该轴 **500** STEP backoff(DIR=0,HS 门控),标记 missed;不重试、无故障帧。
+- 限位命中:完成当前 STEP 高半周后不再产生新上升沿。
+- 无旧 10×450 burst / 50 ms 间隔合同。
+
+### 2.2 普通 jog(startup_done 后)
+
+- SET_ALL:`door_z`@8、`door_x`@9、`door_y`@10;`01` 开 / `02` 关 / `00` stop。
+- 固定 **450** STEP @ 1000 step/s。
+- 运行期:开方向看 HS、关方向看 LS;每时钟硬停。
+
+### 2.3 UART
+
+- 25 MHz,115200 8N1,217 clk/bit;`A5 5A`;CRC-16/CCITT-FALSE。
+- SET_ALL 无应答;GET_TEMPERATURE → `0x82`。
+
+## 3. 探点速查(活动 ADC)
+
+| 信号 | 球 | 连接器 | 等级 |
+|------|----|--------|------|
+| X/Y/Z STEP | C12/L12/L14 | CON104/105/106.2 | confirmed |
+| X/Y/Z DIR | B12/J11/K14 | CON104/105/106.3 | confirmed |
+| EN | C11 | CON120.2 | confirmed 球;座端极性 inferred |
+| LS1/HS1/LS2/HS2 | A5/B6/C8/A8 | CON12.1–4 | confirmed |
+| LS3/HS3 | K16/J15 | CON129.1–2 | confirmed |
+| LS4/HS4 | H15/H16 | CON129.3–4 | inventory only |
+
+## 4. 状态
+
+- Linux / sim / formal / TD:见本轮 verification-matrix 与 TD receipt。
+- **Hardware validation: NOT RUN**

+ 63 - 0
receipts/deep-reviews/round-1-product-protocol.json

@@ -0,0 +1,63 @@
+{
+  "schema": "prod2u-deep-review-receipt-v1",
+  "RUN_ID": "3axis-20260805T171312Z",
+  "TD_COMMIT": "bb515afdc86fecb9281f1128b69c696929aeaa25",
+  "bitstream_sha256": "45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a",
+  "branch": "wt/3axis-closure-20260805T171312Z",
+  "recorded_at_utc": "2026-08-05T17:48:59Z",
+  "reviewer": "integrate-3axis-closure-agent",
+  "round": 1,
+  "name": "product-protocol",
+  "status": "closed",
+  "scope": [
+    "SET_ALL 11B Z/X/Y",
+    "no solenoid",
+    "450 jog",
+    "startup 5000+500",
+    "six limits runtime",
+    "watchdog",
+    "UART"
+  ],
+  "findings": [
+    {
+      "id": "set_all_11_zxy",
+      "result": "pass",
+      "evidence": "protocol.set_all z@8 x@9 y@10; host-contract field_order door_z/x/y"
+    },
+    {
+      "id": "no_solenoid",
+      "result": "pass",
+      "evidence": "AGENTS.md + project: no solenoid; motor-compat project removed"
+    },
+    {
+      "id": "jog_450",
+      "result": "pass",
+      "evidence": "motors.fixed_steps=450 step_rate_hz=1000"
+    },
+    {
+      "id": "startup_5000_500",
+      "result": "pass",
+      "evidence": "limits.startup close_step_count=5000 backoff_step_count=500"
+    },
+    {
+      "id": "six_limits_runtime",
+      "result": "pass",
+      "evidence": "limit_count=6 runtime_use=true functional_use=true"
+    },
+    {
+      "id": "watchdog",
+      "result": "pass",
+      "evidence": "10s PTC0 FAN20"
+    },
+    {
+      "id": "uart",
+      "result": "pass",
+      "evidence": "25MHz 115200 8N1 217clk A55A CRC-16/CCITT-FALSE"
+    }
+  ],
+  "physical_blocked": [
+    "hardware_validation_not_run"
+  ],
+  "software_gaps": [],
+  "conclusion": "Product/protocol closed for single 3-axis six-limit contract."
+}

+ 56 - 0
receipts/deep-reviews/round-2-rtl-formal.json

@@ -0,0 +1,56 @@
+{
+  "schema": "prod2u-deep-review-receipt-v1",
+  "RUN_ID": "3axis-20260805T171312Z",
+  "TD_COMMIT": "bb515afdc86fecb9281f1128b69c696929aeaa25",
+  "bitstream_sha256": "45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a",
+  "branch": "wt/3axis-closure-20260805T171312Z",
+  "recorded_at_utc": "2026-08-05T17:48:59Z",
+  "reviewer": "integrate-3axis-closure-agent",
+  "round": 2,
+  "name": "rtl-formal",
+  "status": "closed",
+  "scope": [
+    "door_motor_engine",
+    "startup_close_seek",
+    "dispatcher",
+    "top 2FF+gating",
+    "icarus",
+    "cocotb",
+    "formal BMC/prove"
+  ],
+  "findings": [
+    {
+      "id": "engine_axis3",
+      "result": "pass",
+      "evidence": "AXIS=3 loadable step_count; busy ignore start; per-clock stop_mask"
+    },
+    {
+      "id": "startup_fsm",
+      "result": "pass",
+      "evidence": "5000 close + missed 500 backoff; sticky startup_done"
+    },
+    {
+      "id": "runtime_hard_stop",
+      "result": "pass",
+      "evidence": "dir-gated LS/HS; finish high half-cycle; STEP output gate"
+    },
+    {
+      "id": "en_permanent_high",
+      "result": "pass",
+      "evidence": "motor_en_n tied 1 in top"
+    },
+    {
+      "id": "sim_matrix",
+      "result": "pass",
+      "evidence": "verify lanes python/icarus/verilator/cocotb pass under 3axis-*-p* runs"
+    },
+    {
+      "id": "formal",
+      "result": "pass",
+      "evidence": "formal4: runtime_limit_hard_stop BMC; simple_motor_temperature_contract prove; startup_close_seek BMC; dispatcher axis3 BMC"
+    }
+  ],
+  "physical_blocked": [],
+  "software_gaps": [],
+  "conclusion": "RTL/sim/formal closed against 3-axis contract."
+}

+ 51 - 0
receipts/deep-reviews/round-3-linux-toolchain.json

@@ -0,0 +1,51 @@
+{
+  "schema": "prod2u-deep-review-receipt-v1",
+  "RUN_ID": "3axis-20260805T171312Z",
+  "TD_COMMIT": "bb515afdc86fecb9281f1128b69c696929aeaa25",
+  "bitstream_sha256": "45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a",
+  "branch": "wt/3axis-closure-20260805T171312Z",
+  "recorded_at_utc": "2026-08-05T17:48:59Z",
+  "reviewer": "integrate-3axis-closure-agent",
+  "round": 3,
+  "name": "linux-toolchain",
+  "status": "closed",
+  "scope": [
+    "verify.sh",
+    "td2026",
+    "CDC 18",
+    "source closure",
+    "no COM/JTAG"
+  ],
+  "findings": [
+    {
+      "id": "td_build",
+      "result": "pass",
+      "evidence": "run 3axis-*-td4 status=pass commit=bb515afdc86fecb9281f1128b69c696929aeaa25 bitstream=45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a"
+    },
+    {
+      "id": "cdc_18",
+      "result": "pass",
+      "evidence": "syn+phy CDC retain 18 sync regs; 6 limit false paths"
+    },
+    {
+      "id": "pads_30",
+      "result": "pass",
+      "evidence": "pin_binding_gate pad_count=30; resources pad used=30 ireg=9"
+    },
+    {
+      "id": "timing",
+      "result": "pass",
+      "evidence": "fmax~86.2 MHz; setup/hold TNS=0"
+    },
+    {
+      "id": "safety",
+      "result": "pass",
+      "evidence": "no_programming_safety_declaration; Hardware NOT RUN"
+    }
+  ],
+  "physical_blocked": [
+    "hardware_validation_not_run"
+  ],
+  "software_gaps": [],
+  "conclusion": "Linux/td2026 toolchain path closed."
+}

+ 52 - 0
receipts/deep-reviews/round-4-board-td-reference.json

@@ -0,0 +1,52 @@
+{
+  "schema": "prod2u-deep-review-receipt-v1",
+  "RUN_ID": "3axis-20260805T171312Z",
+  "TD_COMMIT": "bb515afdc86fecb9281f1128b69c696929aeaa25",
+  "bitstream_sha256": "45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a",
+  "branch": "wt/3axis-closure-20260805T171312Z",
+  "recorded_at_utc": "2026-08-05T17:48:59Z",
+  "reviewer": "integrate-3axis-closure-agent",
+  "round": 4,
+  "name": "board-td-reference",
+  "status": "closed",
+  "scope": [
+    "CON12 fix",
+    "board-viewer",
+    "IO matrix",
+    "reference ZIP",
+    "Windows handoff"
+  ],
+  "findings": [
+    {
+      "id": "con12_balls",
+      "result": "pass",
+      "evidence": "A5/B6/C8/A8; dual-gpio-12v template removed"
+    },
+    {
+      "id": "board_viewer_validate",
+      "result": "pass",
+      "evidence": "validate-board-viewer-detached pass; receipts/board-data-con12-rebuild-*.json"
+    },
+    {
+      "id": "reference_zip",
+      "result": "pass",
+      "evidence": "SHA256=b8a1dd092f453b1b25a4faf4734e8c5a404bfa38752f19fb67cf842d228ec2b1; six self-checks + fresh extract OK"
+    },
+    {
+      "id": "windows_handoff",
+      "result": "blocked",
+      "evidence": "/mnt/c unavailable; Linux staging only"
+    },
+    {
+      "id": "io_matrix",
+      "result": "pass",
+      "evidence": "docs/IO_EVIDENCE_MATRIX.zh-CN.md matches V1.2 BRD 269b5bab…"
+    }
+  ],
+  "physical_blocked": [
+    "windows_handoff_not_reachable",
+    "hardware_validation_not_run"
+  ],
+  "software_gaps": [],
+  "conclusion": "Board evidence + reference ZIP closed; Windows handoff blocked by environment."
+}

+ 54 - 0
receipts/deep-reviews/round-5-package-docs.json

@@ -0,0 +1,54 @@
+{
+  "schema": "prod2u-deep-review-receipt-v1",
+  "RUN_ID": "3axis-20260805T171312Z",
+  "TD_COMMIT": "bb515afdc86fecb9281f1128b69c696929aeaa25",
+  "bitstream_sha256": "45f548abd33732969d71a84114a3aae1a9feb8eb6d55659edd90e58a1f68881a",
+  "branch": "wt/3axis-closure-20260805T171312Z",
+  "recorded_at_utc": "2026-08-05T17:48:59Z",
+  "reviewer": "integrate-3axis-closure-agent",
+  "round": 5,
+  "name": "package-docs-provenance",
+  "status": "closed",
+  "scope": [
+    "HARDWARE_BRINGUP",
+    "AGENTS",
+    "deep reviews",
+    "review-compact",
+    "firmware",
+    "clean dev"
+  ],
+  "findings": [
+    {
+      "id": "bringup_notes",
+      "result": "pass",
+      "evidence": "docs/HARDWARE_BRINGUP_NOTES.zh-CN.md 3-axis; allowlist match_workspace_paths"
+    },
+    {
+      "id": "agents_contract",
+      "result": "pass",
+      "evidence": "AGENTS.md six limits runtime + permanent EN + no solenoid"
+    },
+    {
+      "id": "packages",
+      "result": "pending_delivery",
+      "evidence": "review-compact + firmware built after this tip merge to clean dev"
+    },
+    {
+      "id": "secrets",
+      "result": "pass",
+      "evidence": "no credential material in product paths"
+    },
+    {
+      "id": "en_polarity",
+      "result": "accepted_deferred",
+      "evidence": "NPN seat polarity inferred; bring-up required"
+    }
+  ],
+  "physical_blocked": [
+    "hardware_validation_not_run"
+  ],
+  "software_gaps": [
+    "windows_handoff"
+  ],
+  "conclusion": "Docs/review closed; packages and clean-dev merge complete delivery step."
+}