Jelajahi Sumber

Close Round-2 A2 gate evidence: cocotb/formal PASS, TD packing overage.

Record serial-cal cocotb stimulus, snapshot .sby A2 sources, and durable
TD over-capacity vs Round-12/B-opt2; keep Scheme B archived and non-final.

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 bulan lalu
induk
melakukan
79a5ceefc0

+ 7 - 0
receipts/mse-cocotb-r2.json

@@ -0,0 +1,7 @@
+{
+  "schema": "prod2u-mse-cocotb-summary-v1",
+  "generated_utc": "2026-08-11T14:48:48.140725+00:00",
+  "run_id": "mse-r2-cocotb-fix-20260811T140948Z",
+  "status": "pass",
+  "fix": "serial X\u2192Y\u2192Z per-axis open-limit stimulus + STARTUP_TIMEOUT_MS=30000; wrapper already forces accelerated tick_500us"
+}

+ 11 - 0
receipts/mse-formal-full-manifest-r2-summary.json

@@ -0,0 +1,11 @@
+{
+  "schema": "prod2u-mse-formal-round2-summary-v1",
+  "generated_utc": "2026-08-11T15:28:16.772197+00:00",
+  "run_id": "mse-r2-formal-rerun-20260811T145145Z",
+  "status": "pass",
+  "task_pass_count": 35,
+  "task_error_count": 0,
+  "task_fail_count": 0,
+  "snapshot_bmc_cover": "PASS",
+  "note": "Full verify.sh formal lane after door_motion_status_snapshot.sby A2 source-list fix"
+}

+ 11 - 0
receipts/mse-formal-round2-status.json

@@ -0,0 +1,11 @@
+{
+  "schema": "prod2u-mse-formal-round2-summary-v1",
+  "generated_utc": "2026-08-11T15:28:16.772197+00:00",
+  "run_id": "mse-r2-formal-rerun-20260811T145145Z",
+  "status": "pass",
+  "task_pass_count": 35,
+  "task_error_count": 0,
+  "task_fail_count": 0,
+  "snapshot_bmc_cover": "PASS",
+  "note": "Full verify.sh formal lane after door_motion_status_snapshot.sby A2 source-list fix"
+}

File diff ditekan karena terlalu besar
+ 2778 - 16
receipts/mse-formal-round2.json


+ 24 - 20
receipts/mse-round2-intermediate-summary.md

@@ -1,29 +1,33 @@
-# MSE Round-2 intermediate summary (full-feature Scheme A)
+# MSE Round-2 intermediate summary (full-feature Scheme A / A2)
 
 ## Status
-- **non-final intermediate-review**
+- **non-final intermediate-review** (not final-review)
 - Scheme B remains archived/rejected
-- Full-feature Scheme A implemented with serial X→Y→Z calibration, 25 µs DDA, 16-level Q8 S-curve, travel-normalized rates
 - Hardware validation: **NOT RUN**
 - `dev` lock: `d4f3df2549efeb1e9227f62d1d71c6179c9f9160` (untouched)
 
-## A1 vs A2
-| Candidate | Yosys DDA cells | Active closure |
-|-----------|-----------------|----------------|
-| A1 sequential shared datapath | 87 | archived |
-| A2 parallel narrow datapaths | 44 | **selected** |
+## Verification
 
-Winner rationale: contract prefers A2 when A1 axis mux/writeback does not beat A2 on resources. Hierarchy evidence favors A2. Full-chip fresh TD LUT/Slice/Fmax comparison vs B opt2 and Round-12 baseline is still **not_run**.
+| Lane | Status | Notes |
+|------|--------|-------|
+| Verilator lint | PASS | prior after lint fixes |
+| Cocotb UART e2e | **PASS** | `mse-r2-cocotb-fix-20260811T140948Z`; serial per-axis limit stimulus |
+| Formal full manifest | **PASS** | `mse-r2-formal-rerun-20260811T145145Z` after snapshot `.sby` A2 fix |
+| TD full A2 | **FAIL** packing | gate LUT 4542/4480; MSLICE 1200>1120; Fmax/SWNS not_run |
 
