Files
FPGA-Neural/hardware/v2/nms/reports/nms_prefetch_sweep.csv
T
micheleandClaude Sonnet 5 8e014d8d49 V2.0.0 hardware freeze - single SDRAM
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
2026-09-06 13:39:55 +02:00

2.5 KiB

1configurationn_slotspfdlatency_classcyclespsram_util_pctweight_stall_pctprefetch_effectiveness_pctsustained_mac_per_cycletheoretical_mac_per_cycleutilization_pct_of_theoreticalfmax_mhzlut4ccu2cffdspbramclassification
2current_nms_baseline2n/areal_v1_psram18564590.492.50.00.1765161.1093.1019482663522160POST-P&R MEASURED Fmax/resources + RTL SIMULATION cycles (EXP-0022)
3nms_plus_prefetch11real_v1_psram18148959.387.910.020.180682.26n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
4nms_plus_prefetch12real_v1_psram16287666.486.440.390.201282.52132.261333203224580POST-P&R MEASURED Fmax/resources + RTL SIMULATION cycles (EXP-0024)
5nms_plus_prefetch14real_v1_psram16287666.486.440.390.201282.52n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
6nms_plus_prefetch18real_v1_psram16287666.486.440.390.201282.52137.761464200224580POST-P&R MEASURED Fmax/resources + RTL SIMULATION cycles (EXP-0024)
7nms_plus_prefetch116real_v1_psram16287666.486.440.390.201282.52n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
8nms_plus_prefetch21real_v1_psram18541090.593.320.780.1767161.10n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
9nms_plus_prefetch22real_v1_psram18540890.593.320.780.1767161.1097.1619413683449160POST-P&R MEASURED Fmax/resources + RTL SIMULATION cycles (EXP-0024)
10nms_plus_prefetch24real_v1_psram18540490.593.320.780.1767161.10n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
11nms_plus_prefetch28real_v1_psram18539890.593.320.780.1767161.1095.2519083623449160POST-P&R MEASURED Fmax/resources + RTL SIMULATION cycles (EXP-0024)
12nms_plus_prefetch216real_v1_psram18539090.593.330.780.1768161.11n/an/an/an/an/an/aRTL SIMULATION (EXP-0024)
13ideal_memory_pfd_sweep1_or_21latency_0-1_cycn/an/an/an/an/an/an/an/an/an/an/an/aIDEAL-MEMORY SIMULATION (EXP-0023) -- min PFD for >=90% util at latency 0-1 is PFD=4
14ideal_memory_pfd_sweep1_or_21latency_2-4_cycn/an/an/an/an/an/an/an/an/an/an/an/aIDEAL-MEMORY SIMULATION (EXP-0023) -- min PFD for >=90% util at latency 2-4 is PFD=8
15ideal_memory_pfd_sweep1_or_21latency_8_cycn/an/an/an/an/an/an/an/an/an/an/an/aIDEAL-MEMORY SIMULATION (EXP-0023) -- min PFD for >=90% util at latency 8 is PFD=16
16ideal_memory_pfd_sweep1_or_21latency_16_cycn/an/an/an/an/an/an/an/an/an/an/an/aIDEAL-MEMORY SIMULATION (EXP-0023) -- min PFD for >=90% util at latency 16 is PFD=32