Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Design Examples   |   mySupport   |   Reference Designs  

 Products
      MAX/MAX II
      Stratix/Stratix GX
      Nios II
  
 Functionality
      Arithmetic
      Memory
      Bus & I/O
      Logic
      Interfaces & Peripherals
      DSP
      Communications
      PLL & Clocking
  
 Design Entry
      Quartus II Project
      Tcl
      VHDL
      Verilog HDL
      C Code Examples
      DSP Builder
      TimeQuest
   On-Chip Debugging
  
 Simulation Tools
      Mentor Graphics ModelSim
      Cadence NCsim
      Synopsys VCS
  
 Legacy Examples
      Graphic Editor
      AHDL
  

Verilog HDL: Polyphase Interpolation FIR Filter

In a polyphase interpolation filter the output sample rate is n times the input sample rate, with n being the interpolation factor. Polyphase filters can simplify the overall design and reduce the number of computations needed. This document describes the implementation of a 16-tap low-pass finite impulse response (FIR) filter using four polyphase interpolation filter banks.

A single DSP block can implement up to four taps. By cycling the coefficients on every cycle of the 4x clock, it can implement the 16-tap FIR filter. The coefficient-loading schedule is shown in Table 1. Input samples and data are loaded in parallel and can be up to 18 bits wide.

Table 1. Coefficient-Loading Schedule for Interpolation Polyphase Filter
Cycle of 4x Clock Coefficients to be Loaded
1, 5…… h(0), h(4), h(8), h(12)
2, 6…… h(1), h(5), h(9), h(13)
3, 7…… h(2), h(6), h(10), h(14)
4, 8…… h(3), h(7), h(11), h(15)

For more details, see the Implementing High-Performance DSP Functions in Stratix & Stratix GX Devices chapter of the Stratix Device Handbook.

Download the files used in this example:

Files in the download include:

  • inter_poly.v - Top-level design file
  • pll.v - Phase-locked loop (PLL) to generate 1x and 4x clock
  • mult_add.v - Multiply-add function implemented using altmult_add megafunction
  • rom0.v, rom1.v, rom2.v, rom3.v - ROM blocks to store filter coefficients
  • rom1.mif, rom1.mif, rom2.mif, rom3.mif - Memory initialization file for filter coefficients
  • inter_poly.m - MATLAB script to verify functionality of design

Figure 1 illustrates the inter_poly top-level block diagram.

Figure 1. inter_poly Top- Level Block Diagram

Figure 1. inter_poly Top- Level Block Diagram

Table 2 contains the polyphase interpolation FIR filter design example port listing.


Table 2. Polyphase Interpolation FIR Filter Design Example Port Listing
Port Name Type Description
x0[17..0] Input Signed 18-bit input data is shifted in serially using the shift register within the DSP block
clk Input Clock
clken Input Clock enable
reset Input Reset
load_data Output When asserted, the filter is ready to accept data on the x0 port
result[25..0] Output Output of the interpolation FIR filter


For more information on using this example, go to:


Feedback

Did this information help you?

If not, please log onto mySupport to file a technical request or enhancement.


Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.

  Please Give Us Feedback