Jason
7742b517b6
fix(fpga): implement 5 P0 invariant fixes with adversarial testbenches
Fixes 5 critical cross-layer invariant violations found during
system-level analysis. Each fix has a dedicated adversarial testbench
that actively tries to break the fix under race conditions, reset
mid-operation, overflow, and pathological input patterns.
RTL fixes:
- Fix #1: Replace flawed cdc_adc_to_processing with Gray-coded async
FIFO (cdc_async_fifo) for DDC 400->100 MHz CDC path. Pre-fetch
show-ahead architecture with CDC-safe registered reads.
- Fix #2: XOR toggle detection for mc_new_chirp in matched filter
(cross-clock-domain safe vs level-sensitive).
- Fix #3: ST_WAIT_LISTEN state with configurable listen_delay to
prevent matched filter re-trigger during chirp dead time.
- Fix #4: Overlap-save output trim in matched filter to suppress
circular convolution artifacts at segment boundaries.
- Fix #7: Falling-edge frame_complete pulse in doppler_processor
(was stuck high, causing continuous AGC resets).
RTL cleanup:
- Refactor CDC synchronizer arrays from memory arrays to scalar regs
for explicit ASYNC_REG flop naming and synthesis constraint clarity.
Testbenches (70 checks total, all passing):
- tb_p0_async_fifo.v: 20 checks (fill, overflow, reset, streaming,
show-ahead capacity, pathological data patterns)
- tb_p0_mf_adversarial.v: 33 checks (toggle detection, listen state,
overlap trim, rapid chirp sequences, reset recovery)
- tb_p0_frame_pulse.v: 17 checks (pulse width, idle behavior,
processing duration sweep, regression vs old stuck-high bug)
Regression: 24/24 pass (--quick), 57/57 existing CDC tests pass.
Golden references updated for doppler output timing change.
2026-04-17 01:53:06 +05:45
..
2026-04-14 00:08:26 +05:45
2026-04-06 23:15:50 +03:00
2026-04-13 19:24:11 +05:45
2026-04-17 01:53:06 +05:45
2026-03-19 11:31:46 +02:00
2026-04-07 05:17:11 +03:00
2026-03-19 22:59:46 +02:00
2026-04-14 00:08:26 +05:45
2026-04-17 01:53:06 +05:45
2026-03-20 05:24:08 +02:00
2026-03-20 01:45:00 +02:00
2026-04-13 19:24:11 +05:45
2026-03-16 22:24:22 +02:00
2026-04-17 01:53:06 +05:45
2026-03-16 18:14:06 +02:00
2026-04-17 01:53:06 +05:45
2026-03-17 13:48:47 +02:00
2026-03-20 00:20:59 +02:00
2026-03-27 23:05:28 +02:00
2026-03-16 10:25:07 +02:00
2026-04-07 14:45:47 +03:00
2026-04-14 00:08:26 +05:45
2026-03-17 20:11:13 +02:00
2026-03-18 01:28:42 +02:00
2026-03-19 10:31:16 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-04-17 01:53:06 +05:45
2026-03-16 10:25:07 +02:00
2026-03-20 16:39:17 +02:00
2026-03-17 23:51:04 +02:00
2026-03-20 01:45:00 +02:00
2026-03-19 23:54:48 +02:00
2026-04-16 00:33:27 +05:45
2026-04-13 19:24:11 +05:45
2026-03-18 03:57:26 +02:00
2026-03-19 16:47:59 +02:00
2026-03-21 20:43:52 +02:00
2026-04-16 00:33:27 +05:45
2026-03-17 19:38:09 +02:00
2026-03-20 04:38:35 +02:00
2026-04-17 01:53:06 +05:45
2026-04-13 23:35:10 +05:45
2026-03-16 19:53:40 +02:00
2026-03-16 19:53:40 +02:00
2026-04-13 19:24:11 +05:45
2026-04-14 00:08:26 +05:45
2026-04-07 02:51:48 +03:00