Mastering FPGA Clock Resources: DCM, PLL, PMCD, and MMCM
Xilinx provides a wide array of clock resources within their FPGA portfolio. Most designers will interact with these components at some point, but for those new to FPGA architecture, choosing between DCM, PLL, PMCD, and MMCM can be confusing. Understanding the specific use cases for each is the foundation of a reliable clocking strategy.
While these resources often overlap in functionality—such as frequency synthesis or jitter filtering—each is optimized for specific hardware requirements.
🛠️ Digital Clock Managers (DCM) #
The Digital Clock Manager (DCM) is designed to manage clock architecture, specifically for signal shaping and manipulation. A DCM contains a Delay-Locked Loop (DLL). This DLL can remove skew from the output clock based on the input signal, preventing clock distribution delays.
DLL vs. PLL Architecture #
A DLL functions similarly to a PLL but lacks a Voltage-Controlled Oscillator (VCO). While a PLL stores both phase and frequency information, a DLL only stores phase information. This makes the DLL slightly more stable than a PLL. Unlike some mixed-technology designs, Xilinx DCMs utilize an all-digital design.
Key Applications #
DCMs are versatile tools for several specific tasks:
- Digital Phase Shifting: Because DCMs can introduce precise delays into the clock path, they are ideal for generating row and column access clocks for DRAM.
- Digital Frequency Synthesis: You can use a DCM to multiply a low-frequency source to generate a high-frequency clock, or divide a high-frequency source down.
- Spread Spectrum Clocking (SSC): To reduce peak electromagnetic radiation (EMI), designers use spread spectrum clocks. The DCM can multiply an input SSC signal to generate a high-frequency internal clock while maintaining phase and frequency alignment.
- Clock Buffering and Distribution: DCMs can act as buffers between input pins and logic blocks to ensure proper rise/fall times. They can also be used to drive clocks to multiple components, balancing the load to prevent skew.
- Signal Conversion: A DCM can convert an input LVTTL clock signal into an LVDS clock signal for output.
⚖️ Phase Matching Clock Dividers (PMCD) #
The Phase Matching Clock Divider (PMCD) generates phase-matched divided clocks. This is similar to the frequency synthesis capabilities of a DCM but focuses on maintaining edge alignment and phase relationships between the input clock and other PMCD inputs.
In Xilinx devices like the Virtex-4, the PMCD provides specific division ratios: 1/2, 1/4, and 1/8 of the input frequency. These resources are often placed adjacent to DCMs in the same column, allowing the DCM output to drive the PMCD input directly. If your design does not require active deskewing, a PMCD alone may suffice for clock division.
🔄 Mixed-Mode Clock Managers (MMCM) #
The Mixed-Mode Clock Manager (MMCM) uses a PLL architecture to generate various clocks with specific phase and frequency relationships to a given input.
Series Differences #
The implementation of MMCM varies across FPGA families:
- Virtex-6: Contains two MMCMs. These do not support spread spectrum functionality; therefore, SSC on the input clock is passed directly to the output without filtering.
- Virtex-7: Contains one MMCM and one PLL. Unlike the Virtex-6, the Virtex-7 MMCM supports spread spectrum functionality.
Calibration Requirements #
For Virtex-6 designs, a calibration circuit is required to ensure the MMCM operates correctly after a user reset or power cycle. While newer versions of the ISE design suite (11.5 and higher) can insert this automatically, older versions require manual insertion of design files. When porting these designs to newer tools, you must manually remove these circuits or disable the auto-insertion attribute.
🌀 Phase-Locked Loops (PLL) #
PLLs are primarily used for frequency synthesis. A single PLL can generate multiple clocks from one input. When paired with a DCM, a PLL can also function as a jitter filter.
In Spartan-6 and Virtex-5 series, dedicated “DCM to PLL” and “PLL to DCM” paths exist. Notably, the PLL outputs in these specific devices are non-spread spectrum. While a PLL can replace a DCM in many scenarios, the choice depends on the specific requirement: if precise phase shifting is mandatory, the DCM is the correct choice.
🏗️ Design Migration and Compatibility #
Mastering the differences between these four resources is essential for hardware portability. Functionality is not always consistent across different FPGA series. For example, the DCM in a Spartan-6 supports spread spectrum clocks, whereas the DCM in a Virtex-5 does not.
When planning long-term product roadmaps, you must evaluate how these resources map across series. While the MMCM in Virtex-6 and 7 series offers some backward compatibility with older DCM designs, the multi-functional nature of these blocks means that “compatibility” varies depending on the specific clocking requirements (e.g., SSC, phase shift, or jitter filtering).
For systems requiring high-precision real-time clock management and hardware abstraction, engineers often integrate these FPGA clocking strategies with real-time operating systems like VxWorks.