Four-person daily workspace.yaml and ws commands (v0.2.0)

Codex Resource Selftest 3717c242e7 package: zipfile fallback for analysis packager and firmware provenance. 4 месяцев назад
config 5c399f1306 cleanup: remove retired RTL and orphan tests, activate POR regression. 4 месяцев назад
constraints 55c24cf378 generator: derive phase-1 artifacts and active ADC 4 месяцев назад
docs 72359da829 Prod2U final integration: RTL limit inertness, packaging, and verification matrix. 4 месяцев назад
projects 4c11840881 feat: per-axis limit stop during startup burst 4 месяцев назад
receipts aeb23afeaa Fix Prod2U SRAM startup and binary921 evidence flow 4 месяцев назад
reference 8851a8dcb8 Final convergence: agent-team infrastructure, verification matrix, and receipt provenance. 4 месяцев назад
requirements 831164b495 feat(prod2u): add profile 4 fan tach control 4 месяцев назад
runs a09ff02405 chore: align verification package contract 4 месяцев назад
schemas 4c11840881 feat: per-axis limit stop during startup burst 4 месяцев назад
src 5c399f1306 cleanup: remove retired RTL and orphan tests, activate POR regression. 4 месяцев назад
td 3cbddfc50f Update TD phy CDC checks for x/y limit synchronizers. 4 месяцев назад
tests 3717c242e7 package: zipfile fallback for analysis packager and firmware provenance. 4 месяцев назад
tools 3717c242e7 package: zipfile fallback for analysis packager and firmware provenance. 4 месяцев назад
.gitattributes ddd52a2aef chore(snapshot): checkpoint normal v3 before minimal motion rewrite 4 месяцев назад
.gitignore 9ff59462db gitignore: ignore iverilog vvp artifacts 4 месяцев назад
ACCEPTANCE_MATRIX.md 3d76e326f7 Update package hashes and final commit in status docs. 4 месяцев назад
AGENTS.md 72359da829 Prod2U final integration: RTL limit inertness, packaging, and verification matrix. 4 месяцев назад
BASELINE_REPORT.md 3eb23eb650 chore: freeze baseline and refactor operating rules 4 месяцев назад
FINAL_DELIVERY_REPORT.md 3d76e326f7 Update package hashes and final commit in status docs. 4 месяцев назад
OPEN_QUESTIONS.md a09ff02405 chore: align verification package contract 4 месяцев назад
PACKAGE_FOR_AGENT_ANALYSIS.README.zh-CN.md 72359da829 Prod2U final integration: RTL limit inertness, packaging, and verification matrix. 4 месяцев назад
PLAN.md 4d6773ce89 Align status docs with final integration evidence and packages. 4 месяцев назад
README.zh-CN.md 3d76e326f7 Update package hashes and final commit in status docs. 4 месяцев назад
package_for_agent_analysis.py 3717c242e7 package: zipfile fallback for analysis packager and firmware provenance. 4 месяцев назад
pyproject.toml 818a603b1f Final convergence: startup limit close/seek, source-of-truth refactor, verification matrix. 4 месяцев назад

README.zh-CN.md

Prod2U 门控温度 CPLD

本仓库当前为 prod2u-door-temp Final Convergence 候选工作树:25 MHz 主时钟、115200 8N1、无流控,统一帧为 A5 5A type length payload CRC16_LE。CRC-16/CCITT-FALSE 覆盖类型、长度和 payload,线路按低字节在前发送。

正式类型只有:

  • 0x01 SET_ALL:8 路 PTC、4 路 FAN、X/Y 两个马达命令,共 14 字节 payload;成功后无回复。
  • 0x02 GET_TEMPERATURE:空 payload;完成 27 项 CT7428 读取后只回复一帧温度数据。
  • 0x82 TEMPERATURE_DATA:27 字节 payload,总帧长 33 字节。

PTC 和 FAN 的占空值为十进制 0..100。马达字段合法值为 00、01、02;两个 00 表示心跳保持。X/Y 均为 exhaust 角色,执行 450 步,步频 1000 step/s,半周期 500 us,方向建立时间约 1 ms,共用低有效使能。

项目配置中的 PTC 顺序为 G16,F16,N1,M1,R16,P16,P9,T9,FAN 顺序为 B1,C4,B5,A14。PWM 使用 8 位协议值、7 位内部值、100 相位和 1042 个时钟槽,实际频率为约 19.993602047 Hz。启动目标为 PTC=0、FAN=10;看门狗超时为 10 s,目标为 PTC=0、FAN=20,500 us tick 对应 12500 个时钟、20000 个 tick。

