Coefficients used in the FIR filter fdatool generate Xilinx IP Core

  1. After the MATLAB command window fdatool press Enter to open "Filter Designer & Analysis Tool" tool interface:
    Write pictures described here
  2. Clicking on the left of the Set quantization parameter, set Filter arithmetic operation is a numerical Fixed-point (fixed point, floating-point because it is not directly operate some of the FPGA, using fixed point only, with reference to http: //blog.csdn. NET / gsh_hello_world / Article This article was / the Details / 78,742,769 ):
    Write pictures described here
  3. Click on the lower left corner Design filter, filter parameter set into the page, which is provided at the sampling frequency (Fs of), the passband frequency (fpass), stop band frequency (Fstop), passband attenuation (A PASS) and a stop-band attenuation (Astop) and other parameters, and click on the bottom of the "Design filter" button to generate filter coefficients:
    Write pictures described here
  4. Targets -> XILINX Coefficient (.COE) File coe export file, this file is the coefficient fixed point hexadecimal representation of each data length is 16 bits (determined by Numerator word length), which is the actual floating point data 17 left obtained (by the Numerator frac. length determined), for example, the first floating point data is a real coefficient 0.001, expressed as a fixed point 0x0081 ((int) 0.001 * 2 ^ 17 = 131 = 0x0081, i.e., left 17 0.001 ):
    Write pictures described here
  5. You can also click File -> Export to export the filter coefficients matlab workspace workspace, the shortcut keys Ctrl + E, derived in this way is actually floating point data:
    Write pictures described here
  6. In a new ISE IP core FIR filter, disposed in a first page "Select Source" to "COE File", then the following step generated on the selected file to coe:
    Write pictures described here
    after the step of generating a reference IP core blog : http://blog.csdn.net/weiweiliulu/article/details/40151053
Published 146 original articles · won praise 244 · Views 1.01 million +

Guess you like

Origin blog.csdn.net/GSH_Hello_World/article/details/78746054