Using the Fractional PLL Block

Titanium FPGA's PLL block lets you configure the reference clock, feedback options, frequency, and output clocks for the PLL. You set up the PLL using the PLL Clock Calculator, which provides an easy-to-use graphical way to specify the frequencies and other settings.

  • In the PLL's Properties tab, you specify general settings such as the instance name, PLL resource, clock source, and external clock.
  • You can invert any of the clock outputs by clicking Inverted for the clock output in the Output Clock Inversion box.
  • Clock outputs 3 and 4 can feed the global or regional clock network. Choose gclk (default)) or rclk under Connection Type.
  • Click the Automated Clock Calculation button to open the PLL Clock Calculator.

Reference Clock Settings

The PLL has four possible reference clocks. Depending on the PLL, one or two of the clocks can come from the FPGA core, and two or three can come from off chip. You select the clocks using the Clock Source drop-down box:

  • core—The PLL reference clock comes from the FPGA core.
  • external—Enables clock 0 or 1. The PLL reference clock comes from an external pin. The GUI displays the resource(s) that can be the reference clock.
    Note: In this mode, a GPIO block with a pll_clkin connection type must generate the reference clock(s). The software displays which resource(s) you can use (and the instance name if you have created it).
    1. Add a GPIO block.
    2. Enter the instance name.
    3. Choose input as the mode.
    4. Choose pll_clkin as the connection type.
    5. In the Resource Assigner, assign it to the resource shown in the PLL's Properties tab.
  • dynamic—Enables all four clocks; requires a clock selector bus to choose the clock dynamically. The GUI displays the resource(s) that can be the reference clock.

Advance Setting Tab: SSC

The fractional PLL supports spread-spectrum clocking. The available modes are:

  • Disable—Turn off spread-spectrum clocking.
  • Static—Always use spread-spectrum clocking.
  • Dynamic—Only use spread-spectrum clocking when activated by an enable signal.
Table 1. Spread Spectrum Clocking Options
Parameter Choices Description
SSC Modulation Frequency (KHz) User defined Enter the frequency.
SSC Modulation Amplitude (%) User defined Enter the amplitude.
SSC Spread Direction Up, Down (default), Center Indicate how the spectrum is applied to the waveform.
User SSC Enable Pin Name User defined Indicate the enable pin name.
Dynamic mode only.
Note: To use SSC, you must also enable fractional feedback mode (see Programmable Duty Cycle and Fractional Feedback).

Advance Setting Tab: Dynamic Reconfiguration

The fractional PLL supports a dynamic reconfiguration mode, which lets you change the PLL setting on the fly after initial boot-up without having to re-configure the FPGA. Turn on Enable to use this feature.

You need to enable the reset and lock signals !!!

Efinix provides the PLL Dynamic Reconfiguration core and the PLL Dynamic Reconfiguration Wizard to help you integrate this feature in your design.

Important: Refer to the PLL Dynamic Reconfiguration Core User Guide for details on how to use this feature and how to integrate the PLL Dynamic Reconfiguration Core and Interface Designer settings.
The PLL Dynamic Reconfiguration Core requires that you enable the PLL's reset and locked pins in the PLL Clock Calculator.
Table 2. Dynamic Reconfiguration Options
Parameter Choices Description
Enable On, off Turn on to enable dynamic reconfiguration.
Reference Clock Selector [1:0] Bus Name User defined Specify the bus name for the reference clock selector.
[2] Core Clock 0 Name User defined Specify the core clock name.
[3] Core Clock 1 Name User defined Specify the core clock name.
Configuration Clock Pin Name User defined Specify the configuration clock name.
Configuration Data Output Pin Name User defined Specify the configuration data output name.
Configuration Select Pin Name User defined Specify the configuration select name.
Reconfiguration Wizard Click to open the wizard.

The PLL Dynamic Reconfiguration Wizard helps you define one or more PLL configuration sets that you use later to dynamically change the PLL's comfiguration.

Figure 1. PLL Dynamic Reconfiguration Wizard

To use the wizard:
  1. Click Add to create a new configuration set.
  2. Enter the PLL settings. Because the settings are complicated, Efinix suggests that you create a configuration first using the PLL Clock Calculator, note the resulting settings, and then enter them into the wizard.
  3. Click Verify. The wizard checks your settings to make sure they are legal values. The results display in the Console.
  4. Specify the output file name (.hex) in the PLL Dynamic Reconfiguration File box or use the default.
  5. Click Export to save your configuration settings to the .hex file. Make note of the name; you specify this .hex file when you configure the PLL Dynamic Reconfiguration core.