Altera Home Page
文档资料 许可
在线购买 下载

  主页   |   产品   |   支持   |   最终市场   |   技术中心   |   教育与活动   |   公司介绍   |   在线购买  
  mySupport   |   器件   |   软件   |   IP   |   设计范例   |   参考设计  

 产品
      MAX/MAX II
      Stratix/Stratix GX
      Nios II
  
 功能
      算法
      存储器
      总线及I/O
      逻辑
      接口与外设
      DSP
      通信
      PLL & Clocking
  
 设计输入方法
      Quartus II软件工程
      Tcl
      VHDL
      Verilog HDL
      C Code 范例
      DSP Builder
      TimeQuest
   片内调试
  
 仿真工具
      Mentor Graphics ModelSim
      Cadence NCsim
      Synopsys VCS
  
 旧范例
      图形编辑器
      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:

The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.

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:

Design Examples Disclaimer

These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.

  请填写反馈意见