T20 PLL

The T20 has 3, 5, or 7 available PLLs (depending on the package) to synthesize clock frequencies.

Note: You can cascade the PLLs in T20 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.

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 T20 Interface Floorplans for the location of the PLLs on the die. Refer to Table 1 for the PLL reference clock resource assignment.

Figure 1. 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 T20 PLL Timing and AC Characteristics.

Figure 2. PLL Interface Block Diagram

Table 1. 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. 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. 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
Table 4. PLL Reference Clock Resource Assignments (W80)
PLL REFCLK1 REFCLK2
PLL_TR0 GPIOR_76_PLLIN0 GPIOR_77_PLLIN1
PLL_TR1 GPIOR_76_PLLIN0 GPIOR_77_PLLIN1
PLL_TL0 GPIOL_74_PLLIN0 N/A
Table 5. PLL Reference Clock Resource Assignments (Q100F3, Q144, F169 and F256)
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
Table 6. PLL Reference Clock Resource Assignments (F324)
PLL REFCLK0 REFCLK1
PLL_BL0 GPIOL_15_PLLIN0
PLL_BR03 GPIOR_138_PLLIN0 Single-ended: GPIOB_TXP09_CLK0
PLL_BR1 GPIOR_139_PLLIN1 Single-ended: GPIOB_TXP15_CLK1_CDI15
PLL_BR2 GPIOR_140_PLLIN2 Single-ended: GPIOB_TXP19_CLK2
PLL_TR0 GPIOR_118_PLLIN0
Differential: GPIOT_RXP08_CLKP0, GPIOT_RXN08_CLKN0
Single-ended: GPIOT_RXP08_CLKP0
PLL_TR1 GPIOR_119_PLLIN1
Differential: GPIOT_RXP17_CLKP1, GPIOT_RXN17_CLKN1
Single-ended: GPIOT_RXP17_CLKP1
PLL_TR2 GPIOR_120_PLLIN2
Differential: GPIOT_RXP25_CLKP2, GPIOT_RXN25_CLKN2
Single-ended: GPIOT_RXP25_CLKP2
Table 7. PLL Reference Clock Resource Assignments (F400)
PLL REFCLK0 REFCLK1
PLL_BL0 GPIOL_15_PLLIN0 GPIOL_19_PLLN1
PLL_BR03 GPIOR_138_PLLIN0 Single-ended: GPIOB_TXP09_CLK0
PLL_BR1 GPIOR_139_PLLIN1 Single-ended: GPIOB_TXP15_CLK1_CDI15
PLL_BR2 GPIOR_140_PLLIN2 Single-ended: GPIOB_TXP19_CLK2
PLL_TR0 GPIOR_118_PLLIN0
Differential: GPIOT_RXP08_CLKP0, GPIOT_RXN08_CLKN0
Single-ended: GPIOT_RXP08_CLKP0
PLL_TR1 GPIOR_119_PLLIN1
Differential: GPIOT_RXP17_CLKP1, GPIOT_RXN17_CLKN1
Single-ended: GPIOT_RXP17_CLKP1
PLL_TR2 GPIOR_120_PLLIN2
Differential: GPIOT_RXP25_CLKP2, GPIOT_RXN25_CLKN2
Single-ended: GPIOT_RXP25_CLKP2
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.
3 PLL_BR0 can be used as the PHY clock for DDR DRAM block.