AN 661: Implementing Fractional PLL Reconfiguration with Altera PLL and Altera PLL Reconfig IP Cores

ID 683640
Date 10/14/2019
Public
Document Table of Contents

1.3. Design Considerations

You must consider the following information when using fPLL reconfiguration:

  • Changing prescale and feedback counter settings (M, N, MFRAC), charge pump/loop filter settings affects the fractional PLL VCO frequency, which may require the fractional PLL to relock to the reference clock.
  • Changing the M counter phase shift setting changes the phase relationship of the output clocks with respect to the fractional PLL reference clock, which also requires the fractional PLL to relock. Although the exact effect of changing prescale and feedback counter settings (M, N) depends on the changes to the settings, any changes require relocking.
  • Adding phase shift using the M counter phase shift setting pulls in all the fractional PLL clock outputs with respect to the reference clock. This effectively adds a negative phase shift because the M counter is in the feedback path.
  • When making changes to the loop elements (M, N, MFRAC, M counter phase, Icp, R, C), Altera recommends disabling fractional PLL outputs to the logic array using the clkena signals available on the ALTCLKCTRL IP core. This recommendation eliminates the possibility of an over frequency condition affecting system logic while fractional PLL is regaining lock.
  • Changing the K counter values is only effective if the PLL is in fractional mode before reconfiguration.
  • Changing post-scale counters (C) and phase do not affect the fractional PLL lock status or VCO frequency. The resolution of phase shift is a function of VCO frequency, with the smallest incremental step equal to 1/8th of the VCO period.
  • Altera recommends resynchronizing the fractional PLL using the areset signal if the phase relationship between output clocks is important. Always assert the areset signal after each mgmt_reset operation or after each fPLL reconfiguration process, to reinitiate the fPLL locking process.
  • Fractional PLL reconfiguration interface supports a free running mgmt_clk signal, eliminating the need to precisely control the start and stop of mgmt_clk signal.
  • Changing the M or N counter values affect all the output clock frequencies.
  • C counters can also be reconfigured individually.
  • You can perform phase shifting even if C counter is set to 1 and bypass is enabled.
  • When the PLL has two clocks with 0 degree initial phase shift between the clocks, the Fitter synthesizes away the second clock automatically. To prevent the clocks from merging, Altera recommends manually performing location constraint for each of the PLL output counters which share the same frequency and phase shift.
  • Readback counter operation needs at least three scanclk cycle latency.
  • In waitrequest mode, the mgmt_waitrequest signal deasserts when PLL reconfiguration is complete. If the PLL loses lock after reconfiguration is complete, assert the mgmt_waitrequest signal again until the PLL locks. There may be a brief period after PLL reconfiguration is complete, but before the PLL has lost lock, when the mgmt_waitrequest signal is de-asserted. Altera recommends allowing sufficient time for the PLL to lock after PLL reconfiguration is complete before performing a new Avalon read or write operation.
  • In polling mode, the status register changes from 0 (busy) to 1 (ready) when PLL reconfiguration is complete. If the PLL loses lock after reconfiguration is complete, the status register is at 0 (busy) until the PLL locks. There may be a brief period after PLL reconfiguration is complete, but before the PLL has lost lock, when the status register is at 1 (ready). Altera recommends allowing sufficient time for the PLL to lock after PLL reconfiguration is complete before performing a new Avalon read or write operation.