An UltraScale FPGA takes a 50 MHz active oscillator and synthesizes a 125 MHz clock with its MMCM. Firmware submits fifty-six dynamic phase requests, but the measured shift is smaller than expected. Another reference configuration gives a different shift for the same command count. Check the internal oscillator that sets the increment and whether each request actually completed. Either fault can occur with a correct output frequency.
Calculate phase increment from the VCO period
AMD defines an UltraScale interpolated fine phase step as one fifty-sixth of the VCO period. Changing only the output divider leaves the time increment unchanged but changes the step angle in the output cycle. Buffers and external paths add their own delays. Record the family and speed grade, feedback multiplier, input divider, and which output enables fine phase shift. Clock managers in other families can have different implementations.
Suppose the 50 MHz active oscillator feeds an undivided input, with feedback multiplication by twenty. The VCO runs at one gigahertz and has a one-nanosecond period. Divide the output by eight for 125 MHz with an eight-nanosecond period. One step is approximately 17.86 picoseconds. Fifty-six completed shifts give about one nanosecond. Relative to the eight-nanosecond output period, one step is around 0.804 degrees and fifty-six steps are forty-five degrees. Dividing the output period by fifty-six instead would give 142.9 picoseconds per step, eight times the correct value.
A second valid configuration can keep the same oscillator and output frequencies. Set the VCO to 1.25 GHz and divide by ten. Where permitted by the exact device, the time step is approximately 14.29 picoseconds and fifty-six steps move about 800 picoseconds. The counter sees the same output frequency in both configurations. Preserve the settings when comparing oscillator replacements.
Confirm requests using completion pulses
The interface uses PSEN, PSINCDEC, PSCLK, and PSDONE. AMD specifies asserting PSEN for one PSCLK cycle. PSDONE pulses for one cycle at completion, and another request can start afterward. Holding PSEN high or issuing new requests before completion invalidates the software count as proof of movement. With PSCLK at fifty megahertz, its period is twenty nanoseconds. Twelve cycles take roughly 240 nanoseconds. Fifty-six operations account for 13.44 microseconds, before additional control overhead.
Capture PSCLK, PSEN, direction, PSDONE, and counters in the FPGA. An external batch marker can correlate this with a scope record of clock edges. If software issued fifty-six requests but forty completed, a shift of around 714 picoseconds is plausible. If counts agree but movement is near zero, verify that the measured output enables fine shifting. Also check whether the reference route shifts in the same direction, hiding the change in a relative comparison.
Do not send the one-cycle completion pulse directly into slow software polling. Accumulate completion counts in the controlling clock domain or transfer a state that persists until acknowledged. As a baseline, issue isolated requests with a verified completion before each new request. If a fast script misses counts but the slow baseline works, investigate the control-domain crossing. If actual movement is right and only software logs miss pulses, repair the observation path.
Measure grouped shifts before quoting a single step
A single step of a few tens of picoseconds may be smaller than probe deskew residual. Keep amplitude, threshold, and reference path fixed. Record baseline and several groups of completed steps, such as fourteen, twenty-eight, and fifty-six. At a one-gigahertz VCO, expected shifts are a quarter, a half, and one nanosecond. Fit time against completed steps. Return to the baseline with reverse commands to check direction and repeatability. Near a full output period, the comparison can wrap. Save completed counts and pair edges consistently to identify this wrap.
When comparing outputs, make sure the reference is unaffected by this command. Choose a stable unshifted path and keep probing planes comparable. A shifted feedback path used as the reference can keep the displayed difference small. Apply a larger known movement in both directions first to show the fixture measures the intended path. Otherwise a precise small-step number still lacks an established reference.
Log the initial zero and several returns independently. If the apparent return error depends strongly on probes, standardize connections and thresholds first. A repeated split with fixed probing is better evidence for checking feedback and shift state.
Record VCO settings, completed responses, reference, measured grouped shifts, and measurement uncertainty. If a replacement oscillator still gives the correct frequency, check configuration and completion before interpreting a different slope. A receiver needing a precise offset must be accepted against measured time margin. A software command count alone is not that measurement.