-## Verification (this round)
-- Python `mse_motion_ref` PASS
-- Icarus: serial_calibration, overlap (production gate), timing, speed_profile, latest_wins, independence, limit_profile_collision, plus Round-12 axis regression TBs PASS
-- Formal bounded BMC+cover `door_mse_serial_dda` PASS (empty workdir, depth 30) — not unbounded
-- Formal full manifest / cocotb / verilator / fresh TD: **not_run** (blocks final)
+## Resources vs Round-12 / B opt2
 
-## Remaining before final
-1. Full formal manifest
-2. cocotb + verilator
-3. Fresh exclusive `td2026` for full-feature A2 (and optional A1 confirmation)
-4. Five-audit closure
-5. final-review + firmware packages only after clean tree + all green
+| Metric | Round-12 | B opt2 | Full A2 (gate/pack) |
+|--------|----------|--------|---------------------|
+| LUT | 2893 | 3984 | **4542** |
+| Motor LUT | 1593 | 2555 | **3007** |
+| REG | 1233 | — | 1620 |
+| BRAM/DSP | 0/0 | — | 0/0 |
+| MSLICE | fit | fit | **1200 > 1120 FAIL** |
+| Fmax MHz | 67.1 | 61.7 | not_run |
+| SWNS ns | +25.1 | +23.8 | not_run |
+
+## Blockers for final
+1. Area fit (LUT/MSLICE) for A2
+2. Official clean-tree `verify.sh --lane td` after commit
+3. Five-audit closure after TD fit

+ 35 - 21
receipts/mse-round2-verification-matrix.json

@@ -1,36 +1,50 @@
 {
   "schema": "prod2u-mse-round2-verification-matrix-v1",
-  "generated_utc": "2026-08-11T12:52:40Z",
+  "generated_utc": "2026-08-11T15:28:16Z",
   "package_stage": "intermediate-review",
   "hardware_validation": "NOT RUN",
   "dev_lock": "d4f3df2549efeb1e9227f62d1d71c6179c9f9160",
   "branch": "preview/motor-shared-executor",
+  "tip_commit_pre": "931af6774be3ad90797cd330d7a69c8dafe0c0d2",
   "results": {
     "python_mse_motion_ref": "PASS",
-    "icarus_door_axis_watchdog_drain": "PASS",
-    "icarus_door_axis_target_valid": "PASS",
-    "icarus_door_axis_source_limit_linger": "PASS",
-    "icarus_door_axis_request_limit_race": "PASS",
-    "icarus_door_axis_request_planner_collision": "PASS",
-    "icarus_door_motion_controller": "PASS",
-    "icarus_door_serial_calibration": "PASS",
-    "icarus_door_motion_three_axis_overlap": "PASS",
-    "icarus_door_travel_normalized_timing": "PASS",
-    "icarus_door_speed_profile": "PASS",
-    "icarus_door_profile_latest_wins": "PASS",
-    "icarus_door_axis_independence": "PASS",
-    "icarus_door_limit_profile_collision": "PASS",
+    "icarus_door_suite_prior": "PASS",
+    "verilator_lint": "PASS",
+    "cocotb": "PASS",
+    "cocotb_run_id": "mse-r2-cocotb-fix-20260811T140948Z",
     "formal_door_mse_serial_dda_bmc": "PASS_bounded_depth30",
     "formal_door_mse_serial_dda_cover": "PASS_bounded_depth30",
-    "formal_full_manifest": "not_run",
-    "cocotb": "not_run",
-    "verilator_lint": "not_run",
+    "formal_full_manifest": "PASS",
+    "formal_full_manifest_run_id": "mse-r2-formal-rerun-20260811T145145Z",
+    "formal_full_manifest_note": "PASS after snapshot.sby A2 module list fix; 35 task PASS / 0 FAIL",
+    "td_verify_sh_lane": "fail_build_preparation_dirty_tree_pre_commit",
+    "td_full_feature_a2_manual": "FAIL_packing_mslice_over_limit",
+    "td_full_feature_a2_gate_lut": 4542,
+    "td_full_feature_a2_motor_lut": 3007,
+    "td_full_feature_a2_reg": 1620,
+    "td_full_feature_a2_bram": 0,
+    "td_full_feature_a2_dsp": 0,
+    "td_full_feature_a2_mslice": "1200>1120",
+    "td_full_feature_a2_fmax": "not_run",
+    "td_full_feature_a2_swns": "not_run",
     "td_full_feature_a1": "not_run",
-    "td_full_feature_a2": "not_run",
-    "five_audit": "partial_pending_td"
+    "five_audit": "partial_pending_td_fit"
+  },
+  "round12_baseline": {
+    "lut": 2893,
+    "motor_lut": 1593,
+    "fmax_mhz": 67.1,
+    "swns_ns": 25.1
+  },
+  "b_opt2": {
+    "lut": 3984,
+    "motor_lut": 2555,
+    "fmax_mhz": 61.709,
+    "swns_ns": 23.795
   },
   "a1_a2_provisional_winner": "A2",
   "scheme_b": "archived_rejected",
   "non_final": true,
-  "a1_a2_active_closure": "A2"
-}
+  "a1_a2_active_closure": "A2_provisional_TD_over_capacity",
+  "ready_for_final": false
+}

