AREA-LEDGER.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. {
  2. "schema": "prod2u-mrdimm-area-ledger-v1",
  3. "generated_at_utc": "2026-09-07T20:30:00Z",
  4. "device": {
  5. "family": "Anlogic EF2",
  6. "part": "EF2L45BG256B",
  7. "lut_capacity": 4480,
  8. "slice_capacity": 2240,
  9. "reg_capacity": 4480,
  10. "bram9k_capacity": 12,
  11. "dsp_capacity": 15
  12. },
  13. "toolchain": {
  14. "name": "Anlogic TD",
  15. "version": "Release_2026.1_SP2 Build: 6.2.2.200067",
  16. "command": "td2026",
  17. "strategy": {
  18. "gate_opt_area": "high",
  19. "gate_pack_effort": "high",
  20. "async_reg": "on",
  21. "defines": [
  22. "PROD2U_TD_VENDOR_RAM"
  23. ]
  24. }
  25. },
  26. "baselines": {
  27. "d4e2595": {
  28. "commit": "d4e2595ff2736bdf7679e64712d6b913f084d039",
  29. "top": "prod2u_mrdimm_rs232_only_top",
  30. "run_id": "fetch-factor-td-d4e2595",
  31. "status": "FAIL",
  32. "failure_reason": "LUT capacity exceeded (5449 / 4480, excess 969)",
  33. "metrics": {
  34. "lut": 5449,
  35. "registers": 3929,
  36. "bram": 8,
  37. "dsp": 1,
  38. "packed_slices": 3016,
  39. "mslice": 1508,
  40. "lslice": 1508
  41. },
  42. "hierarchy": {
  43. "top": {
  44. "lut": 5069,
  45. "ripple": 380,
  46. "seq": 3944,
  47. "bram": 8,
  48. "dsp": 1
  49. },
  50. "core": {
  51. "lut": 5058,
  52. "ripple": 380,
  53. "seq": 3929,
  54. "bram": 8,
  55. "dsp": 1
  56. },
  57. "u_motor": {
  58. "total_lut_with_ripple": 3024,
  59. "lut": 2775,
  60. "ripple": 249,
  61. "seq": 2579,
  62. "bram": 4,
  63. "dsp": 1,
  64. "submodules": {
  65. "u_axes": {
  66. "total_lut_with_ripple": 1244,
  67. "lut": 1130,
  68. "ripple": 114,
  69. "seq": 1448,
  70. "submodules": {
  71. "u_state_bank": {
  72. "lut": 411,
  73. "ripple": 0,
  74. "seq": 966
  75. }
  76. }
  77. },
  78. "u_limit_history": {
  79. "lut": 230,
  80. "ripple": 0,
  81. "seq": 0
  82. },
  83. "u_events": {
  84. "lut": 183,
  85. "ripple": 31,
  86. "seq": 75,
  87. "bram": 2
  88. },
  89. "u_queue": {
  90. "lut": 109,
  91. "ripple": 10,
  92. "seq": 270,
  93. "bram": 1,
  94. "dsp": 1
  95. },
  96. "u_stage": {
  97. "lut": 0,
  98. "ripple": 0,
  99. "seq": 0,
  100. "bram": 1
  101. },
  102. "motor_engine_internal_glue_mux": {
  103. "lut": 1123,
  104. "ripple": 94,
  105. "seq": -174
  106. }
  107. }
  108. },
  109. "u_snapshot": {
  110. "total_lut_with_ripple": 832,
  111. "lut": 828,
  112. "ripple": 4,
  113. "seq": 381,
  114. "bram": 1,
  115. "submodules": {
  116. "u_snapshot_memory_mux": {
  117. "lut": 622,
  118. "ripple": 0,
  119. "seq": 0,
  120. "bram": 1
  121. }
  122. }
  123. },
  124. "u_command": {
  125. "lut": 318,
  126. "ripple": 22,
  127. "seq": 221,
  128. "bram": 0,
  129. "dsp": 0
  130. },
  131. "u_ct_snapshot": {
  132. "lut": 303,
  133. "ripple": 30,
  134. "seq": 130,
  135. "bram": 2,
  136. "dsp": 0
  137. },
  138. "u_ct_i2c": {
  139. "lut": 194,
  140. "ripple": 12,
  141. "seq": 88,
  142. "bram": 0,
  143. "dsp": 0
  144. },
  145. "u_output": {
  146. "lut": 186,
  147. "ripple": 9,
  148. "seq": 248,
  149. "bram": 0,
  150. "dsp": 0,
  151. "submodules": {
  152. "u_pwm": {
  153. "lut": 63,
  154. "ripple": 9,
  155. "seq": 41
  156. }
  157. }
  158. },
  159. "u_frame_rx": {
  160. "lut": 134,
  161. "ripple": 19,
  162. "seq": 98
  163. },
  164. "u_frame_tx": {
  165. "lut": 114,
  166. "ripple": 5,
  167. "seq": 33
  168. },
  169. "u_host_rx": {
  170. "lut": 45,
  171. "ripple": 0,
  172. "seq": 32
  173. },
  174. "u_host_tx": {
  175. "lut": 25,
  176. "ripple": 0,
  177. "seq": 21
  178. },
  179. "u_host_crc": {
  180. "lut": 43,
  181. "ripple": 0,
  182. "seq": 30
  183. },
  184. "u_host_select": {
  185. "lut": 43,
  186. "ripple": 11,
  187. "seq": 23
  188. },
  189. "u_payload": {
  190. "lut": 0,
  191. "ripple": 0,
  192. "seq": 0,
  193. "bram": 1
  194. },
  195. "u_por": {
  196. "lut": 10,
  197. "ripple": 6,
  198. "seq": 11
  199. },
  200. "u_tick_1s": {
  201. "lut": 33,
  202. "ripple": 13,
  203. "seq": 26
  204. },
  205. "u_tick_1us": {
  206. "lut": 6,
  207. "ripple": 0,
  208. "seq": 6
  209. }
  210. }
  211. },
  212. "037b459": {
  213. "commit": "037b4596e3fcad358d7e0129bc7b2b00ebf92b74",
  214. "top": "prod2u_mrdimm_rs232_only_top",
  215. "run_id": "dsp-done-td-037b459",
  216. "status": "FAIL",
  217. "failure_reason": "PHY-9011 slice limit exceeded (4501 LUTs + 354 slices > 2240 slices)",
  218. "metrics": {
  219. "lut": 5209,
  220. "registers": 4405,
  221. "bram": 8,
  222. "dsp": 9,
  223. "packed_slices": 354,
  224. "mslice": 228,
  225. "lslice": 126
  226. },
  227. "delta_vs_d4e2595": {
  228. "lut": -240,
  229. "registers": 476,
  230. "dsp": 8,
  231. "bram": 0
  232. }
  233. },
  234. "e960df6": {
  235. "commit": "e960df6726840b7a468ca96e5695154c0757e2e6",
  236. "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",
  237. "top": "prod2u_mrdimm_rs232_only_top",
  238. "run_id": "route-b-td-e960df6",
  239. "status": "FAIL",
  240. "failure_reason": "LUT capacity exceeded (5204 / 4480, excess 724); PHY-9011 4494 post-opt LUT + 355 slices > 2240",
  241. "metrics": {
  242. "lut": 5204,
  243. "registers": 4387,
  244. "bram": 7,
  245. "dsp": 9
  246. },
  247. "hierarchy": {
  248. "u_motor": {
  249. "lut": 2554,
  250. "ripple": 217,
  251. "seq": 3055,
  252. "bram": 3,
  253. "dsp": 9
  254. },
  255. "u_axes": {
  256. "lut": 1118,
  257. "ripple": 114,
  258. "seq": 1160,
  259. "dsp": 8,
  260. "u_state_bank": {
  261. "lut": 382,
  262. "seq": 678
  263. }
  264. },
  265. "u_done_history": {
  266. "lut": 130,
  267. "seq": 354
  268. },
  269. "u_limit_history": {
  270. "lut": 150,
  271. "seq": 449
  272. },
  273. "u_events": {
  274. "lut": 192,
  275. "ripple": 39,
  276. "bram": 2
  277. },
  278. "u_queue": {
  279. "lut": 109,
  280. "ripple": 10,
  281. "bram": 1,
  282. "dsp": 1
  283. },
  284. "motor_engine_glue_lut": 855,
  285. "u_snapshot": {
  286. "lut": 832,
  287. "ripple": 4,
  288. "bram": 1,
  289. "u_snapshot_memory_absorbed_lut": 634
  290. },
  291. "u_command": {
  292. "lut": 295
  293. },
  294. "u_ct_snapshot": {
  295. "lut": 302
  296. },
  297. "u_ct_i2c": {
  298. "lut": 202
  299. },
  300. "u_output": {
  301. "lut": 194
  302. },
  303. "frame_rx": {
  304. "lut": 134
  305. },
  306. "frame_tx": {
  307. "lut": 111
  308. }
  309. },
  310. "evidence": "/data/prod2u/runs/route-b-td-e960df6/native/td-receipt.json; local analysis/route-b-td-e960df6/prod2u_mrdimm_gate.area",
  311. "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"
  312. }
  313. },
  314. "cost_breakdown_by_function": {
  315. "motor_subsystem": {
  316. "lut_total": 3024,
  317. "percentage_of_design": "55.5%",
  318. "primary_cost_centers": [
  319. {
  320. "name": "motor_axis_core (adders, comparators, clamp, 322-bit state bank)",
  321. "lut": 1244
  322. },
  323. {
  324. "name": "motor_engine glue (queue staging, control FSM, arbitration, depth calculation)",
  325. "lut": 1123
  326. },
  327. {
  328. "name": "motor_limit_history (160-bit rotating capture bank)",
  329. "lut": 230
  330. },
  331. {
  332. "name": "motor_event_ring (freeze view, byte unpack, event memory)",
  333. "lut": 214
  334. },
  335. {
  336. "name": "motor_queue_storage (packed slot memory, slot pointers)",
  337. "lut": 119
  338. }
  339. ]
  340. },
  341. "snapshot_and_telemetry": {
  342. "lut_total": 832,
  343. "percentage_of_design": "15.3%",
  344. "primary_cost_centers": [
  345. {
  346. "name": "u_snapshot_memory input multiplexers (formatting 352 bytes into BRAM)",
  347. "lut": 622
  348. },
  349. {
  350. "name": "snapshot sequence control & bank arbitration",
  351. "lut": 206
  352. }
  353. ]
  354. },
  355. "thermal_pwm_and_watchdog": {
  356. "lut_total": 195,
  357. "percentage_of_design": "3.6%",
  358. "primary_cost_centers": [
  359. {
  360. "name": "mrdimm_output_core registers & watchdog lease countdown",
  361. "lut": 122
  362. },
  363. {
  364. "name": "pwm_bitmap_engine (carrier phase accumulator, scan sequencer)",
  365. "lut": 72
  366. }
  367. ]
  368. },
  369. "host_transport_and_framing": {
  370. "lut_total": 718,
  371. "percentage_of_design": "13.2%",
  372. "primary_cost_centers": [
  373. {
  374. "name": "mrdimm_host_command FSM & command validation",
  375. "lut": 340
  376. },
  377. {
  378. "name": "frame_rx / frame_tx / UART byte serializers",
  379. "lut": 318
  380. },
  381. {
  382. "name": "crc16_serial & host port selector",
  383. "lut": 60
  384. }
  385. ]
  386. },
  387. "sensor_acquisition": {
  388. "lut_total": 539,
  389. "percentage_of_design": "9.9%",
  390. "primary_cost_centers": [
  391. {
  392. "name": "ct7428_snapshot (2-bank staging)",
  393. "lut": 333
  394. },
  395. {
  396. "name": "i2c_word_reader",
  397. "lut": 206
  398. }
  399. ]
  400. }
  401. },
  402. "refactoring_opportunities_route_a": [
  403. {
  404. "target": "motor_axis_state_bank & cold statistics separation",
  405. "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.",
  406. "estimated_lut_saving": "250-350 LUT"
  407. },
  408. {
  409. "target": "shared arithmetic in motor_axis_core",
  410. "rationale": "Replace multiple 32/34-bit adders/subtractors per axis with a time-multiplexed 16-bit ALU with carry.",
  411. "estimated_lut_saving": "150-250 LUT"
  412. },
  413. {
  414. "target": "payload_ram reuse for queue staging (eliminate duplicate u_stage BRAM and glue)",
  415. "rationale": "motor_engine.u_stage duplicates 128 bytes of queue descriptor data that is already held in payload_ram during valid transaction processing.",
  416. "estimated_lut_saving": "60-120 LUT"
  417. },
  418. {
  419. "target": "mrdimm_snapshot_mux write formatting compaction",
  420. "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.",
  421. "estimated_lut_saving": "200-300 LUT"
  422. }
  423. ],
  424. "rejected_candidates": {
  425. "route_a4_series_9cba875_281e2d5": {
  426. "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",
  427. "native": {
  428. "commit": "ed2e711 (series head + timeout fix)",
  429. "run_id": "route-a4-td-ed2e711",
  430. "lut": 5694,
  431. "registers": 4212,
  432. "bram": 7,
  433. "dsp": 1
  434. },
  435. "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",
  436. "preserved_as": "branch route-a4-rejected (local + LAN)"
  437. },
  438. "snapshot_header_shift_register": {
  439. "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",
  440. "native": {
  441. "commit": "a8b8a13",
  442. "run_id": "route-a-td-a8b8a13",
  443. "lut": 5426,
  444. "registers": 4501,
  445. "bram": 7,
  446. "dsp": 9
  447. },
  448. "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",
  449. "preserved_as": "branch route-a-snapshot-shift-rejected (local + LAN)"
  450. }
  451. }
  452. }