Issues: FIR filter by HDL Coder on Redpitaya platform

7 ビュー (過去 30 日間)
TuDo Ma
TuDo Ma 2016 年 11 月 4 日
回答済み: Kiran Kintali 2021 年 5 月 24 日
My goal is to implement a modulation on FPGA hardware(Red Pitaya). So i tried some basic applications like sine generator and FIR filter using Matlab HDL Coder. The sine generator works fine, but the FIR filter (generated with filterDesigner) doesn't operate as wanted. The design you can see in the appendix, the initialization in Xilinx Vivado was:
FIR_filter (.clk(adc_clk), .reset(1'b0), .clk_enable(1'b1), .In(data_adc), .ce_out(), .Out(data_dac));
As you can see the filter quantization for input and output is set to 14-bit signed - fitting to adc/dac specification.
Now, although the input is in idle, the output signal is incorrect. There is an random shot of that noise appended.
Is that a problem of quantization, data type or data overflow? So what would be the correct setting?
Or are there other basic condition to take care at direct implementation with Verilog Code by Matlab HDL Coder?
That's the project: GitHub: FIR_Filter

回答 (1 件)

Kiran Kintali
Kiran Kintali 2021 年 5 月 24 日
>> mlhdlc_demo_setup('sfir')

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by