c983a3c705
Phase 0+ timing optimization (attempts #13-22 + implementation): NCO (nco_400m_enhanced.v): - 4-stage pipeline: DSP48E1 accumulate -> LUT read -> negate -> quadrant MUX - DSP48E1 phase accumulator in P=P+C mode (eliminates 8-stage CARRY4 chain) - Registered phase_inc_dithered to break cascaded 32-bit add path DDC (ddc_400m.v): - Direct DSP48E1 instantiation for I/Q mixers (AREG=1, BREG=1, MREG=1, PREG=1) - CEP=1, RSTP=!reset_n for proper pipeline control - 3-stage dsp_valid_pipe for PREG=1 latency - Behavioral sim model under ifdef SIMULATION for Icarus compatibility CIC (cic_decimator_4x_enhanced.v): - 28-bit accumulators (was 36) per CIC width formula: 18 + 5*log2(4) = 28 - Removed integrator/comb saturation (CIC uses wrapping arithmetic by design) - Pipelined output saturation comparison CDC/ASYNC_REG: - ASYNC_REG attribute on all CDC synchronizer registers (cdc_modules.v, radar_system_top.v, usb_data_interface.v) - Sync reset in generate blocks (cdc_modules.v) Results: Vivado post-implementation WNS=+1.196ns, 0 failing endpoints, 850 LUTs (1.34%), 466 FFs (0.37%), 2 DSP48E1 (0.83%) on xc7a100t. All testbenches pass: 241/244 (3 known stub failures).
1.0 KiB
1.0 KiB
| 1 | sample | sin | cos | mag_sq |
|---|---|---|---|---|
| 2 | 0 | 14732 | 28898 | 1052126228 |
| 3 | 1 | 18868 | 26319 | 1048691185 |
| 4 | 2 | 22594 | 23170 | 1047337736 |
| 5 | 3 | 26319 | 18868 | 1048691185 |
| 6 | 4 | 28898 | 14732 | 1052126228 |
| 7 | 5 | 31113 | 9512 | 1058496913 |
| 8 | 6 | 32285 | 4808 | 1065438089 |
| 9 | 7 | 32757 | 0 | 1073021049 |
| 10 | 8 | 32285 | -4808 | 1065438089 |
| 11 | 9 | 31113 | -9512 | 1058496913 |
| 12 | 10 | 28898 | -14732 | 1052126228 |
| 13 | 11 | 26319 | -18868 | 1048691185 |
| 14 | 12 | 23170 | -22594 | 1047337736 |
| 15 | 13 | 18868 | -26319 | 1048691185 |
| 16 | 14 | 14732 | -28898 | 1052126228 |
| 17 | 15 | 9512 | -31113 | 1058496913 |
| 18 | 16 | 4808 | -32285 | 1065438089 |
| 19 | 17 | 0 | -32757 | 1073021049 |
| 20 | 18 | -32285 | -4808 | 1065438089 |
| 21 | 19 | -31113 | -9512 | 1058496913 |
| 22 | 20 | -28898 | -14732 | 1052126228 |
| 23 | 21 | -26319 | -18868 | 1048691185 |
| 24 | 22 | -23170 | -22594 | 1047337736 |
| 25 | 23 | -18868 | -26319 | 1048691185 |
| 26 | 24 | -14732 | -28898 | 1052126228 |
| 27 | 25 | -9512 | -31113 | 1058496913 |
| 28 | 26 | -4808 | -32285 | 1065438089 |
| 29 | 27 | 0 | -32757 | 1073021049 |
| 30 | 28 | -4808 | 32285 | 1065438089 |
| 31 | 29 | -9512 | 31113 | 1058496913 |
| 32 | 30 | -14732 | 28898 | 1052126228 |
| 33 | 31 | -18868 | 26319 | 1048691185 |
| 34 | 32 | -22594 | 23170 | 1047337736 |
| 35 | 33 | -26319 | 18868 | 1048691185 |
| 36 | 34 | -28898 | 14732 | 1052126228 |
| 37 | 35 | -31113 | 9512 | 1058496913 |
| 38 | 36 | -32285 | 4808 | 1065438089 |
| 39 | 37 | -32757 | 0 | 1073021049 |
| 40 | 38 | 4808 | 32285 | 1065438089 |
| 41 | 39 | 9512 | 31113 | 1058496913 |