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
  

Accelerated FIR with Built-in Direct Memory Access Example

The finite impulse response (FIR) filter is a common algorithm used in digital signal processing (DSP) systems. In this example, a FIR filter has been integrated into a single SOPC Builder component containing Avalon® Memory-Mapped (Avalon-MM) read and write masters. The read master is responsible for supplying the filter with input data, while the write master is responsible for writing the filter response back to memory.  Since the filter has Avalon mastering capabilities, you do not need to use a separate direct memory access (DMA) engine to accomplish the filter operation.

When a filter is implemented in software, it requires many clock cycles to complete the calculation of a single output. Using an FPGA, all of these operations can occur concurrently with up to one output calculated every clock cycle. You can implement computationally complex algorithms in hardware as well to:

  1. Increase the overall system performance
  2. Offload the Nios® II embedded processor so that it can perform other tasks
  3. Decrease the overall design frequency to reduce power consumption

To compile the software, you must have the Nios II Embedded Design Suite (EDS) installed. You can download it for free.

Although this design performs filter operations, you can also reuse the accelerator for your own data transforms. Simply remove the transform block containing the FIR filter and replace it with your own custom logic. You can also reuse the DMA control software. For more information about replacing the FIR filter, refer to the transform.v file supplied with the example design.

Hardware Design Specifications

  • Nios Development Board, Cyclone® II or Stratix® II FPGA Edition
  • Nios II core: Nios II/f debug-enabled, 4 KB I-cache, 2 KB D-cache
  • SSRAM: 2 MB
  • DDR SDRAM: 32 MB
  • Timestamp Timer: 10 us resolution
  • JTAG UART
  • Phase-Locked Loop (PLL)
  • System ID
  • Custom FIR Hardware Accelerator with Avalon-MM Masters

Hardware Acceleration Results

In this example (Figure 1), the hardware accelerator is capable of operating over 500 times faster than the equivalent FIR algorithm compiled for the Nios II processor.

Figure 1.  Accelerated FIR with Built-in DMA Block Diagram

Figure 1.  Accelerated FIR with Built-in Direct Memory Access Block Diagram

View Full Size

Using This Design Example

Download the Accelerated FIR with Built-in DMA Design Example (.zip file)

Download the Accelerated FIR with Built-in DMA Design Example README (.txt file)

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

The .zip file contains all the necessary hardware and software files to reproduce the example, as well as a readme.txt file. The readme.txt file contains instructions for re-building the design.

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.

  请填写反馈意见