| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- {
- "schema": "prod2u-mrdimm-area-ledger-v1",
- "generated_at_utc": "2026-09-07T20:30: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)"
- }
- }
- }
|