+ 93 - 0
receipts/mse-td-fullA2-phy.json

@@ -0,0 +1,93 @@
+{
+  "schema": "prod2u-mse-td-fullA2-phy-v1",
+  "generated_utc": "2026-08-11T14:48:48.097794+00:00",
+  "status": "fail_packing_mslice_over_limit",
+  "source_state": "dirty_uncommitted",
+  "note": "verify.sh --lane td blocked: dirty uncommitted tree. Manual exclusive td2026 after patching td/syn/prod2u_p4_normal_v3.tcl + td/prod2u_p4_normal_v3.prj to analyze A2 modules. Gate area LUT 4542/4480 (101.38%). Phy packing: MSLICE 1200 > 1120 limit; no _phy.area/_pr.timing. Fmax/SWNS not_run (no final timing). Round-12 baseline LUT 2893 / motor 1593 / Fmax 67.1 / SWNS +25.1.",
+  "tip_commit": "931af6774be3ad90797cd330d7a69c8dafe0c0d2",
+  "td_work": "/data/prod2u/td-runs/mse-r2-fullA2-20260811T144652Z",
+  "tool": "td2026",
+  "tool_version": "6.2.2.200067",
+  "report_level": "gate_area_plus_packing_stdout",
+  "lut_used": 4542,
+  "lut_total": 4480,
+  "lut_percent": 101.38,
+  "reg_used": 1620,
+  "bram_used": 0,
+  "dsp_used": 0,
+  "motor_lut": 3007,
+  "motor_le": 3356,
+  "motor_ripple": 349,
+  "dda_lut": 204,
+  "packing": {
+    "mslice": 1200,
+    "lslice": 1199,
+    "total_slices": 2399
+  },
+  "fmax_mhz": null,
+  "swns_ns": null,
+  "round12_baseline": {
+    "lut": 2893,
+    "motor_lut": 1593,
+    "fmax_mhz": 67.1,
+    "swns_ns": 25.1,
+    "total_slices": null
+  },
+  "delta_vs_r12": {
+    "lut": 1649,
+    "motor_lut": 1414,
+    "fmax_mhz": null,
+    "swns_ns": null
+  },
+  "vs_scheme_b_opt2": {
+    "b_opt2_lut": 3984,
+    "b_opt2_motor_lut": 2555,
+    "b_opt2_fmax_mhz": 61.709,
+    "b_opt2_swns_ns": 23.795,
+    "b_opt2_packing": {},
+    "a2_gate_lut": 4542,
+    "a2_motor_lut": 3007,
+    "a2_reg": 1620,
+    "a2_bram": 0,
+    "a2_dsp": 0,
+    "a2_mslice": 1200,
+    "a2_lslice": 1199,
+    "a2_fmax_mhz": null,
+    "a2_swns_ns": null,
+    "note": "A2 worse than B opt2 on LUT (4542 vs 3984) and fails packing; B restored Fmax but was rejected vs R12; A2 also fails device fit"
+  },
+  "phy_error": "PHY-9009 mslice 1200 exceeds device limit 1120",
+  "post_opt_lut_from_phy_log": 3680,
+  "gate_lut": 4542,
+  "fmax_note": "not_run \u2014 phy aborted at packing (PHY-9009 MSLICE over limit); no _pr.timing",
+  "slice_note": "packed MSLICE 1200 + LSLICE 1199 reported before fail; device MSLICE limit 1120",
+  "comparison_table": {
+    "round12": {
+      "lut": 2893,
+      "motor_lut": 1593,
+      "reg": 1233,
+      "fmax_mhz": 67.1,
+      "swns_ns": 25.1,
+      "status": "pass"
+    },
+    "b_opt2": {
+      "lut": 3984,
+      "motor_lut": 2555,
+      "fmax_mhz": 61.709,
+      "swns_ns": 23.795,
+      "status": "pass"
+    },
+    "fullA2_gate": {
+      "lut": 4542,
+      "motor_lut": 3007,
+      "reg": 1620,
+      "bram": 0,
+      "dsp": 0,
+      "mslice": 1200,
+      "fmax_mhz": null,
+      "swns_ns": null,
+      "status": "fail_packing_mslice_over_limit"
+    }
+  },
+  "updated_utc": "2026-08-11T14:52:03.470681+00:00"
+}

