Design of FIR digital filter based on FPGA (Part 1)

Publisher:星辰耀眼Latest update time:2013-11-04 Keywords:FPGA  FIR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In the Matlab/Simulink environment, the DSP Builder module was used to build the FIR model, and the FIR filter was designed according to the FDATool tool. Then, system-level simulation and ModelSim functional simulation were performed. The simulation results show that the filtering effect of the digital filter is good. The model was converted into VHDL language through SignalCompiler and added to the hardware design of FPGA. The real-time result waveform of the digital filter was obtained from the virtual logic analysis tool SignalTapⅡ in QuartusⅡ software, and the result was in line with expectations.

  0 Introduction

  In the process of information signal processing, digital filter is the most widely used method in signal processing. Through filtering operation, a set of input data sequence is transformed into another set of output data sequence, thereby realizing the change of signal properties in time domain or frequency domain. Commonly used digital filters can be divided into two types: finite impulse response (FIR) filter and infinite impulse response (IIR) filter. Among them, FIR digital filter has a strict linear phase, and the non-recursive structure also ensures the stability of operation. In applications with high real-time requirements, programmable chip FPGA is used for implementation. Compared with the implementation method of DSP chip or dedicated chip, it has the advantages of high speed, high precision and high flexibility. This paper adopts a method based on FPGA and DSP Builder to design FIR digital filter, adopts hierarchical and modular design ideas, follows the design and development process of DSP Builder, establishes a model in Matlab/Simulink and performs system-level simulation, and then performs Verilog language conversion. After ModelSim simulation verification, the real-time test of FIR digital filter is realized.

  1 Basic principles and structure of FIR digital filter

  For a FIR filter system, its impulse response is always finite, and its system function can be written as:

  For a FIR filter system, its impulse response is always finite, and its system function can be written as

  Where: x(n) is the input sampling sequence; h(i) is the filter coefficient; k is the filter order; y(n) represents the output sequence of the filter.

  Figure 1 is a structural block diagram of a k-order FIR digital filter.

  Figure 1 is a block diagram of the structure of a k-order FIR digital filter

  2 FIR digital filter design process

  The design process mainly involves the development and design of tool software such as Matlab/Simulink, DSPBuilder and Quartus II. The entire design process, including system description to hardware implementation, can be completed in a complete design environment, as shown in Figure 2.

  Figure 2 DSP Builder design flow chart

  (1) Design input in Matlab/Simulink, that is, create a model file with the extension mdl in the Simulink environment of Matlab, and call the graphical modules (Block) in Altera DSP Builder and other Simulink libraries in a graphical way to form a system-level or algorithm-level design block diagram (or Simulink design model).

  (2) Use Simulink's graphical simulation and analysis functions to analyze the correctness of the design model and complete model simulation, also called system-level simulation.

  (3) A key step in DSP Builder design implementation is to convert Simulink model files into Verilog files, a universal hardware description language, through Signal-Compiler.

  (4) The converted Verilog source code is functionally simulated using ModelSim software to verify the correctness of the Verilog file. The next few steps are to synthesize, compile and adapt the Verilog RTL code and simulation files generated by the above design in Quartus II tool software, generate a file with the extension .sof and load it into the FPGA hardware system.

  3 Detailed Design of FIR Digital Filter

  3.1 FIR digital filter module design and system-level simulation

  According to the principle of FIR digital filter, a 16-order FIR digital filter structure is built in the Simulink environment, as shown in Figure 3.

  In the process of building the model, two 8-bit Shift Taps shift register modules were used to decompose the input signal, and then the algorithm calculation was performed according to the principle of digital filter.

  Figure 3 Simulink structure diagram of FIR digital filter

Keywords:FPGA  FIR Reference address:Design of FIR digital filter based on FPGA (Part 1)

Previous article:Design of high-definition digital video display interface based on DM6446 (Part 2)
Next article:Design of FIR digital filter based on FPGA (Part 2)

Recommended ReadingLatest update time:2024-11-16 15:55

Design and FPGA Implementation of Multi-Rate Convolutional Encoder in L-DACS1
introduction In order to solve the high communication speed and high bandwidth requirements brought about by the growth of ground-to-air data transmission business, the International Civil Aviation Organization (ICAO) requires civil aviation communications to transition from aeronautical telegraph dedicated networks t
[Power Management]
Design and FPGA Implementation of Multi-Rate Convolutional Encoder in L-DACS1
Design and Implementation of VGA Image Controller Based on CPLD/FPGA
Using programmable devices CPLD/FPGA to implement VGA color display controller has many practical applications in industrial sites. By using hardware description language VHDL to design and simulate programmable devices for functional modules, VGA display controllers can display various graphics, images, texts, and ach
[Embedded]
Interface Design between Quad-speed SRAM and Spartan3 FPGA
The rapid development of the Internet has greatly promoted the increase in demand for high-speed data communication systems, and also promoted the development of faster processors, which has promoted the improvement of memory interface speeds. As the processors in these systems have improved the performance of the syst
[Embedded]
Interface Design between Quad-speed SRAM and Spartan3 FPGA
FPGA-based c-
    introduction   As the types of household appliances in people's lives increase day by day, the types of remote controls also increase accordingly. Different types of remote controls generally cannot replace each other, which brings many inconveniences to people's lives.   The functions of various remote contr
[Microcontroller]
FPGA-based c-
Software design and application of an embedded display system
introduction Embedded devices have developed rapidly and penetrated into every corner of life due to their affinity with users and natural human-computer interaction interface. The design method introduced in this paper is to use the high-performance 8-bit microcontroller C8051F120 as the core processor, SRAM as the
[Microcontroller]
Software design and application of an embedded display system
FPGA Verification Implementation of an ARM+DSP Collaborative Architecture
The FPGA implementation based on ARM+DSP architecture is introduced. The application algorithm is verified on it, and the ARM is responsible for the control of the entire program and the DSP is responsible for the calculation of the entire program, which maximizes the respective advantages of ARM and DSP. ARM g
[Embedded]
FPGA Verification Implementation of an ARM+DSP Collaborative Architecture
LiDAR: The choice between FPGA and ASIC
Real-time processing of LiDAR point clouds, sometimes exceeding 1 million data points per second, requires a high level of computing to accelerate point cloud deep learning algorithms. LiDAR 3D point cloud data is processed by preprocessing through steps such as removing unnecessary data, filtering relevant data, and
[Automotive Electronics]
LiDAR: The choice between FPGA and ASIC
Research and Design of HD-SDI Down-conversion Based on FPGA
Abstract: A method of converting high-definition digital TV signals into standard-definition digital TV signals using FPGA is studied. The effective pixels and vertical lines of each line in the image are reduced by resampling and other technologies, completing the down-conversion from HD-SDI to SD-SDI. The design i
[Embedded]
Research and Design of HD-SDI Down-conversion Based on FPGA
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号