mirror of
https://github.com/NawfalMotii79/PLFM_RADAR.git
synced 2026-06-08 14:44:56 +00:00
52a3497ea2
A-3: gen_chirp_mem.py hardcoded 30 us / 0.5 us / 2048-pt / 2 segments, duplicating the same numbers defined as RP_LONG_CHIRP_SAMPLES_3KM, RP_SHORT_CHIRP_SAMPLES, RP_FFT_SIZE, RP_LONG_SEGMENTS_3KM in radar_params.vh. A change on one side would silently desync the .mem files from the RTL sample counts. The script now parses radar_params.vh for integer RP_* macros and derives chirp durations from LONG_CHIRP_SAMPLES / FS_SYS. Physical baseband constants (CHIRP_BW, FS_SYS, SCALE) stay hardcoded since they are chirp-design properties, not FPGA sizing. Regenerated .mem files are byte-identical to pre-change output. 32/32 regression PASS.