{ "schema": "prod2u-mrdimm-area-ledger-v1", "generated_at_utc": "2026-09-08T10:00:00Z", "device": { "family": "Anlogic EF2", "part": "EF2L45BG256B", "lut_capacity": 4480, "slice_capacity": 2240, "reg_capacity": 4480, "bram9k_capacity": 12, "dsp_capacity": 15 }, "toolchain": { "name": "Anlogic TD", "version": "Release_2026.1_SP2 Build: 6.2.2.200067", "command": "td2026", "strategy": { "gate_opt_area": "high", "gate_pack_effort": "high", "async_reg": "on", "defines": [ "PROD2U_TD_VENDOR_RAM" ] } }, "baselines": { "d4e2595": { "commit": "d4e2595ff2736bdf7679e64712d6b913f084d039", "top": "prod2u_mrdimm_rs232_only_top", "run_id": "fetch-factor-td-d4e2595", "status": "FAIL", "failure_reason": "LUT capacity exceeded (5449 / 4480, excess 969)", "metrics": { "lut": 5449, "registers": 3929, "bram": 8, "dsp": 1, "packed_slices": 3016, "mslice": 1508, "lslice": 1508 }, "hierarchy": { "top": { "lut": 5069, "ripple": 380, "seq": 3944, "bram": 8, "dsp": 1 }, "core": { "lut": 5058, "ripple": 380, "seq": 3929, "bram": 8, "dsp": 1 }, "u_motor": { "total_lut_with_ripple": 3024, "lut": 2775, "ripple": 249, "seq": 2579, "bram": 4, "dsp": 1, "submodules": { "u_axes": { "total_lut_with_ripple": 1244, "lut": 1130, "ripple": 114, "seq": 1448, "submodules": { "u_state_bank": { "lut": 411, "ripple": 0, "seq": 966 } } }, "u_limit_history": { "lut": 230, "ripple": 0, "seq": 0 }, "u_events": { "lut": 183, "ripple": 31, "seq": 75, "bram": 2 }, "u_queue": { "lut": 109, "ripple": 10, "seq": 270, "bram": 1, "dsp": 1 }, "u_stage": { "lut": 0, "ripple": 0, "seq": 0, "bram": 1 }, "motor_engine_internal_glue_mux": { "lut": 1123, "ripple": 94, "seq": -174 } } }, "u_snapshot": { "total_lut_with_ripple": 832, "lut": 828, "ripple": 4, "seq": 381, "bram": 1, "submodules": { "u_snapshot_memory_mux": { "lut": 622, "ripple": 0, "seq": 0, "bram": 1 } } }, "u_command": { "lut": 318, "ripple": 22, "seq": 221, "bram": 0, "dsp": 0 }, "u_ct_snapshot": { "lut": 303, "ripple": 30, "seq": 130, "bram": 2, "dsp": 0 }, "u_ct_i2c": { "lut": 194, "ripple": 12, "seq": 88, "bram": 0, "dsp": 0 }, "u_output": { "lut": 186, "ripple": 9, "seq": 248, "bram": 0, "dsp": 0, "submodules": { "u_pwm": { "lut": 63, "ripple": 9, "seq": 41 } } }, "u_frame_rx": { "lut": 134, "ripple": 19, "seq": 98 }, "u_frame_tx": { "lut": 114, "ripple": 5, "seq": 33 }, "u_host_rx": { "lut": 45, "ripple": 0, "seq": 32 }, "u_host_tx": { "lut": 25, "ripple": 0, "seq": 21 }, "u_host_crc": { "lut": 43, "ripple": 0, "seq": 30 }, "u_host_select": { "lut": 43, "ripple": 11, "seq": 23 }, "u_payload": { "lut": 0, "ripple": 0, "seq": 0, "bram": 1 }, "u_por": { "lut": 10, "ripple": 6, "seq": 11 }, "u_tick_1s": { "lut": 33, "ripple": 13, "seq": 26 }, "u_tick_1us": { "lut": 6, "ripple": 0, "seq": 6 } } }, "037b459": { "commit": "037b4596e3fcad358d7e0129bc7b2b00ebf92b74", "top": "prod2u_mrdimm_rs232_only_top", "run_id": "dsp-done-td-037b459", "status": "FAIL", "failure_reason": "PHY-9011 slice limit exceeded (4501 LUTs + 354 slices > 2240 slices)", "metrics": { "lut": 5209, "registers": 4405, "bram": 8, "dsp": 9, "packed_slices": 354, "mslice": 228, "lslice": 126 }, "delta_vs_d4e2595": { "lut": -240, "registers": 476, "dsp": 8, "bram": 0 } }, "e960df6": { "commit": "e960df6726840b7a468ca96e5695154c0757e2e6", "basis": "7d52f54 (PWM commit/scan handoff fix, 12-axis XYZ rate classes, NACK full-payload index, A3 payload staging, A4 snapshot mux start) + runner quick-timeout fix; route-a4 area experiments reverted", "top": "prod2u_mrdimm_rs232_only_top", "run_id": "route-b-td-e960df6", "status": "FAIL", "failure_reason": "LUT capacity exceeded (5204 / 4480, excess 724); PHY-9011 4494 post-opt LUT + 355 slices > 2240", "metrics": { "lut": 5204, "registers": 4387, "bram": 7, "dsp": 9 }, "hierarchy": { "u_motor": { "lut": 2554, "ripple": 217, "seq": 3055, "bram": 3, "dsp": 9 }, "u_axes": { "lut": 1118, "ripple": 114, "seq": 1160, "dsp": 8, "u_state_bank": { "lut": 382, "seq": 678 } }, "u_done_history": { "lut": 130, "seq": 354 }, "u_limit_history": { "lut": 150, "seq": 449 }, "u_events": { "lut": 192, "ripple": 39, "bram": 2 }, "u_queue": { "lut": 109, "ripple": 10, "bram": 1, "dsp": 1 }, "motor_engine_glue_lut": 855, "u_snapshot": { "lut": 832, "ripple": 4, "bram": 1, "u_snapshot_memory_absorbed_lut": 634 }, "u_command": { "lut": 295 }, "u_ct_snapshot": { "lut": 302 }, "u_ct_i2c": { "lut": 202 }, "u_output": { "lut": 194 }, "frame_rx": { "lut": 134 }, "frame_tx": { "lut": 111 } }, "evidence": "/data/prod2u/runs/route-b-td-e960df6/native/td-receipt.json; local analysis/route-b-td-e960df6/prod2u_mrdimm_gate.area", "tests": "route-b-quick-e960df6-64 PASS; real-rate 12-axis engine TB measured 782s wall, PASS (probe route-a4-tb12-probe2-9067657); mrdimm quick route-b-quick-e960df6-mr submitted with 1200s pacing" } }, "cost_breakdown_by_function": { "motor_subsystem": { "lut_total": 3024, "percentage_of_design": "55.5%", "primary_cost_centers": [ { "name": "motor_axis_core (adders, comparators, clamp, 322-bit state bank)", "lut": 1244 }, { "name": "motor_engine glue (queue staging, control FSM, arbitration, depth calculation)", "lut": 1123 }, { "name": "motor_limit_history (160-bit rotating capture bank)", "lut": 230 }, { "name": "motor_event_ring (freeze view, byte unpack, event memory)", "lut": 214 }, { "name": "motor_queue_storage (packed slot memory, slot pointers)", "lut": 119 } ] }, "snapshot_and_telemetry": { "lut_total": 832, "percentage_of_design": "15.3%", "primary_cost_centers": [ { "name": "u_snapshot_memory input multiplexers (formatting 352 bytes into BRAM)", "lut": 622 }, { "name": "snapshot sequence control & bank arbitration", "lut": 206 } ] }, "thermal_pwm_and_watchdog": { "lut_total": 195, "percentage_of_design": "3.6%", "primary_cost_centers": [ { "name": "mrdimm_output_core registers & watchdog lease countdown", "lut": 122 }, { "name": "pwm_bitmap_engine (carrier phase accumulator, scan sequencer)", "lut": 72 } ] }, "host_transport_and_framing": { "lut_total": 718, "percentage_of_design": "13.2%", "primary_cost_centers": [ { "name": "mrdimm_host_command FSM & command validation", "lut": 340 }, { "name": "frame_rx / frame_tx / UART byte serializers", "lut": 318 }, { "name": "crc16_serial & host port selector", "lut": 60 } ] }, "sensor_acquisition": { "lut_total": 539, "percentage_of_design": "9.9%", "primary_cost_centers": [ { "name": "ct7428_snapshot (2-bank staging)", "lut": 333 }, { "name": "i2c_word_reader", "lut": 206 } ] } }, "refactoring_opportunities_route_a": [ { "target": "motor_axis_state_bank & cold statistics separation", "rationale": "Currently all 322 bits per axis (total 966 bits) are instantiated as fast registered paths. Only STEP/DIR, limit sync/truncation, and next deadline need single-cycle evaluation. Positions, executed steps, total steps, and hit counters are cold multi-cycle operations.", "estimated_lut_saving": "250-350 LUT" }, { "target": "shared arithmetic in motor_axis_core", "rationale": "Replace multiple 32/34-bit adders/subtractors per axis with a time-multiplexed 16-bit ALU with carry.", "estimated_lut_saving": "150-250 LUT" }, { "target": "payload_ram reuse for queue staging (eliminate duplicate u_stage BRAM and glue)", "rationale": "motor_engine.u_stage duplicates 128 bytes of queue descriptor data that is already held in payload_ram during valid transaction processing.", "estimated_lut_saving": "60-120 LUT" }, { "target": "mrdimm_snapshot_mux write formatting compaction", "rationale": "The 622 LUT attributed under snapshot BRAM is caused by wide combinational multiplexing of 352 bytes. Formatting fields sequentially into BRAM over multiple clocks drastically reduces MUX depth.", "estimated_lut_saving": "200-300 LUT" } ], "rejected_candidates": { "route_a4_series_9cba875_281e2d5": { "scope": "30 refactor commits: 322b bank -> 210b DFF arrays with per-axis side arrays, addressed limit/done history arrays, DSP lane removal, snapshot header flattening", "native": { "commit": "ed2e711 (series head + timeout fix)", "run_id": "route-a4-td-ed2e711", "lut": 5694, "registers": 4212, "bram": 7, "dsp": 1 }, "verdict": "REJECTED: +490 LUT versus the 5204 baseline while only saving registers/BRAM/DSP. Addressed async-read arrays reproduce the banned wide read/write mux trees; do not re-array the state bank without explicit synchronous BRAM ports", "preserved_as": "branch route-a4-rejected (local + LAN)" }, "snapshot_header_shift_register": { "scope": "a8b8a13: replace the 29-entry 16-bit header_word case with a 30-word 480-bit capture+shift register advancing only at consumed indices", "native": { "commit": "a8b8a13", "run_id": "route-a-td-a8b8a13", "lut": 5426, "registers": 4501, "bram": 7, "dsp": 9 }, "verdict": "REJECTED: +222 LUT / +114 FF versus baseline e960df6 (5204/4387). The wide capture-data path into the long shift register costs more than the case tree it removes", "preserved_as": "branch route-a-snapshot-shift-rejected (local + LAN)" }, "cold_bram_telemetry_split": { "scope": "3265fcf: last/done-tag/hits (112b/axis telemetry-only statistics) moved from the rotating word to a synchronous 16-bit BRAM with a decoupled shared-ALU engine, +1 (q_axis,word) telemetry pipeline, engine overlay alignment, snapshot hold windows", "native": { "commit": "3265fcf", "run_id": "route-a-td-3265fcf", "lut": 5355, "registers": 4482, "bram": 8, "dsp": 9 }, "functional": "quick route-a-quick-3265fcf-mr FAIL (motor_axis_contract_tb, motor_axis_bank_tb)", "verdict": "REJECTED: +151 LUT / +95 FF (+2 over FF capacity) AND functional failures. Fourth independent measurement point confirming the rotating+DSP bank is a local optimum for this TD mapping", "preserved_as": "branch route-a-coldbram1-rejected (local + LAN)" } }, "b_route_measurements": { "b1_event_ring_64_to_4": { "commit": "dd3646", "run_id": "ablate-b1-td", "lut": 5204, "delta_lut": 0, "delta_ff": 0, "verdict": "NO YIELD: the 64-entry ring lives in BRAM (u_events.u_memory); depth is not an LUT cost. B1 buys protocol/semantic simplification only, zero area" }, "b2_hit_counters_removed": { "commit": "8ee9046", "run_id": "ablate-b2-td", "lut": 5033, "delta_lut": -171, "delta_ff": -198, "verdict": "REAL LEVER: device-side cumulative lower/upper hit counters removed, host aggregates from events. GET axis LOWER_HITS/UPPER_HITS fields read 0 and hit wrap flags never set; limit/completion events (exact to the pulse) retained. Host offline loses cumulative hit history" }, "b3_snapshot_atomicity": { "commit": "be1b8b8 (branch b3-snapshot-ablated)", "run_id": "ablate-b3-td", "scope": "snapshot publishes unconditionally; the epoch equality/retry comparison and captured_epoch register removed; per-word self-consistency only", "native": { "lut": 5181, "registers": 4355, "bram": 7, "dsp": 9 }, "delta": { "lut": -23, "ff": -32 }, "verdict": "SMALL MEASURED LEVER: the atomicity cost is mostly the retry SEMANTICS (unbounded GET latency under continuous motion), not area. Losses: a cross-axis GET view may mix pre/post-update words" }, "b4_multiaxis_atomic_batch": { "commit": "d9fa821 (branch b4-batch-ablated)", "run_id": "ablate-b4-td2", "scope": "qc FSM rewritten: per-descriptor validate+space-check+immediate live commit+queue write replaces the cross-axis atomic batch (QC_SPACE/QC_WRITE/QC_DRAIN states, per-axis accumulator arrays and DRAIN broadcast deleted). CRC, per-command queue-space check and final ACK kept", "native": { "lut": 5039, "registers": 4321, "bram": 7, "dsp": 9 }, "delta": { "lut": -165, "ff": -66 }, "verdict": "MEASURED LEVER: second real cut, comparable to B2. Losses: a mid-batch NACK no longer rolls back earlier descriptors of the same command (host reconciles); multi-axis batches no longer publish atomically - the host writes per axis and uses ARM/START. Timing granularity unchanged; calibration untouched", "phy_note": "failure mode moves from LUT excess to MSlice excess (1341 > 1120) - slice capacity becomes binding once LUT narrows" }, "b5_6400_strategy_to_host": { "attribution": "thermal_control_core = 497 LUT + 160 FF + 4 BRAM (6400 gate.area)", "measured": false, "verdict": "6400-side only; zero MRDIMM benefit (rule: B5 yield never counts toward MRDIMM). 6400 already fits at 3794/4480, so B5 buys headroom, not Fit" }, "fit_path_arithmetic": { "baseline": 5204, "measured_b2_plus_b4": 4877, "remaining_gap": "397 LUT + MSlice 177 over", "conclusion": "ALL B1-B5 rows now have native data (B1 0, B2 -171, B3 -23, B4 -165, B5 6400-side only). The maximum measured B-set (B2+B3+B4) leaves the design over capacity, with MSlice binding first. Fit requires deeper cuts beyond B1-B5 (event word payloads, queue slots, 12-axis support) or a larger device - a fixed product decision input" }, "b24_combined": { "commit": "b1a7d45 (branch b24-combined-ablated, B2+B4 cherry-picked from 3d68f20)", "run_id": "ablate-b24-td", "native": { "lut": 4877, "registers": 4123, "bram": 7, "dsp": 9 }, "delta": { "lut": -327, "ff": -264 }, "binding_constraint": "PHY-9009 MSlice 1297 > 1120 - slices, not LUT, now bind", "verdict": "Combined measured almost exactly additive (4877 vs 4868 estimate): B2 and B4 mechanisms are independent. Remaining gap to LUT capacity: 397; MSlice also over" } }, "structural_conclusion": "Four independent native measurements (side arrays +220, cold-BRAM telemetry split +151, route-a4 arrays +490, snapshot shift +222) establish that the 322-bit rotating+DSP state bank is a local LUT optimum for Anlogic TD 2026.1 SP2: rotation writes are pure shifts (~zero LUT), so every storage restructure pays its control/pipeline overhead without removing equivalent combinational cost. No in-contract storage restructuring reduces LUT. The only measured LUT levers are functionality removals (B2 -171). MRDIMM cannot reach 4480 LUT without product decisions on B-cuts; the minimal measured set is B2 (-171) plus the unmeasured B4 (est 100-250) against a 553 LUT gap at the B2 point." }