LibreVNA/FPGA/VNA
Roger Henderson 6c06293179 add per-point source PLL phase adjustment support
Adds ability to set phase adjustment on Source PLL for each sweep point.
When sourcePhase != 0, the FPGA executes a CDM toggle sequence after
normal PLL register load to apply the specified phase offset.

Changes:
- MAX2871.vhd: add PHASE_ADJUST input and CDM toggle state machine
- Sweep.vhd: extract phase from config, generate phase adjust signal
- SPIConfig.vhd: handle 112-bit config data (was 96-bit)
- top.vhd: wire phase adjustment signals, widen data buses
- SweepConfigMem.xco: update BRAM width to 112 bits
- FPGA.cpp/hpp: add sourcePhase parameter to WriteSweepConfig

Phase formula: phase_degrees = (sourcePhase / M) * 360
For 180° shift: sourcePhase = M/2

Note: SweepConfigMem IP core must be regenerated before FPGA build.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:57:10 +13:00
..
ipcore_dir add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
DFT.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
Flattop.dat Window coefficient files added 2020-10-29 20:07:41 +01:00
Hann.dat Window coefficient files added 2020-10-29 20:07:41 +01:00
Kaiser.dat Window coefficient files added 2020-10-29 20:07:41 +01:00
MAX2871.vhd add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
MCP33131.vhd WIP: rework 2.LO + add dwell time 2025-01-02 19:16:53 +01:00
ResetDelay.vhd Basic DFT spectrum analysis working 2020-11-08 14:38:31 +01:00
Sampling.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
spi_slave.vhd Working dwell time feature 2025-01-03 14:36:10 +01:00
SPIConfig.vhd add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
Sweep.vhd add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
Synchronizer.vhd FPGA project adapted to new pinout 2020-08-30 16:19:18 +02:00
Test_DFT.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
Test_MAX2871.vhd FPGA project adapted to new pinout 2020-08-30 16:19:18 +02:00
Test_MCP33131.vhd improve MCP33131 sample timing 2024-02-26 15:37:07 +01:00
Test_PLL.vhd FPGA project adapted to new pinout 2020-08-30 16:19:18 +02:00
Test_Sampling.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
Test_SinCos.vhd FPGA project adapted to new pinout 2020-08-30 16:19:18 +02:00
Test_SPI.vhd Working dwell time feature 2025-01-03 14:36:10 +01:00
Test_SPICommands.vhd Working dwell time feature 2025-01-03 14:36:10 +01:00
Test_Window.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
Test_Windowing.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00
top.bin fix order of LO1 and source unlock LEDs 2025-01-05 18:15:30 +01:00
top.ucf Working dwell time feature 2025-01-03 14:36:10 +01:00
top.vhd add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
VNA.gise fix order of LO1 and source unlock LEDs 2025-01-05 18:15:30 +01:00
VNA.xise WIP: rework 2.LO + add dwell time 2025-01-02 19:16:53 +01:00
window.vhd Windowing option added to sampling 2020-09-16 16:13:06 +02:00
Windowing.vhd Use full multiplier bitwidth for windowing + increased number of DFT bins 2020-11-08 14:38:31 +01:00