采用FPGA实现多级CIC滤波器的四倍抽取一

采用FPGA实现多级CIC滤波器的四倍抽取一,第1张

在实现多级CIC滤波器前我们先来了解滑动平均滤波器、微分器、积分器以及梳状滤波器原理。CIC滤波器在通信信号处理中有着重要的应用。

1、滑动平均滤波器

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第2张

图1 8权值滑动平均滤波器结构

滑动平均滤波器(Moving Average Filter)的所有权值系数均为1,实现对信号的平滑作用,具有低通特性。

Matlab

close all

clear all

clc

%set system parameter

fs = 1000; %The frequency of the local oscillator signal

Fs = 44100; %sampling frequency

N = 24; %QuanTItaTIve bits

L = 8192;

%GeneraTIng an input signal

t =0:1/Fs:(1/Fs)*(L-1); %GeneraTIng the time series of sampling frequencies

sc =sin(2*pi*fs*t); %a sinusoidal input signal that produces a random starting phase

%滑动平均滤波器

b =[1,1,1,1,1,1,1,1];

a =1;

sf=filter(b,a,sc).*(1/8);

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第3张

图2 滑动平均滤波器的幅频特征

2、微分器

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第4张

图3 微分器结构

微分器有1和-1两个权值系数的滤波器,该滤波器具有简单的高通幅频响应特性。

y( k ) = x( k ) - x( k - 1 )

Matlab :

close all

clear all

clc

%set system parameter

fs = 1000; %The frequency of the local oscillator signal

Fs = 44100; %sampling frequency

N = 24; %Quantitative bits

L = 8192;

%Generating an input signal

t =0:1/Fs:(1/Fs)*(L-1); %Generating the time series of sampling frequencies

sc =sin(2*pi*fs*t); %a sinusoidal input signal that produces a random starting phase

%微分滤波器

b =[1,-1];

a =1;

sf=filter(b,a,sc);

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第5张

图4 微分器幅频响应特征

3、积分器

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第6张

图5 数字积分器结构

数字积分器是只有一个系数的IIR滤波器该滤波器具有低通的滤波器的幅频响应特性。

q( k ) = p (k) + q( k - 1)

Matlab :

close all

clear all

clc

%set system parameter

fs = 1000; %The frequency of the local oscillator signal

Fs = 44100; %sampling frequency

N = 24; %Quantitative bits

L = 8192;

%Generating an input signal

t =0:1/Fs:(1/Fs)*(L-1); %Generating the time series of sampling frequencies

sc =sin(2*pi*fs*t); %a sinusoidal input signal that produces a random starting phase

%积分滤波器

b =1;

a =[1,-1];

sf=filter(b,a,sc);

采用FPGA实现多级CIC滤波器的四倍抽取一,采用FPGA实现多级CIC滤波器的四倍抽取一,第7张

图6 积分器幅频响应特征

由图3,图4,和图5分析,1khz基本未发生改变,44.1khz相对于352.8khz采样率1khz点变得疏松。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/dianzi/2587737.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-08-08
下一篇 2022-08-08

发表评论

登录后才能评论

评论列表(0条)

保存