+ 16 - 4
src/modules/door_motion_controller.v

@@ -82,6 +82,17 @@ module door_motion_controller #(
     wire        dda_busy;
     wire        dda_overrun;
 
+    wire        all_axes_terminal_unused;
+    wire [12:0] profile_distance_unused_x;
+    wire [12:0] profile_done_steps_unused_x;
+    wire [12:0] profile_ramp_unit_unused_x;
+    wire [12:0] profile_distance_unused_y;
+    wire [12:0] profile_done_steps_unused_y;
+    wire [12:0] profile_ramp_unit_unused_y;
+    wire [12:0] profile_distance_unused_z;
+    wire [12:0] profile_done_steps_unused_z;
+    wire [12:0] profile_ramp_unit_unused_z;
+
     // Shared rate refresh: travel * profile_scale[level] (or scale alone in cal).
     reg         rate_busy;
     reg         rate_valid;
@@ -194,7 +205,7 @@ module door_motion_controller #(
         .cal_enable(cal_enable),
         .profile_start(profile_start),
         .profile_ready(profile_ready),
-        .all_axes_terminal()
+        .all_axes_terminal(all_axes_terminal_unused)
     );
 
     door_profile_quantum_builder #(
@@ -213,6 +224,7 @@ module door_motion_controller #(
     wire [2:0] dda_allow = {allow_z, allow_y, allow_x};
     wire [2:0] dda_cal   = {in_cal_z, in_cal_y, in_cal_x};
 
+
     door_shared_dda_scheduler #(
         .CAL_PHASE_THRESHOLD(PHASE_FACTOR)
     ) u_dda (
@@ -323,7 +335,7 @@ module door_motion_controller #(
         .axis_in_calibration(in_cal_x), .axis_endpoint_crawl(crawl_x),
         .axis_dda_run(dda_run_x),
         .profile_level(lvl_x),
-        .profile_distance(), .profile_done_steps(), .profile_ramp_unit(),
+        .profile_distance(profile_distance_unused_x), .profile_done_steps(profile_done_steps_unused_x), .profile_ramp_unit(profile_ramp_unit_unused_x),
         .rate_quantum(rq_x)
     );
 
@@ -365,7 +377,7 @@ module door_motion_controller #(
         .axis_in_calibration(in_cal_y), .axis_endpoint_crawl(crawl_y),
         .axis_dda_run(dda_run_y),
         .profile_level(lvl_y),
-        .profile_distance(), .profile_done_steps(), .profile_ramp_unit(),
+        .profile_distance(profile_distance_unused_y), .profile_done_steps(profile_done_steps_unused_y), .profile_ramp_unit(profile_ramp_unit_unused_y),
         .rate_quantum(rq_y)
     );
 
@@ -407,7 +419,7 @@ module door_motion_controller #(
         .axis_in_calibration(in_cal_z), .axis_endpoint_crawl(crawl_z),
         .axis_dda_run(dda_run_z),
         .profile_level(lvl_z),
-        .profile_distance(), .profile_done_steps(), .profile_ramp_unit(),
+        .profile_distance(profile_distance_unused_z), .profile_done_steps(profile_done_steps_unused_z), .profile_ramp_unit(profile_ramp_unit_unused_z),
         .rate_quantum(rq_z)
     );
 

+ 0 - 1
src/modules/door_shared_dda_scheduler.v

@@ -4,7 +4,6 @@
 // A1 sequential shared add/compare/sub archived under receipts/scheme-a-a2-attempt/.
 // On each motion_service_ce, all active axes update in one clock.
 module door_shared_dda_scheduler #(
-    parameter integer TRAVEL_WIDTH = 13,
     parameter integer PHASE_WIDTH  = 26,
     parameter integer RATE_WIDTH   = 21,
     parameter integer THRESH_WIDTH = 25,

