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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? multiratewebinar_oct2005_english.m

?? 多級抽取程序,適用于軟件無線電系統
?? 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)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美久久久| 一区二区三区国产| 成人免费毛片片v| 午夜精品福利在线| 国产精品久久午夜夜伦鲁鲁| 日韩视频在线一区二区| 色拍拍在线精品视频8848| 国产在线不卡一区| 午夜久久久久久| 亚洲摸摸操操av| 国产午夜精品福利| 欧美一区二区三区小说| 91成人国产精品| zzijzzij亚洲日本少妇熟睡| 黄色资源网久久资源365| 亚洲一卡二卡三卡四卡无卡久久| 国产清纯在线一区二区www| 精品国产乱子伦一区| 91精品国产综合久久精品| 欧美三级视频在线| 91在线观看成人| 9l国产精品久久久久麻豆| 国产成人在线免费| 国产精品99久久久久| 黄色资源网久久资源365| 美女尤物国产一区| 日韩不卡一二三区| 日本女人一区二区三区| 日日摸夜夜添夜夜添精品视频| 亚洲免费观看高清完整| 亚洲欧洲综合另类| 亚洲免费看黄网站| 一区二区三区视频在线观看| 亚洲精品欧美综合四区| 亚洲一区在线视频| 亚洲福利视频一区| 午夜电影网一区| 日韩激情视频网站| 青草国产精品久久久久久| 全部av―极品视觉盛宴亚洲| 日韩电影在线一区| 麻豆极品一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 老司机精品视频一区二区三区| 捆绑调教一区二区三区| 日本vs亚洲vs韩国一区三区二区| 免费三级欧美电影| 久久9热精品视频| 国产成人综合视频| 91色视频在线| 欧美三级电影在线观看| 欧美精品久久一区| 日韩三级在线观看| 久久精品视频免费| 亚洲色大成网站www久久九九| 一区二区三区美女视频| 日韩精品一区第一页| 老司机午夜精品| 国产不卡视频在线观看| 色综合久久久久综合体| 欧美精选在线播放| 久久夜色精品一区| 国产精品成人免费| 三级欧美在线一区| 国产乱妇无码大片在线观看| eeuss鲁片一区二区三区在线看| 91久久精品网| 日韩一级欧美一级| 国产精品免费免费| 午夜精品一区二区三区电影天堂| 日韩电影在线一区| 成人激情视频网站| 欧美午夜精品免费| xnxx国产精品| 亚洲精品你懂的| 国产在线不卡一卡二卡三卡四卡| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 激情图片小说一区| 国产成人在线网站| 欧美丝袜丝交足nylons图片| 精品国产污污免费网站入口| 亚洲三级电影网站| 精品一区二区三区在线播放| 91免费看片在线观看| 欧美一区二区三区系列电影| 国产精品久久久久久久蜜臀 | 欧美私人免费视频| 精品欧美一区二区三区精品久久| 中文字幕亚洲一区二区av在线 | 日韩视频免费观看高清完整版在线观看| 国产日韩三级在线| 婷婷综合另类小说色区| 成人福利视频网站| 日韩免费高清电影| 亚洲色图另类专区| 福利电影一区二区三区| 欧美一级理论性理论a| 日韩理论电影院| 国产精品一卡二卡在线观看| 7777精品伊人久久久大香线蕉最新版| 日本一区二区三区国色天香| 日韩在线观看一区二区| 色88888久久久久久影院按摩 | 欧美高清在线一区二区| 美女久久久精品| 欧美日韩高清不卡| 国产精品黄色在线观看| 国产一二三精品| 精品少妇一区二区三区视频免付费| 亚洲一区中文在线| 色一情一伦一子一伦一区| 亚洲国产精品成人综合色在线婷婷 | 欧美va日韩va| 五月婷婷综合在线| 91国偷自产一区二区三区观看| 国产精品久久久久久亚洲伦| 国产精品夜夜爽| 精品成a人在线观看| 免费精品视频在线| 制服视频三区第一页精品| 亚洲一区二区免费视频| 色综合久久综合| 亚洲人成精品久久久久| 91在线观看视频| 中文字幕中文在线不卡住| 国产v综合v亚洲欧| 国产三级精品视频| 国产乱理伦片在线观看夜一区| 日韩午夜精品视频| 免费欧美在线视频| 欧美一区二区三区色| 日韩高清一区二区| 欧美一区二区三区在线观看| 裸体一区二区三区| 欧美电视剧在线看免费| 国内精品写真在线观看| 精品国产髙清在线看国产毛片| 免费成人在线视频观看| 日韩亚洲欧美在线| 久久av资源站| 日本一区二区三区久久久久久久久不| 粉嫩蜜臀av国产精品网站| 国产精品美女久久久久高潮| 99re这里都是精品| 亚洲成av人片| 欧美成人精精品一区二区频| 久久99久久精品欧美| 国产区在线观看成人精品| kk眼镜猥琐国模调教系列一区二区| 亚洲美女精品一区| 欧美日韩卡一卡二| 久久国产精品色| 国产欧美一区二区精品性| 不卡av在线免费观看| 一区二区三区成人| 91精品国产一区二区三区香蕉| 免费成人av资源网| 国产欧美一区二区三区在线看蜜臀 | 日韩一区精品视频| 久久亚洲精华国产精华液| 成人午夜视频在线| 亚洲国产一区二区三区| 日韩一区二区在线观看视频| 国产麻豆精品theporn| 亚洲天堂2016| 日韩欧美一级二级| 99热精品一区二区| 日韩成人一级大片| 国产精品色在线观看| 欧美精品日韩一本| 国产a久久麻豆| 亚洲一区二区三区四区的| 欧美电影免费提供在线观看| 99国产欧美久久久精品| 污片在线观看一区二区| 中文字幕av一区 二区| 欧美日本一区二区| 成人久久18免费网站麻豆 | 日本 国产 欧美色综合| 欧美国产日产图区| 制服丝袜日韩国产| 99久久婷婷国产综合精品| 日韩av电影一区| 国产精品午夜电影| 日韩一区二区三区四区| 99久久99久久免费精品蜜臀| 日韩成人精品在线观看| 亚洲男帅同性gay1069| 久久久高清一区二区三区| 欧美日韩亚洲综合| 99久久精品国产毛片| 国产一区二区主播在线| 亚洲成人动漫在线免费观看| 中文字幕av资源一区| 精品国产乱码久久久久久图片| 欧美性一二三区| 成人国产精品免费| 国产一区二区毛片| 免费看欧美女人艹b| 亚洲一区二区三区视频在线 |