Files
PLFM_RADAR/9_Firmware/9_2_FPGA
Jason a5a5e96a57 Fix ddc_input_interface 18->16 bit overflow: add saturation at positive full scale
Bug: rounding logic 'adc_i <= ddc_i[17:2] + ddc_i[1]' overflows when
ddc_i[17:2]=0x7FFF and ddc_i[1]=1, causing 0x7FFF+1=0x8000 (sign flip
from max positive to most negative value).

Fix: add explicit saturation — clamp to 0x7FFF when truncated value is
max positive and round bit is set. Negative values cannot overflow since
rounding only moves toward zero.

New testbench: tb_ddc_input_interface.v with 26 tests covering rounding,
truncation, overflow saturation at positive boundary, negative full scale,
valid synchronization, and sync error detection.
2026-03-16 18:14:06 +02:00
..
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-10 01:31:50 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-10 01:35:26 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00
2026-03-09 00:17:39 +00:00