+ 15 - 11
td/prod2u_p4_normal_v3.prj

@@ -22,17 +22,21 @@
             <File Path="../src/modules/shared_500us_tick.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="10"/></FileInfo></File>
             <File Path="../src/modules/host_watchdog.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="11"/></FileInfo></File>
             <File Path="../src/modules/door_percent_planner.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="12"/></FileInfo></File>
-            <File Path="../src/modules/door_axis_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="13"/></FileInfo></File>
-            <File Path="../src/modules/door_motion_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="14"/></FileInfo></File>
-            <File Path="../src/modules/prod2u_runtime_step_limit_gate.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="15"/></FileInfo></File>
-            <File Path="../src/modules/i2c_word_reader.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="16"/></FileInfo></File>
-            <File Path="../src/modules/temperature_reader.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="17"/></FileInfo></File>
-            <File Path="../src/modules/temperature_ram.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="18"/></FileInfo></File>
-            <File Path="../src/project/command_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="19"/></FileInfo></File>
-            <File Path="../src/project/project_adapter.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="20"/></FileInfo></File>
-            <File Path="../src/rtl/prod2u_por.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="21"/></FileInfo></File>
-            <File Path="../src/rtl/prod2u_p4_i2c_stop_start_read.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="22"/></FileInfo></File>
-            <File Path="../src/top/prod2u_p4_normal_v3_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="23"/></FileInfo></File>
+            <File Path="../src/modules/door_motion_service_tick.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="13"/></FileInfo></File>
+            <File Path="../src/modules/door_calibration_sequencer.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="14"/></FileInfo></File>
+            <File Path="../src/modules/door_profile_quantum_builder.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="15"/></FileInfo></File>
+            <File Path="../src/modules/door_shared_dda_scheduler.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="16"/></FileInfo></File>
+            <File Path="../src/modules/door_axis_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="17"/></FileInfo></File>
+            <File Path="../src/modules/door_motion_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="18"/></FileInfo></File>
+            <File Path="../src/modules/prod2u_runtime_step_limit_gate.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="19"/></FileInfo></File>
+            <File Path="../src/modules/i2c_word_reader.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="20"/></FileInfo></File>
+            <File Path="../src/modules/temperature_reader.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="21"/></FileInfo></File>
+            <File Path="../src/modules/temperature_ram.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="22"/></FileInfo></File>
+            <File Path="../src/project/command_controller.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="23"/></FileInfo></File>
+            <File Path="../src/project/project_adapter.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="24"/></FileInfo></File>
+            <File Path="../src/rtl/prod2u_por.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="25"/></FileInfo></File>
+            <File Path="../src/rtl/prod2u_p4_i2c_stop_start_read.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="26"/></FileInfo></File>
+            <File Path="../src/top/prod2u_p4_normal_v3_top.v"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="design_1"/><Attr Name="CompileOrder" Val="27"/></FileInfo></File>
         </Verilog>
         <ADC_FILE><File Path="../constraints/prod2u_p4_normal_v3.adc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="1"/></FileInfo></File></ADC_FILE>
         <SDC_FILE><File Path="../constraints/prod2u_p4_normal_v3.sdc"><FileInfo><Attr Name="UsedInSyn" Val="true"/><Attr Name="UsedInP&amp;R" Val="true"/><Attr Name="BelongTo" Val="constraint_1"/><Attr Name="CompileOrder" Val="2"/></FileInfo></File></SDC_FILE>

+ 4 - 0
td/syn/prod2u_p4_normal_v3.tcl

@@ -14,6 +14,10 @@ analyze -file {src/modules/pwm_scheduler.v}
 analyze -file {src/modules/shared_500us_tick.v}
 analyze -file {src/modules/host_watchdog.v}
 analyze -file {src/modules/door_percent_planner.v}
+analyze -file {src/modules/door_motion_service_tick.v}
+analyze -file {src/modules/door_calibration_sequencer.v}
+analyze -file {src/modules/door_profile_quantum_builder.v}
+analyze -file {src/modules/door_shared_dda_scheduler.v}
 analyze -file {src/modules/door_axis_controller.v}
 analyze -file {src/modules/door_motion_controller.v}
 analyze -file {src/modules/prod2u_runtime_step_limit_gate.v}

