FPGA, CPLD, and ASIC solutions from Altera
  • Download Center
  • Literature
Sign in/register
myAltera Account
Welcome
  •   myAltera
  •   Logout
  • Products
    • Devices
    • Design Software
    • Intellectual Property
    • Development Kits/Cables
    • Design & Support Services
    • Literature
  • End Markets
    • Automotive
    • Broadcast
    • Computer & Storage
    • Consumer
    • Industrial
    • Medical
    • Military
    • Test & Measurement
    • Wireless
    • Wireline
  • Technology
    • DSP
    • External Memory
    • Embedded Processing
    • Transceivers
    • Parallel I/O
    • Signal Integrity
    • System Integration
  • Training
    • Training Courses
    • University Program
    • Webcasts & Videos
    • Demonstrations
    • Events Calendar
  • Support
    • Design & Support Resources
    • Knowledge Database
    • Devices
    • Design Software
    • Intellectual Property
    • Development Kits/Cables
    • Design Examples
    • Downloads
    • User Communities/Forums
    • mySupport
  • About Altera
    • About Us
    • Environmental
    • Customer Successes
    • Partners
    • Newsroom
    • Investor Relations
    • Jobs
    • Contact Us
  • Buy Online
    • Devices
    • Design Software
    • Development & Education Kits
    • Cables & Programming Hardware
    • Intellectual Property
  • Entire Site
  • Part Number
  • Knowledge Database
  • Support & Technical Docs
  • Forums & Wiki
Username:  
Password:  
 
Forgot my username or password
Don't have myAltera account? Register Now.
Enter your email address:

All Digital Phase-Locked Loop (ADPLL)

Home > Products > Intellectual Property > All Digital Phase-Locked Loop (ADPLL)

The phase-locked loop (PLL) is used many applications from cellular base stations to industrial systems and processes. A PLL is a feedback system that, under certain given conditions, dynamically reduces phase and/or frequency offset between a received signal and a locally generated carrier to zero. This is of crucial importance in communications systems receivers that suffer degradation in demodulated signal to noise ratio (SNR) due to phase error. The All-digital phase locked loop (ADPLL) is a phase lock loop implemented in purely digital circuitry and operating on finite precision digital words. A block diagram is shown in Figure 1.

Figure 1. ADPLL Block Diagram

ADPLL Block Diagram

The phase detector deduces the difference in phase between its two input signals. Phase detectors can be implemented in numerous ways, including an XOR gate implementation, a J/K flipflop phase detector, a digital multiplier, Nyquist-rate phase detector (NRPD), or a Hilbert transform phase detector. This reference design uses a digital multiplier that outputs a DC term proportional to the phase difference and series of higher frequency components. The high-frequency terms arising from multiplication in the phase detector are filtered out by the loop filter. The loop filter is usually a first or second order infinite impulse response (IIR) low-pass filter. The filter output is passed to the numerically controlled oscillator (NCO), adjusts phase and frequency to reduce phase error to zero, a condition known as phase lock.

For the locked condition to be attainable, the frequency of the reference signal must be within a defined distance from the free-running or open loop frequency of the NCO, known as the pull-in range. Another important parameter is the hold range, which defines how large the frequency deviation can be between the two signals before they unlock. The amount of time required for the loop to become locked is known as the pull-in time. These parameters can be strictly controlled by modifying the loop bandwidth of the ADPLL.

Design Files Provided

The ADPLL reference design files are located in the \refdesigns\pll\* folder. Table 1 describes the files provided with this reference design.

To download the reference design files, go to the NCO product page and click on the free test drive icon.

Table 1. ADPLL Reference Design Files
File Description
pll.gdf Top-level design file, which can be compiled and simulated in the MAX+PLUS® II or QuartusTM II software.
tbpll.v Verilog HDL testbench, which writes the input reference sinusoid and the locked output sinusoid to text files.
adpll.mdl Simulink model of the ADPLL, which can be used to test the IIR loop filter response for different design specifications.

The testbench instantiates a second NCO to generate the reference input sinusoid to which the loop locks.

Functional Description

In this design, an 8-bit digital multiplier is used as the phase detector. The loop filter is a first-order IIR digital filter resulting in a second order ADPLL overall. The NCO uses a small internal ROM-based architecture with a frequency modulation input and the following parameters:

  • Phase accumulator width: 24
  • ROM address width: 10
  • Magnitude precision: 8
  • Frequency modulation input width: 16

The output of the loop filter shifts the input free-running phase increment to the NCO (via its frequency modulation input) hence shifting its output frequency toward that of the input reference. This ADPLL has a free-running frequency of 40 kHz, a pull-in range of at least 3 kHz, and an acquisition time of 250 µs.

Using a multiplier as a phase detector gives a locked condition with a 90 degrees phase offset. You can compensate for the shift by initially passing the reference input signal through a Hilbert transformer, which has a magnitude response of 1 but shifts the phase of any signal by -90 degrees.

 
Rate This Page


  • IP & Reference Designs
    • All Intellectual Property
    • All Reference Designs
    • Bridges & Adapters
      • Memory Mapped
      • Streaming
    • DSP
      • Filters & Transforms
      • Error Detection/Correction
      • Modulation & Demodulation
      • Video & Image Processing
    • Embedded Processors
      • Nios II
        • Processor Cores
          • Fast CPU
          • Economy CPU
          • Standard CPU
        • Benefits
          • Low Cost
          • High Performance
          • Long Life Cycle
          • Flexibility
        • Software Tools
          • Nios II IDE
          • Nios II C2H Compiler
          • Software
        • Development Kits
        • End Markets
        • Customer Successes
        • Literature
      • 32/16-Bit Microprocessors
      • 8/4-Bit Microprocessors
    • Interface Protocols
      • Communications
      • Ethernet
      • High Speed
      • PCI
      • Serial
      • Audio & Video
    • Memory Controllers
      • DMA
      • Flash
      • On-Chip
      • SDRAM
      • SRAM
    • Peripherals
      • Debug & Performance
      • Display
      • Microcontroller Peripherals
      • Multiprocessor Coord.
  • About IP
    • Designing with IP
      • IP Base Suite
    • Evaluate and Download IP
    • IP Certifications
    • System Design
    • Request IP
  • IP Partners
    • About AMPP Program
    • List of IP Partners
    Please give us feedback
    Products | End Markets | Technology | Training | Support | About Altera | Buy Online
    Jobs | Investor Relations | Contact Us | Site Map | Privacy | Legal Notice
    Copyright © 1995-2010 Altera Corporation. All Rights Reserved.
    Altera Forum
    Altera
    Forum
    Twitter
    Twitter
    RSS
    RSS
    Facebook
    Facebook
    Flickr
    Flickr
    YouTube
    YouTube
    Email Updates
    Email
    Updates