亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? multiratewebinar_oct2005_english.m

?? Design of Multistage Decimators
?? M
字號:
%% Design of Multistage Decimators% This demo shows how to get progressively more efficient designs for% decimators given a set of design specifications. We start with a% single-section polyphase design, and then move to a multistage decimation% design. We then allow for transition-band aliasing and design a% multistage Nyquist filter. Finally, we use a CIC filter for the first% stage of a multistage design to obtain the most efficient implementation.%%   Author(s): Ricardo A. Losada%   Copyright 2005 The MathWorks, Inc.%% Design Specifications% These are the design specifications we will use throughout the demoFs  = 100e6;   % Input sampling frequency 100 MHz Fc  = 3.125e6; % Cutoff frequency 3.125 MHzFp  = 2.925e6; % Passband-edge frequency  2.925 MHzFst = 3.325e6; % Stopband-edge frequency  3.325 MHzTW  = Fst-Fp;  % Transition bandwidth 0.4 MHzAp  = 1;       % Passband ripple 1 dB (peak to peak)Ast = 80;      % Minimum attenuation in stopband 80 dB%% Creation of an Object to Hold the Specifications% We can generate an object that groups all specifications with the% following command:Hfd = fdesign.decimator(M,'lowpass','Fp,Fst,Ap,Ast',...      Fp,Fst,Ap,Ast,Fs);  %% Design of the Decimation Filter% In order to design the single-stage filter, we use the 'design' command% and we specify that we want an optimal equiripple design.Hm_eq = design(Hfd,'equiripple');info(Hm_eq)%%% The resulting filter has 642 coefficients. Since we use a polyphase% implementation, the cost of implementing this decimator is 43% multiplications for each input sample.fvtool(Hm_eq)%% Spectrum of the Decimated Signal% Assuming that the original input signal occupies the entire Nyquist% interval in a uniform manner, the spectrum of the filtered signal% acquires the shape of the frequency response of the filter. When the% filtered signal is downsampled, the spectral replicas are positioned% adjacent to each other without superimposing themselves above the 80 dB% allowed. This way, no significant aliasing occurs.[H,f]=freqz(Hm_eq,8192,Fs,'whole');figureplot(f-Fs/2,20*log10(abs(fftshift(H))))hold on,plot(f-Fs/2+Fs/M,20*log10(abs(fftshift(H))),'r-')plot(f-Fs/2-Fs/M,20*log10(abs(fftshift(H))),'k-')grid onxlabel(' Frequency (Hz)')ylabel('dB')axis([-1e7 1e7 -100 5])title('Spectrum of decimated signal')legend('Baseband spectrum','First positive replica','First negative replica')%% Creation of a Simulink Model% With a simple command, we can generate a Simulink model for the decimator% we have designed:block(Hm_eq,'Destination','new')%% Multistage Design% We will now see how to increase the computational efficiency by designing% a multistage filter for the same design specifications.Hm_multi = design(Hfd,'multistage');fvtool(Hm_multi)%%% The result of this design are two decimation filters connected in series.% Partitioning the design in multiple stages reduces the computational% cost. For this design, the cost is 14.6 multiplications for each input% sample (on average).%% Visualizing the Multistage Filter in Simulink% To generate a Simulink model for this new design, we use the same command% that we have invoked previously:block(Hm_multi,'Destination','new')%% Design of Nyquist Filters for Decimation% Given the design specifications, it is possible to increment the% decimation factor in such a way that the spectral replicas of the% filtered signal, after downsampling, superimpose themselves only in the% transition band of the filter. This way we can increase the efficiency of% the design, using Nyquist filters, without incurring in aliasing in the% band of interest. As an example, if we had an audio signal sampled at a% very high frequency and we'd like to reduce the sampling frequency to% 44.1 kHz, we could allow superposition of spectral replicas in the% frequency band between 20 kHz and 22.05 kHz. The aliasing the occurs in% such band is not important since this band is not part of the audible% band of the human ear.M2   = 16; % Increased decimation factorBand = M2; % The band should be equal to the decimation factorHfn  = fdesign.decimator(M2,'nyquist',Band,...      'TW,Ast',TW,Ast,Fs);  %%% Note that the cutoff frequency of these specifications is given by% Fs/(2*Band) which corresponds to the same cutoff frequency that we% originally had. In this manner we ensure that the design specifications% have not changed. We can also see that in this case we are not specifying% the passband ripple. It is not possible to specify the passband ripple% with Nyquist designs. However, as we will see, the resulting ripple will% be much smaller than the ripple required originally (1 dB peak to peak).  %% Multistage Nyquist Design!% When we invoke the multistage command in this case, each one of the% stages of the multistage filter will be a Nyquist filter (because Hfn% specifies that we want to design a decimator using Nyquist filters).Hn_multi = design(Hfn,'multistage');fvtool(Hn_multi)%%% The result is 4 halfband filters connected in series. Each halfband% filter is very efficient since (approximately) half of its coefficients% are equal to zero, so that it is only necessary to use half of the filter% length. In this example the computational cost of this design is 10.31% multiplications for each input sample.%% Spectrum of the Signal Decimated with Nyquist Filters% Similarly to the previous case, we can visualize the superposition of the% spectral replicas of the decimated signal, in this case using Nyquist% filters. As we have said, in this case, the replicas superimpose% themselves more than in the previous case. However, there is no% superposition beyond the 80 dB allowed in regions other than the% transition bands. This shows that the band of interest does not incur in% significant aliasing.[H,f]=freqz(Hn_multi,8192,Fs,'whole');figureplot(f-Fs/2,20*log10(abs(fftshift(H))))hold on,plot(f-Fs/2+Fs/M2,20*log10(abs(fftshift(H))),'r-')plot(f-Fs/2-Fs/M2,20*log10(abs(fftshift(H))),'k-')grid onxlabel(' Frequency (Hz)')ylabel('dB')axis([-1e7 1e7 -100 5])title('Spectrum of the signal decimated with Nyquist filters')legend('Baseband spectrum','First positive replica','First negative replica')%% Multistage Design Using CIC Filters% Finally, in order to obtain an extremely efficient decimator, we will use% a CIC filter in thefirst stage of a multistage design. First we will% design a two-stage decimator and we will see that we will obtain an% efficiency comparable to the design with Nyquist filters. We will then% move to a three-stage design and this way we will obtain the most% efficient design of all designs in this demo.%% Design of the CIC Filter% The global decimation factor is 16. We choose a decimation factor of 4% for the CIC filter leaving a factor of 4 for the remaining stages.M1   = 4;D    = 1; % Differential delayHd1  = fdesign.decimator(M1,'cic',D,Fp,Ast,Fs);Hcic = design(Hd1,'multisection');%% Design of the Second Stage: Compensation Filter% The compensation filter must be designed according to the design% specifications of the CIC filter to compensate. For this reason, we use% here the number of sections of the CIC filter as well as the differential% delay as design parameters.M2    = 4;Nsecs = Hcic.NumberOfSections;Hd2   = fdesign.decimator(M2,'ciccomp',D,Nsecs,Fp,Fst,Ap,Ast,Fs/M1);Hcomp = design(Hd2,'equiripple');Hcas = cascade(Hcic,Hcomp); % series connection of the two filters%%% This design requires 10.44 multiplications for each input sample. This% is not an improvement in comparison to the multistage Nyquist design.% However, we can improve this further by using three stages instead of% two.%% Alternate Design, Second Stage: Compensation Filter% We decide to design a compensation filter with a decimation factor of% two.M3     = 2;Hd3    = fdesign.decimator(M3,'ciccomp',D,...    Nsecs,Fp,Fs/(M1*M3)-Fp-TW,Ap,Ast,Fs/M1);Hcomp2 = design(Hd3,'equiripple');%% Design of the Third Stage% Note that we have designed a filter with a decimation factor of two% instead of a decimation factor of four. This means we need to design one% more filter in order to complete the design. We elect to use a halfband% filter for the last stage (usually the one with the most coefficients)% given its efficiency as mentioned above:M4    = 2;Hd4   = fdesign.decimator(M4,'halfband',...      TW,Ast,Fs/(M1*M3));Hhalf = design(Hd4,'equiripple');Hcas2 = cascade(Hcic,Hcomp2,Hhalf);%%% The computational cost of the three-stage design is only 6.06% multiplications for each input sample.%% Analysis of the Stages% If we superimpose the magnitude of the frequency response of each of the% three stages we have designed, we can see how the overall design% satisfies the design specifications. The CIC operates at the same% frequency as the input signal, 100 MHz. The compensation filter operates% at one-fourth of that frequency since the CIC has a decimation factor of% four. Finally, the halfband filter operates at half the frequency of the% compensation filter since such filter has a decimation factor of two.Hcic_norm  = cascade(Hcic,dfilt.scalar(1/gain(Hcic)));hfvt = fvtool(Hcic_norm,Hcomp2,Hhalf,'ShowReference','off','Fs',[100,25,12.5]);legend(hfvt,'First stage: CIC','Second stage: compensation',...    'Third stage: halfband');%%% Note how it is the last stage (the halfband) that provides the required% transition between 2.925 MHz and 3.325 MHz. However, since this filter% operates at only 12.5 MHz, it cannot eliminate frequency bands in the% signal around multiples of its operating frequency. Some of these bands% are eliminated by the compensation filter that operates at 25 MHz.% However, this filter in turn cannot remove the band centered around% multiples of 25 MHz. It is there where the CIC filter provides the% desired attenuation in such a way that in the stopband the minimum% attenuation provided by the three filters acting together is 80 dB, which% satisfies the design specifications.%% Analysis of the Overall Design% We can verify that the design meets the specifications, by viewing the% magnitude response of the overall design.hfvt = fvtool(Hcas2,'ShowReference','off','Fs',Fs, ... 'NormalizeMagnitudeto1','on');%% Generation of a Simulink Model from the Filters we have Designed% In the same way in which we have done it previously, with a single% command we can generate a Simulink model for our three-stage design.block(Hcas2,'Destination','new')%% Generation of VHDL Code% In order to generate VHDL code corresponding to our design, we need to% first represent each filter with fixed-point arithmetic.set(Hcas2.stage(:),'Arithmetic','fixed');generatehdl(Hcas2)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美写真视频网站| 亚洲乱码日产精品bd | 国产精品一区久久久久| 99久久综合狠狠综合久久| 欧美一级艳片视频免费观看| 亚洲欧美在线另类| 国模少妇一区二区三区| 欧美裸体一区二区三区| 综合欧美一区二区三区| 成人综合婷婷国产精品久久免费| 欧美理论在线播放| 伊人婷婷欧美激情| 99综合电影在线视频| 国产亚洲人成网站| 免费三级欧美电影| 欧美一区二区成人| 日韩中文字幕91| 欧洲日韩一区二区三区| 亚洲女性喷水在线观看一区| 国产91富婆露脸刺激对白| 久久久www成人免费无遮挡大片 | 久久国内精品自在自线400部| 91黄色小视频| 亚洲精品国产a久久久久久 | 国产露脸91国语对白| 91精品午夜视频| 视频一区免费在线观看| 欧美日韩一本到| 亚洲超碰精品一区二区| 欧美三区在线观看| 亚洲国产乱码最新视频| 欧美在线你懂得| 亚洲亚洲人成综合网络| 日本精品视频一区二区| 亚洲精品免费视频| 欧美怡红院视频| 亚洲va国产天堂va久久en| 欧美日本一区二区三区| 性做久久久久久| 日韩视频在线你懂得| 狠狠色伊人亚洲综合成人| 久久综合久色欧美综合狠狠| 国产精品一二三四五| 欧美激情中文不卡| 99久久精品费精品国产一区二区| 亚洲欧美视频在线观看| 欧美日本在线视频| 久久国产精品99精品国产 | 亚洲色图欧洲色图婷婷| 91精品1区2区| 蜜桃一区二区三区四区| 国产视频在线观看一区二区三区| 成人免费视频网站在线观看| 亚洲丝袜另类动漫二区| 欧美精品1区2区| 国产一区二三区| 中文字幕在线观看一区| 欧美日韩久久久| 国产一区二区三区在线观看精品| 国产精品视频一区二区三区不卡| 日本高清不卡aⅴ免费网站| 亚洲成国产人片在线观看| 日韩你懂的在线播放| av高清久久久| 日韩国产欧美三级| 国产精品欧美一区二区三区| 日本福利一区二区| 国产一区二区视频在线| 一区二区三区电影在线播| 日韩欧美一区二区视频| 99久久精品国产麻豆演员表| 丝袜亚洲精品中文字幕一区| 欧美激情一二三区| 91麻豆精品国产91久久久| 风间由美一区二区三区在线观看| 夜夜精品视频一区二区| 欧美xxx久久| 91成人免费电影| 成人免费观看视频| 日本少妇一区二区| 亚洲日本免费电影| 国产区在线观看成人精品| 欧美日韩www| 色婷婷综合中文久久一本| 国产一区在线精品| 日韩高清在线不卡| 一区二区三区免费| 中文字幕欧美一| 久久精品综合网| 日韩欧美一区二区久久婷婷| 欧洲精品一区二区三区在线观看| 激情图片小说一区| 日韩中文字幕一区二区三区| 亚洲欧美另类图片小说| 国产欧美日韩综合| 精品国产污污免费网站入口 | 国产偷国产偷亚洲高清人白洁 | 久久久久综合网| 欧美一区二区精品久久911| 在线日韩av片| 97精品视频在线观看自产线路二| 国产一区二区三区精品视频| 日韩avvvv在线播放| 亚洲国产精品久久一线不卡| 亚洲男人的天堂在线观看| 国产精品―色哟哟| 国产女主播一区| 国产日韩欧美在线一区| 国产日本一区二区| 国产区在线观看成人精品 | 国产成人超碰人人澡人人澡| 国产剧情一区在线| 精品一区二区免费看| 久久国产精品99精品国产| 久久99精品国产麻豆婷婷| 久久av资源网| 国产一区美女在线| 国产成人久久精品77777最新版本| 国内精品免费在线观看| 精品亚洲成a人| 国v精品久久久网| av爱爱亚洲一区| 欧美天堂亚洲电影院在线播放| 欧美视频在线不卡| 4438x亚洲最大成人网| 日韩欧美高清dvd碟片| 久久久久久97三级| 国产精品嫩草久久久久| 亚洲天堂精品在线观看| 亚洲午夜日本在线观看| 日本不卡视频在线观看| 激情偷乱视频一区二区三区| 成人午夜大片免费观看| 色综合av在线| 日韩欧美国产系列| 中文字幕五月欧美| 亚洲电影激情视频网站| 激情丁香综合五月| 国产不卡免费视频| 欧美亚洲综合在线| 精品国产乱码久久久久久浪潮 | 337p粉嫩大胆色噜噜噜噜亚洲| 欧美精品一区二| 亚洲免费在线视频一区 二区| 亚洲影视在线观看| 日韩av电影天堂| www.欧美日韩国产在线| 欧美日韩一区精品| 久久男人中文字幕资源站| 国产精品成人免费| 蜜桃久久精品一区二区| av一区二区久久| 欧美精品在线一区二区三区| 国产偷国产偷精品高清尤物| 亚洲国产乱码最新视频| 国产成人在线看| 在线不卡a资源高清| 国产精品久久久久久久岛一牛影视| 五月激情综合网| 91网址在线看| 国产日韩影视精品| 青青草视频一区| 欧美综合一区二区三区| 国产欧美va欧美不卡在线| 蜜臀精品久久久久久蜜臀| 91免费精品国自产拍在线不卡| 日韩精品一区二区三区swag| 亚洲一区二区中文在线| 成人午夜激情在线| 精品剧情在线观看| 午夜久久久影院| 91色在线porny| 亚洲国产高清在线| 国产一区二区91| 欧美一区二区日韩| 亚洲成人综合视频| 色天天综合色天天久久| 国产精品天干天干在线综合| 国产在线视视频有精品| 91精品国产乱码久久蜜臀| 夜夜亚洲天天久久| 色婷婷狠狠综合| 亚洲欧美一区二区三区国产精品| 国产成人超碰人人澡人人澡| 日韩免费看的电影| 日本伊人色综合网| 91精品国产综合久久久久久久久久| 综合精品久久久| 国产白丝精品91爽爽久久| 久久先锋影音av鲁色资源| 久久99精品国产| 日韩欧美123| 激情综合色综合久久| 欧美电视剧在线观看完整版| 青青草成人在线观看| 日韩欧美高清在线| 国产在线不卡一卡二卡三卡四卡| 欧美白人最猛性xxxxx69交| 精品一区二区免费在线观看| 欧美成人精品二区三区99精品|