+ 30 - 10
tests/cocotb/run_prod2u_door_temp_uart_e2e.py

@@ -116,7 +116,7 @@ def _is_oss_cad_bin(part: str) -> bool:
     )
 
 
-def _tool_bin_dirs(shim_dir: Path | None = None) -> list[str]:
+def _tool_bin_dirs(shim_dir: Path | None = None, python_exe: Path | None = None) -> list[str]:
     """Dirs with iverilog/vvp without exposing OSS CAD python shims on PATH.
 
     Host often only has Icarus inside oss-cad-suite/bin. Putting that whole bin
@@ -126,11 +126,12 @@ def _tool_bin_dirs(shim_dir: Path | None = None) -> list[str]:
     dirs: list[str] = []
     if shim_dir is not None:
         shim_dir.mkdir(parents=True, exist_ok=True)
+        oss_top = Path("/data/prod2u/oss-cad-suite/latest")
         for name in ("iverilog", "vvp"):
             resolved = shutil.which(name)
             if not resolved:
                 for candidate in (
-                    Path("/data/prod2u/oss-cad-suite/latest/bin") / name,
+                    oss_top / "bin" / name,
                     Path("/usr/local/bin") / name,
                     Path("/usr/bin") / name,
                 ):
@@ -139,16 +140,35 @@ def _tool_bin_dirs(shim_dir: Path | None = None) -> list[str]:
                         break
             if not resolved:
                 continue
-            # OSS CAD iverilog/vvp are shell wrappers using $0-relative paths;
-            # symlinks break them. Emit absolute exec wrappers instead.
             wrapper = shim_dir / name
             if wrapper.exists() or wrapper.is_symlink():
                 wrapper.unlink()
-            wrapper.write_text(
-                "#!/bin/sh\n"
-                f'exec "{resolved}" "$@"\n',
-                encoding="ascii",
-            )
+            resolved_path = Path(resolved)
+            libexec = oss_top / "libexec" / name
+            if (
+                name == "vvp"
+                and python_exe is not None
+                and libexec.is_file()
+                and "oss-cad-suite" in resolved_path.as_posix()
+            ):
+                # OSS bin/vvp exports PYTHONEXECUTABLE=tabbypy3; bypass that wrapper.
+                py = python_exe.expanduser()
+                wrapper.write_text(
+                    "#!/bin/sh\n"
+                    f'export PYGPI_PYTHON_BIN="{py}"\n'
+                    f'export PYTHONEXECUTABLE="{py}"\n'
+                    f'export PRODU2_VERIFY_PYTHON="{py}"\n'
+                    "unset PYTHONHOME\n"
+                    f'exec "{oss_top}/lib/ld-linux-x86-64.so.2" --inhibit-cache --inhibit-rpath "" '
+                    f'--library-path "{oss_top}/lib" "{libexec}" "$@"\n',
+                    encoding="ascii",
+                )
+            else:
+                wrapper.write_text(
+                    "#!/bin/sh\n"
+                    f'exec "{resolved}" "$@"\n',
+                    encoding="ascii",
+                )
             wrapper.chmod(0o755)
         dirs.append(str(shim_dir))
     for name in ("iverilog", "vvp"):
@@ -180,7 +200,7 @@ def _sanitize_env(python_exe: Path, build_dir: Path) -> dict[str, str]:
             shim_path.unlink()
         shim_path.symlink_to(python_exe)
 
-    path_parts: list[str] = [python_bin, str(shim_dir), *_tool_bin_dirs(shim_dir)]
+    path_parts: list[str] = [python_bin, str(shim_dir), *_tool_bin_dirs(shim_dir, python_exe)]
     for part in env.get("PATH", "").split(os.pathsep):
         if not part or _is_oss_cad_bin(part):
             continue

+ 54 - 24
tests/cocotb/test_prod2u_door_temp_uart_e2e.py

@@ -12,7 +12,8 @@ GET_TEMPERATURE = 0x02
 GET_MOTOR_STATUS = 0x03
 TEMPERATURE_DATA = 0x82
 MOTOR_STATUS_DATA = 0x83
-STARTUP_TIMEOUT_MS = 5000
+# Serial X→Y→Z measure-open + profile; DDA service is real-time (tick_500us only is accelerated).
+STARTUP_TIMEOUT_MS = 30000
 TEMPERATURE_BYTE_TIMEOUT_MS = 100
 STATUS_BYTE_TIMEOUT_MS = 100
 FRAME_ACCEPT_TIMEOUT_MS = 100
@@ -126,12 +127,51 @@ async def wait_level_or_edge(signal, *, want: int, timeout_ms: int, stage: str)
     await wait_for_stage(edge, timeout_ms, stage, signal_level=current, want=want)
 
 
+
+async def wait_measure_rises_then_open(
+    dut,
+    *,
+    step_sig,
+    limit_ls,
+    limit_hs,
+    axis_name: str,
+    min_rises: int = 2,
+) -> int:
+    """Serial-cal friendly: wait for this axis's measure-open STEP rises, then hit open only."""
+    rises = {"n": 0}
+
+    async def count_rises():
+        while True:
+            await RisingEdge(step_sig)
+            rises["n"] += 1
+
+    counter = cocotb.start_soon(count_rises())
+    # Up to ~62.5M clocks (~2.5s sim @25MHz) per axis; service tick is 625 clks.
+    for _ in range(100_000):
+        await clocks(dut, 625)
+        if rises["n"] >= min_rises:
+            break
+    else:
+        counter.kill()
+        raise AssertionError(
+            f"insufficient measure rises axis={axis_name} rises={rises['n']} "
+            f"sim_time={_sim_time_ns()}"
+        )
+    limit_hs.value = 1
+    limit_ls.value = 0
+    checkpoint(f"cal_open_{axis_name}", rises=rises["n"])
+    # Allow limit sync + terminal handoff before the next axis starts.
+    await clocks(dut, 4000)
+    counter.kill()
+    return rises["n"]
+
+
 @cocotb.test()
 async def test_set_all_get_temperature_over_real_uart(dut):
     try:
         checkpoint("test_start")
         dut.host_uart_rx.value = 1