启动限位关门流程已冻结:上电后 startup_close_seek 驱动 X/Y 马达向 close 方向间歇寻限位,最多 10 次 burst、每次 450 步、步频 1000 step/s、burst 间隔 50 ms;任一轴到达 active-high 限位即停止该轴,startup_done 为 1 前主机 UART 帧与马达控制被门控。

本项目不提供旧协议兼容,不新增其他帧类型、确认帧、忙状态帧、队列或分页行为。项目事实以 project.json 为准,协议说明见 docs/prod2u-door-temp-protocol.zh-CN.md。

Final Convergence 内容

  • 启动限位关门 RTL src/modules/startup_close_seek.v 已集成到 src/top/prod2u_p4_normal_v3_top.v,x_limit_raw/y_limit_raw 经二级同步后输入;startup_done 为 sticky,上电/复位后仅一次限位关门。
  • 运行时 limit 完全惰性:已新增 tests/sim/prod2u_p4_normal_v3_top_runtime_limit_tb.v,验证 startup_done 后限位变化不影响马达。
  • project.json 为唯一机器配置源,config/source_closure.json 和 src/generated/td-source-manifest.json 被构建/包/验证共享。
  • 退休的固定 Agent Team/Phase 工作流残留已移除:tools/agent_guard.py、tools/agent_team_harness.py、tools/codex_harness.py、tools/sync_agent_adapters.py 及对应测试。
  • tools/run_verification_matrix.py 已改为并发但简洁的矩阵运行器;每 lane 独立 work root 和 receipt。
  • package_for_agent_analysis.py 为 canonical 打包入口,tools/build_firmware_package.py 生成最终 bitstream 交付包,均支持 7-Zip 缺省回退到 Python zipfile。

当前离线验证状态

所有离线层均已通过同一 verification_run_id 与 commit 4d6773ce:

层级 命令 状态
Python 单元/合同 python -B tools/run_verification_matrix.py --lanes python ... pass
Icarus 完整 manifest(16 testbenches) python -B tools/run_verification_matrix.py --lanes icarus ... pass
Verilator top lint python -B tools/run_verification_matrix.py --lanes verilator ... pass
Formal python -B tools/run_verification_matrix.py --lanes formal ... pass
cocotb python -B tools/run_verification_matrix.py --lanes cocotb ... pass
TD primary(bitstream reused, source closure unchanged) C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json pass
Core audit package package_for_agent_analysis.py pass
Firmware delivery package tools/build_firmware_package.py pass
Physical hardware 不在本次任务边界 not_run
# 一键运行完整离线矩阵(约 4-5 分钟)
C:\Users\Administrator\CodexToolchains\CPLD\oss-cad-suite\latest\environment.ps1
python -B tools/run_verification_matrix.py `
  --work-root-prefix "C:\Users\Administrator\CodexTemp\prod2u-matrix" `
  --verification-run-id prod2u-final-matrix `
  --report-file "C:\Users\Administrator\CodexTemp\prod2u-matrix\matrix-receipt.json" `
  --max-workers 4

最终交付物

  • 最终 dev commit: 4d6773ce8981bc4a1e427c0b898d2029a31d4440
  • 核心源码审计包:C:\Users\Administrator\CodexTemp\final-packages\cpld-chatgpt-core-20260726-dev.zip
    • SHA-256: 863b85c909e031ec974a7d46f3a9a4e4a5054c0a1014d1239db44d3026e00bc3
  • 固件交付包:C:\Users\Administrator\CodexTemp\final-packages\prod2u-door-temp-final-20260726.zip
    • 含 fw.bit、TD 报告、约束/TD 输入、合同文档、离线矩阵 receipt
    • 固件包 SHA-256: ea5a7300e05b2bb1fbda871b0d19632d1e5f918057e11e735bfe8273ae1114de
    • Bitstream SHA-256: d0f6b8c024df1a0895ea5ee9fb28f49b5eca697fbf31b1e897b6e99ee6b2a98a
  • 离线验证矩阵收据:C:\Users\Administrator\CodexTemp\prod2u-matrix-final2\matrix-receipt.json (status: pass)
  • TD 主建收据:C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json (status: pass)
  • 资源:LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0;Fmax 90.49 MHz,setup slack 28.949 ns,hold slack 0.046 ns。

物理硬件验证不在本次任务边界内。