About the Advanced PLL Interface

The Trion has 5 available PLLs to synthesize clock frequencies.

Trion FPGAs have PLLs to synthesize clock frequencies. The number of PLLs depends on the FPGA and package.

Note: You can cascade the PLLs in Trion FPGAs. To avoid the PLL losing lock, Efinix recommends that you do not cascade more than two PLLs.

You can use the PLL to compensate for clock skew/delay via external or internal feedback to meet timing requirements in advanced application. The PLL reference clock has up to four sources. You can dynamically select the PLL reference clock with the CLKSEL port. (Hold the PLL in reset when dynamically selecting the reference clock source.)

One of the PLLs can use an LVDS RX buffer to input it’s reference clock.

Depending on the package, one or more of the PLLs can use an LVDS RX buffer to input it’s reference clock.

The PLL consists of a pre-divider counter (N counter), a feedback multiplier counter (M counter), a post-divider counter (O counter), and output divider.

Note: Refer to Interface Floorplan for the location of the PLLs on the die. Refer to Table 1 for the PLL reference clock resource assignment.
Note: Refer to Interface Floorplans for the location of the PLLs on the die.

Figure 1. Advanced PLL Block Diagram

The counter settings define the PLL output frequency:

Internal Feedback Mode Local and Core Feedback Mode Where:
FPFD = FIN / N
FVCO = FPFD x M
FOUT = (FIN x M) / (N x O x C)
FPLL = FVCO / O
FPFD = FIN / N
FVCO = (FPFD x M x O x CFBK ) 1
FOUT = (FIN x M x CFBK) / (N x C)
FPLL = FVCO / O
FVCO is the voltage control oscillator frequency
FOUT is the output clock frequency
FIN is the reference clock frequency
FPFD is the phase frequency detector input frequency
FPLL is the post-divider PLL frequency
C is the output divider
O is the post-divider
M is the multiplier
N is the pre-divider
CFBK is the output divider for CLKOUT0
Note: FIN must be within the values stated in PLL Timing and AC Characteristics.

Note: The reference clock input must be within the values stated in the PLL Timing and AC Characteristic section of your Trion® FPGA Data Sheet.

Figure 2. Advanced PLL Interface Block Diagram

Table 1. Advanced PLL Signals (Interface to FPGA Fabric)
Signal Direction Description
CLKIN[3:0] Input Reference clocks driven by I/O pads or core clock tree.
CLKSEL[1:0] Input You can dynamically select the reference clock from one of the clock in pins.
RSTN Input Active-low PLL reset signal. When asserted, this signal resets the PLL; when de-asserted, it enables the PLL. De-assert only when the CLKIN signal is stable.
Connect this signal in your design to power up or reset the PLL. Assert the RSTN pin for a minimum pulse of 10 ns to reset the PLL. Assert RSTN when dynamically changing the selected PLL reference clock.
FBK Input Connect to a clock out interface pin when the PLL feedback mode is not internal.
CLKOUT0
CLKOUT1
CLKOUT2
Output PLL output. The designer can route these signals as input clocks to the core's GCLK network.
LOCKED2 Output Goes high when PLL achieves lock; goes low when a loss of lock is detected; remains at previous state if the CLKIN goes discontinuous. Connect this signal in your design to monitor the lock status.
This signal is not synchronized to any clock and the minimum high or low pulse width of the lock signal may be smaller than the CLKOUT’s period.
Table 2. Advanced PLL Interface Designer Settings - Properties Tab
Parameter Choices Notes
Instance Name User defined
PLL Resource The resource listing depends on the FPGA you choose.
Clock Source External PLL reference clock comes from external source through the REFCLK pin. Select the available external clock.
Dynamic PLL reference clock comes from up to four possible sources (external and core), and are controlled by the clock select bus. Specify the clock selector and core clock names.
Core PLL reference clock comes from the core. Specify the core clock pin name.
Automated Clock Calculation Pressing this button launches the PLL Clock Caclulation window. The calculator helps you define PLL settings in an easy-to-use graphical interface.
Table 3. Advanced PLL Interface Designer Settings - Manual Configuration Tab
Parameter Choices Notes
Reset Pin Name User defined
Locked Pin Name User defined
Feedback Mode Internal PLL feedback is internal to the PLL resulting in no known phase relationship between clock in and clock out.
Local PLL feedback is local to the PLL. Aligns the clock out phase with clock in.
Core PLL feedback is from the core. The feedback clock is defined by the COREFBK connection, and must be one of the three PLL output clocks. Aligns the clock out phase with clock in and removes the core clock delay.
Reference clock Frequency (MHz) User defined
Multiplier (M) 1 - 255 (integer) M counter.
Pre Divider (N) 1 - 15 (integer) N counter.
Post Divider (O) 1, 2, 4, 8 O counter. The value must be 2 or higher if you enable more than 1 PLL output.
Clock 0, Clock 1, Clock 2 On, off Use these checkboxes to enable or disable clock 0, 1, and 2.
Pin Name User defined Specify the pin name for clock 0, 1, or 2.
Divider (C) 1 to 256 Output divider.
Phase Shift (Degree) 0, 45, 90, 135, 180, or 270 Phase shift CLKOUT by 45°, 90°, 135°, 180°, or 270°. The phase shifts are supported with the following C divider settings:
C divider = 2 : 90°, 180°, and 270°
C divider = 4 : 45°, 90°, and 135°
C divider = 6 : 90°
To phase shift 225°, select 45° and invert the clock at the destination.
To phase shift 315°, select 135° and invert the clock at the destination.
Use as Feedback On, off
Notice: Refer to the device data sheet for the list of PLL reference clock assignments.
Table 4. PLL Reference Clock Resource Assignments
PLL REFCLK1 REFCLK2
PLL_BR0 Differential: GPIOB_CLKP0, GPIOB_CLKN0
Single Ended: GPIOB_CLKP0
GPIOR_157_PLLIN
PLL_TR0 GPIOR_76_PLLIN0 GPIOR_77_PLLIN1
PLL_TR1 GPIOR_76_PLLIN0 GPIOR_77_PLLIN1
PLL_TL0 GPIOL_74_PLLIN0 GPIOL_75_PLLIN1
PLL_TL1 GPIOL_74_PLLIN0 GPIOL_75_PLLIN1
1 (M x O x CFBK) must be ≤ 255.
2 The circuitry that generates the lock signal relies on a reference clock edge to transition the lock signal. A sudden removal of the reference clock will result in there being no positive clock edge with which to change the lock state from 1 back to 0. Therefore, the lock signal will remain on 1.