-        # Begin on close limits so calibration can seek/measure quickly.
+        # Begin on close limits so each serial axis can finish seek-close immediately.
         dut.x_limit_ls.value = 1
         dut.x_limit_hs.value = 0
         dut.y_limit_ls.value = 1
@@ -142,34 +182,24 @@ async def test_set_all_get_temperature_over_real_uart(dut):
         dut.temp_sda.value = 1
         await clocks(dut, 2000)
 
-        # Count STEP rises during measure-open, then assert open limits.
-        x_rises = {"n": 0}
-
-        async def count_x():
-            while True:
-                await RisingEdge(dut.x_step)
-                x_rises["n"] += 1
-
-        counter = cocotb.start_soon(count_x())
-        # Wait until all axes likely produced >=2 rises (1 kHz steps).
-        for _ in range(20000):
-            await clocks(dut, 2500)
-            if x_rises["n"] >= 2:
-                break
-        dut.x_limit_hs.value = 1
-        dut.y_limit_hs.value = 1
-        dut.z_limit_hs.value = 1
-        dut.x_limit_ls.value = 0
-        dut.y_limit_ls.value = 0
-        dut.z_limit_ls.value = 0
+        # A2 serial X→Y→Z: stimulate open limit per axis after its own measure-open rises.
+        # Do not assert Y/Z open early — that strands seek-close and burns MAX_CAL_STEPS.
+        x_rises = await wait_measure_rises_then_open(
+            dut, step_sig=dut.x_step, limit_ls=dut.x_limit_ls, limit_hs=dut.x_limit_hs, axis_name="x"
+        )
+        y_rises = await wait_measure_rises_then_open(
+            dut, step_sig=dut.y_step, limit_ls=dut.y_limit_ls, limit_hs=dut.y_limit_hs, axis_name="y"
+        )
+        z_rises = await wait_measure_rises_then_open(
+            dut, step_sig=dut.z_step, limit_ls=dut.z_limit_ls, limit_hs=dut.z_limit_hs, axis_name="z"
+        )
         await wait_level_or_edge(
             dut.u_dut.startup_complete,
             want=1,
             timeout_ms=STARTUP_TIMEOUT_MS,
             stage="startup_complete",
         )
-        checkpoint("startup_complete", x_rises=x_rises["n"])
-        counter.kill()
+        checkpoint("startup_complete", x_rises=x_rises, y_rises=y_rises, z_rises=z_rises)
 
         # Clear limits for mid motion
         dut.x_limit_ls.value = 0

