PLAN.md 3.3 KB

Prod2U 门控温度 CPLD Final Convergence 执行记录

  • run_id: f159b9192a4d4e0bbdcf1585c63bb2f8
  • baseline_commit: b861e076086351b787dc48dacc42ef46afcefd12
  • execution_branch: codex/final-convergence-b2a3230e66f74a35bb74ac6730e58bb5
  • execution_worktree: C:\\Users\\Administrator\\CodexTemp\\prod2u-devin-final-f159b9192a4d4e0bbdcf1585c63bb2f8
  • hardware boundary: no COM, JTAG, programming, driver installation, or global PATH changes
  • Adviser boundary: ChatGPT Adviser is prohibited

Scope

基于审计报告修复启动限位关门流程缺失、生成器单一事实源、receipt provenance 等关键问题,完成最终离线验证矩阵,并为 TD/位流/物理硬件留下明确边界。

Execution order

  1. [completed] 启动限位关门 RTL、project.json/schema、生成器与参数文件更新。
  2. [completed] 生成器单一事实源重构:config/source_closure.json 取代硬编码 ACTIVE_SOURCE_PATHS。
  3. [completed] receipt provenance 修复:tools/codex_harness.py 不再重新填充缺失的 commit/hash 绑定。
  4. [completed] 新增 startup 相关 unit/sim/formal 测试并纳入验证目标清单。
  5. [completed] Python/Icarus/Verilator/formal 验证通过;cocotb 结果通过但 vvp 进程未能自动退出。
  6. [pending] TD baseline + A/B 资源优化 + final primary/confirmation(需 Anlogic TD)。
  7. [pending] 生成 UNVERIFIED candidate 并晋级 VERIFIED_OFFLINE。

Current integration changes

  • src/modules/startup_close_seek.v:启动状态机,支持 MAX_BURSTS 次间歇 burst 或限位提前结束。
  • src/top/prod2u_p4_normal_v3_top.v:集成 startup、同步 limit 输入、startup 期间门控主机帧和马达。
  • projects/prod2u-door-temp/project.json、schemas/project.schema.json、tools/generate_project.py:加入 limits.startup。
  • config/source_closure.json:生成器单一事实源;src/generated/td-source-manifest.json 等仍由生成器产生。
  • tools/codex_harness.py、tests/unit/test_codex_harness.py:receipt 绑定与测试修正。
  • tests/sim/startup_close_seek_tb.v、tests/formal/startup_close_seek.sby/startup_close_seek_formal.v、tests/unit/test_startup_close_seek.py:startup 验证层。
  • tests/cocotb/test_prod2u_door_temp_uart_e2e.py:适配 startup 门控与 frame_accept_enable 等待。

Validation observed so far

  • Python unit/contract tests: pass (184 passed, 1 skipped, 121 subtests passed)
  • Icarus full manifest: pass, including startup_close_seek_tb and prod2u_p4_normal_v3_top_tb
  • Verilator top lint: pass
  • Formal: pass across all 8 targets (startup_close_seek runs bounded BMC)
  • cocotb: results.xml reports pass; the Icarus vvp process does not exit cleanly and must be terminated after results.xml is written
  • TD and bitstream: blocked; td_commands_prompt.exe not available in this workspace
  • Physical hardware: not_applicable

Evidence policy

Every receipt or summary must bind run_id, commit, project configuration SHA-256, and where available bitstream SHA-256. Missing tools or unavailable TD evidence are blocked or not_run, never pass. A successful offline test does not establish physical hardware acceptance.

Rollback

All work is isolated on this branch/worktree. The dirty dev worktree remains untouched except for its pre-existing analysis-packaging changes.