FASE #1 hardware freeze for FPGA-Neural V2, N4/P8, single external SDRAM (Alliance Memory AS4C4M16SA-6TIN) serving weights, activations, and results through one physical sdram_controller.v instance. Removes the PSRAM dependency (hardware/v1/rtl/psram_controller.v + memory_interface.v) from the V2 physical path entirely -- V1 itself remains fully unmodified, the golden reference. New RTL: sdram_unified_backend.v (2-way W/AR arbitration over one SDRAM controller, real per-byte DQM write masking added to sdram_controller.v for correct single-byte result writes with no read-modify-write), nms_neural_multiprocessor_sdram_unified.v (the frozen top-level). Two real bugs found and fixed via full-system testing before being accepted (ERR-0023): a deadlock and an off-by-one data-shift bug in the new arbitration logic. Real results: N=4 and N=2 D-Stress bit-exact (256/256 neurons), 40 real AUTO REFRESH events interleaved with zero corruption, real Yosys+nextpnr-ecp5 synthesis/P&R for LFE5U-45F-8CABGA381 (149/245 TRELLIS_IO, a real 45-pin reduction from the prior dual-memory design). Timing is MARGINAL (1/8 P&R seeds >=80MHz), reported honestly rather than masked by the best seed. Real, sourced ball-level pinout for the SDRAM bus + clk/rst (39/149 signals, P&R-verified) using the official Lattice ECP5U-45 pinout CSV found on disk during this step's own pre-commit review -- corrects an earlier draft that wrongly assumed no real pinout data was available. Chip readiness: NO. Real, disclosed blockers remain (no physical host interface exists yet -- the RTL's own reg_* ports are a 110-pin raw test-harness bus; clock source/PLL decision; power/configuration component selection) -- see hardware/v2/docs/{HARDWARE_FREEZE, CHIP_READINESS,OPEN_ITEMS}.md for the complete, itemized status. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013xXuuRUWZScuo1DeYJxs3v
2.9 KiB
2.9 KiB
| 1 | 1 | 1 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
|---|---|---|---|---|---|---|---|---|
| 2 | 1 | 1 | 1 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 3 | 1 | 1 | 2 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 4 | 1 | 1 | 4 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 5 | 1 | 1 | 8 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 6 | 1 | 2 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 7 | 1 | 2 | 1 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 8 | 1 | 2 | 2 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 9 | 1 | 2 | 4 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 10 | 1 | 2 | 8 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 11 | 1 | 4 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 12 | 1 | 4 | 1 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 13 | 1 | 4 | 2 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 14 | 1 | 4 | 4 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 15 | 1 | 4 | 8 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 16 | 1 | 8 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 17 | 1 | 8 | 1 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 18 | 1 | 8 | 2 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 19 | 1 | 8 | 4 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 20 | 1 | 8 | 8 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 21 | 2 | 1 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 22 | 2 | 1 | 1 | 2059 | 1024 | 0.4973 | 0.4981 | 0.4977 |
| 23 | 2 | 1 | 2 | 2060 | 1024 | 0.4971 | 0.4978 | 0.4974 |
| 24 | 2 | 1 | 4 | 2062 | 1024 | 0.4966 | 0.4983 | 0.4975 |
| 25 | 2 | 1 | 8 | 2063 | 1024 | 0.4964 | 0.4993 | 0.4978 |
| 26 | 2 | 2 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 27 | 2 | 2 | 1 | 1035 | 1024 | 0.9894 | 0.9903 | 0.9899 |
| 28 | 2 | 2 | 2 | 1037 | 1024 | 0.9875 | 0.9903 | 0.9889 |
| 29 | 2 | 2 | 4 | 1039 | 1024 | 0.9856 | 0.9903 | 0.9879 |
| 30 | 2 | 2 | 8 | 1043 | 1024 | 0.9818 | 0.9903 | 0.9861 |
| 31 | 2 | 4 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 32 | 2 | 4 | 1 | 1035 | 1024 | 0.9894 | 0.9903 | 0.9899 |
| 33 | 2 | 4 | 2 | 1036 | 1024 | 0.9884 | 0.9903 | 0.9894 |
| 34 | 2 | 4 | 4 | 1039 | 1024 | 0.9856 | 0.9903 | 0.9879 |
| 35 | 2 | 4 | 8 | 1043 | 1024 | 0.9818 | 0.9903 | 0.9861 |
| 36 | 2 | 8 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 37 | 2 | 8 | 1 | 1035 | 1024 | 0.9894 | 0.9903 | 0.9899 |
| 38 | 2 | 8 | 2 | 1036 | 1024 | 0.9884 | 0.9903 | 0.9894 |
| 39 | 2 | 8 | 4 | 1038 | 1024 | 0.9865 | 0.9903 | 0.9884 |
| 40 | 2 | 8 | 8 | 1043 | 1024 | 0.9818 | 0.9903 | 0.9861 |
| 41 | 4 | 1 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 42 | 4 | 1 | 1 | 2066 | 1024 | 0.4956 | 0.7442 | 0.6821 |
| 43 | 4 | 1 | 2 | 2071 | 1024 | 0.4944 | 0.7415 | 0.6797 |
| 44 | 4 | 1 | 4 | 4112 | 1024 | 0.2490 | 0.2502 | 0.2495 |
| 45 | 4 | 1 | 8 | 4116 | 1024 | 0.2488 | 0.2513 | 0.2498 |
| 46 | 4 | 2 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 47 | 4 | 2 | 1 | 1041 | 1024 | 0.9837 | 0.9884 | 0.9872 |
| 48 | 4 | 2 | 2 | 1554 | 1024 | 0.6589 | 0.6628 | 0.6610 |
| 49 | 4 | 2 | 4 | 2066 | 1024 | 0.4956 | 0.4998 | 0.4974 |
| 50 | 4 | 2 | 8 | 2072 | 1024 | 0.4942 | 0.5020 | 0.4976 |
| 51 | 4 | 4 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 52 | 4 | 4 | 1 | 1037 | 1024 | 0.9875 | 0.9903 | 0.9889 |
| 53 | 4 | 4 | 2 | 1040 | 1024 | 0.9846 | 0.9903 | 0.9870 |
| 54 | 4 | 4 | 4 | 1049 | 1024 | 0.9762 | 0.9903 | 0.9832 |
| 55 | 4 | 4 | 8 | 1061 | 1024 | 0.9651 | 0.9903 | 0.9777 |
| 56 | 4 | 8 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 57 | 4 | 8 | 1 | 1037 | 1024 | 0.9875 | 0.9903 | 0.9889 |
| 58 | 4 | 8 | 2 | 1040 | 1024 | 0.9846 | 0.9903 | 0.9875 |
| 59 | 4 | 8 | 4 | 1047 | 1024 | 0.9780 | 0.9903 | 0.9842 |
| 60 | 4 | 8 | 8 | 1061 | 1024 | 0.9651 | 0.9903 | 0.9777 |
| 61 | 8 | 1 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 62 | 8 | 1 | 1 | 2072 | 1024 | 0.4942 | 0.8634 | 0.8173 |
| 63 | 8 | 1 | 2 | 4126 | 1024 | 0.2482 | 0.3730 | 0.3130 |
| 64 | 8 | 1 | 4 | 2101 | 1024 | 0.4874 | 0.8421 | 0.7978 |
| 65 | 8 | 1 | 8 | 8213 | 1024 | 0.1247 | 0.1264 | 0.1252 |
| 66 | 8 | 2 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 67 | 8 | 2 | 1 | 1049 | 1024 | 0.9762 | 0.9846 | 0.9836 |
| 68 | 8 | 2 | 2 | 2072 | 1024 | 0.4942 | 0.4983 | 0.4958 |
| 69 | 8 | 2 | 4 | 3608 | 1024 | 0.2838 | 0.2872 | 0.2851 |
| 70 | 8 | 2 | 8 | 4122 | 1024 | 0.2484 | 0.2540 | 0.2503 |
| 71 | 8 | 4 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 72 | 8 | 4 | 1 | 1049 | 1024 | 0.9762 | 0.9865 | 0.9849 |
| 73 | 8 | 4 | 2 | 1056 | 1024 | 0.9697 | 0.9884 | 0.9801 |
| 74 | 8 | 4 | 4 | 1568 | 1024 | 0.6531 | 0.6662 | 0.6583 |
| 75 | 8 | 4 | 8 | 2086 | 1024 | 0.4909 | 0.5077 | 0.4976 |
| 76 | 8 | 8 | 0 | 1034 | 1024 | 0.9903 | 0.9903 | 0.9903 |
| 77 | 8 | 8 | 1 | 1041 | 1024 | 0.9837 | 0.9903 | 0.9870 |
| 78 | 8 | 8 | 2 | 1048 | 1024 | 0.9771 | 0.9903 | 0.9830 |
| 79 | 8 | 8 | 4 | 1062 | 1024 | 0.9642 | 0.9903 | 0.9753 |
| 80 | 8 | 8 | 8 | 1097 | 1024 | 0.9335 | 0.9903 | 0.9614 |