+ 8 - 0
tests/formal/door_motion_status_snapshot.sby

@@ -15,6 +15,10 @@ smtbmc z3
 read_verilog -formal frame_tx.v
 read_verilog -formal crc16_serial.v
 read_verilog -formal door_percent_planner.v
+read_verilog -formal door_motion_service_tick.v
+read_verilog -formal door_calibration_sequencer.v
+read_verilog -formal door_profile_quantum_builder.v
+read_verilog -formal door_shared_dda_scheduler.v
 read_verilog -formal door_axis_controller.v
 read_verilog -formal door_motion_controller.v
 read_verilog -formal door_motion_status_snapshot_formal.v
@@ -26,6 +30,10 @@ prep -top door_motion_status_snapshot_formal
 ../../src/common/frame_tx.v
 ../../src/common/crc16_serial.v
 ../../src/modules/door_percent_planner.v
+../../src/modules/door_motion_service_tick.v
+../../src/modules/door_calibration_sequencer.v
+../../src/modules/door_profile_quantum_builder.v
+../../src/modules/door_shared_dda_scheduler.v
 ../../src/modules/door_axis_controller.v
 ../../src/modules/door_motion_controller.v
 door_motion_status_snapshot_formal.v

+ 29 - 15
tests/sim/prod2u_p4_normal_v3_top_startup_tb.v

@@ -41,28 +41,42 @@ module prod2u_p4_normal_v3_top_startup_tb;
     always @(posedge z_step) z_rises = z_rises + 1;
 
     initial begin
-        #200_000_000 $fatal(1, "top_startup_tb timeout sc=%b rises=%0d/%0d/%0d",
+        #1_000_000_000 $fatal(1, "top_startup_tb timeout sc=%b rises=%0d/%0d/%0d",
             dut.startup_complete, x_rises, y_rises, z_rises);
     end
 
-    initial begin
-        x_rises = 0; y_rises = 0; z_rises = 0;
-        // Wait until each axis produced >=2 open-direction rises, then hit open.
-        begin : wait_rises
-            integer k;
-            for (k = 0; k < 5_000_000; k = k + 1) begin
-                @(posedge sys_clk);
-                if (x_rises >= 2 && y_rises >= 2 && z_rises >= 2)
-                    disable wait_rises;
+    // Serial X→Y→Z calibration: hit open only after that axis's measure-open rises.
+    task automatic cal_hit_open;
+        input integer ax;
+        integer base_x, base_y, base_z;
+        integer k;
+        begin
+            base_x = x_rises; base_y = y_rises; base_z = z_rises;
+            begin : wait_ax
+                for (k = 0; k < 5_000_000; k = k + 1) begin
+                    @(posedge sys_clk);
+                    if (ax == 0 && (x_rises - base_x) >= 2) disable wait_ax;
+                    if (ax == 1 && (y_rises - base_y) >= 2) disable wait_ax;
+                    if (ax == 2 && (z_rises - base_z) >= 2) disable wait_ax;
+                end
+                $fatal(1, "insufficient measure rises axis=%0d x=%0d y=%0d z=%0d",
+                    ax, x_rises, y_rises, z_rises);
             end
-            $fatal(1, "insufficient measure rises x=%0d y=%0d z=%0d",
-                x_rises, y_rises, z_rises);
+            if (ax == 0) begin x_limit_hs = 1'b1; x_limit_ls = 1'b0; end
+            if (ax == 1) begin y_limit_hs = 1'b1; y_limit_ls = 1'b0; end
+            if (ax == 2) begin z_limit_hs = 1'b1; z_limit_ls = 1'b0; end
+            repeat (2000) @(posedge sys_clk);
         end
-        x_limit_hs = 1'b1; y_limit_hs = 1'b1; z_limit_hs = 1'b1;
-        x_limit_ls = 1'b0; y_limit_ls = 1'b0; z_limit_ls = 1'b0;
+    endtask
+
+    initial begin
+        x_rises = 0; y_rises = 0; z_rises = 0;
+        cal_hit_open(0);
+        cal_hit_open(1);
+        cal_hit_open(2);
         begin : wait_sc
             integer k;
-            for (k = 0; k < 200_000; k = k + 1) begin
+            for (k = 0; k < 2_000_000; k = k + 1) begin
                 @(posedge sys_clk);
                 if (dut.startup_complete) disable wait_sc;
             end