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

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

?? plldemo.m

?? 對一般的PLL及APLL,定點(diǎn)PLL進(jìn)行了MATLAB SIMULINK仿真
?? M
?? 第 1 頁 / 共 2 頁
字號:
% Run the simulation to validate the correct behavior of the PLL.

%% An all digital PLL in Simulink
% PLLs are used more and more in the digital domain, this means that apart
% for the Phase Frequency Detector, also the loop filter and VCO need to be
% to be converted to discrete-time systems.
% The loop filter can be converted from Laplace to the
% z-domain using an appropriate transformation (e.g. Zero-Order Hold,
% Bilinear etc). The VCO (Voltage Controlled Oscillator) need to be
% replaced by an NCO (Numerically Controlled Oscilaator).
%
% Open the model |dpll| to see an example.

open_system('dpll'); set_param(bdroot,'SimulationCommand', 'update')

%%
% The digital filter has been implemented using a Digital Filter block from
% the Signal Processing blockset's Filter Design library. The filter
% coefficients can be reproduced using the following code:
%%
%  G = tf([0 R1*C1, 1],[C1*C2*R1, (C1+C2), 0])
G = tf([0 R1*C1, 1],[C1*C2*R1, (C1+C2), 0])
%%
% |Gd = c2d(G,1e-8)|
Gd = c2d(G,1e-8)

%%
% |a = Gd.den{1}|
a = Gd.den{1}

%%
% |b= Gd.num{1}/Gd.num{1}(2)|
b= Gd.num{1}/Gd.num{1}(2)

%%
% The VCO has been replaced by a subsystem containing a block that converts
% the output of the filter to an incremental value that loops through a
% look-up table of the NCO block. The constant increment value that is
% added corresponds to a frequency of approximately 1MHz. The unit delay
% block is used as a register that makes this system realizable in software
% (in Simulink it breaks the algebraic loop).

open_system('dpll/NCO'); set_param(bdroot,'SimulationCommand', 'update')

%%
% This digital PLL can be automatically converted to floating-point ANSI C
% code using Real-Time Workshop.

%% Converting the digital PLl to fixed-point.
% Many signal processing systems are implemented as hand-held devices (e.g.
% GPS, Mobile phones, multi-media) and need to be cost-effictive. Therefor,
% it is often necessary to convert the system's data-types to fixed-point
% in order to implement the algorithm on either a fixed-point DSP, an FPGA
% or an ASIC (Application Specific Integrated Circuit).
%
% Fixed-pont data types however introduce a number of serious challenges
% in the design process:
%
% * Finding optimal word lengths and fraction lengths
% * Writing and understanding integer C-code is cumbersome and error prone
% * Integer C code is hard to debug, pinpointing errors is difficult
% * Translating (sequential) C to (parallel) HDL is a challenge
%
% Simulink avoid these challenges by:
% 1. Seperating the data-types from the algoritms
% 2. Seperating the data-types from the value
%
% Simulink achieves this by providing the following capabilities:
%%
% * Simulink can display the datatype in the block diagram
% * The same blocks that operate on floating-point data also operate on
% fixed-point data. Therefor it's easy to switch.
% * Simulink can log the range of the model's signals, together with
% overflows (if any).
% * Simulink can suggest and apply fraction lengths, based on the ranges of
% a reference simulation.

%%
% We'll use the all digital PLL to show how to convert a floating-point
% Simulink model to fixed-point, using the capabilities mentioned above.

%%
% First, turn on data-type labeling to show the data-types of all the
% signals in the model: Format menu -> Port/Signal Displays -> Port Data
% Types.
%
% All label read "double" which is a 8 byte floating point data type.

%%
% To convert the model, we'll change the datatype of the NCO (we're
% actually changing the data type of the entries in the look-up table).
% Open the NCO subsystem and the NCO block's parameter dialog window.
% Select the second tab to change the block's data types.
%
% Set the output data type to Binary point scaling with a Word length of 16
% bits and a fraction length of 14 bits.
%
% Use a data-type conversion block to set the datatype of the reference
% signal to "Inherit via back propagation".
%
% Update the diagram. Note that the output of the NCO and the Data type
% conversion block have changed to sfix16_n14. This data type has a range
% of [-2 2>. 
%
% To change the output of the Stateflow block, open the Model Explorer from
% Stateflow (View menu -> Model Explorer). Next, select the s data object
% in the middle pane, and change it's data type to a 16 bit signed
% fixed-point number with 14 bits scaling.
%
% Update the diagram, note that the complete model is now fixed-point. Note
% that we didn't have to make any changes to the algorithm itself, or
% replace any of the blocks in the model.
%
% Running the model shows that the PLL doesn't behave correctly.

%% Optimizing fixed-point data types
% To solve the problem, let's use the fixed-point tooling available in
% Simulink fixed-point.
%
%%
% <<fixpttool.jpg>>
%
%%
% 1. To verify that fixed-point data types indeed are the cause for the
% incorrect behavior, run a reference simulation with Data type override
% set to "True doubles". Note that the data types in the model changed to
% "double" again, and that the PLL behaves again correctly!
%
% 2. Run the reference simulation again, but now with Logging mode set to
% Minimum, maximums and overflows. Note the logging of the ranges (no
% overflows due to floating-point data types)
%
% 3. Run an active simulation again, but with Data type override set to
% "Use local settings". Note the overflows in the Loop Filter block
% (Accumulator and Product output).
% 
% 4. Use the autoscaling capabilities of the Fixed-Point Tool to optimize
% the fraction length of the filter's internal variables.
%%
% * Open the Fixed-point tab of the Loop filter block's parameter dialog
% window.
% * Change the Rounding Mode to Nearest
% * Change the data type mode of all the internal variables to Binary point
% scaling. Use a 32 bit word length for the Product output and Accumulator
% and a 16 bit word length for the State and Ouptut.
% * In the Fixed-Point Tool select Auto-scaling using Reference and set a
% 10 Percent safety margin
% Propose and accept the new fraction lengths using the two buttons at the
% bottom of the Dialog View of the Fixed-Point Tool

open_system('dpll_fixpt'); set_param(bdroot,'SimulationCommand', 'update')
sim(bdroot);
%%
% Run the simulation again to see that the overflows have dissapeared and
% that the fixed-point PLL runs as expected!

figure('Color', 'White');
log_dpll_fixpt.signals(2).values = squeeze(log_dpll_fixpt.signals(2).values);
plot(log_dpll_fixpt.time*1e6, [log_dpll_fixpt.signals.values]);
 grid; axis([0 10 -1 1]);legend('Reference', 'PLL');
xlabel('Time (\mus)'); set(gcf,'Position', [360   502   560   267]);
ylabel('Voltage (V)');

%%
% Note that the PLL locks to the 1.1 MHz input frequency after about 10
% mu.

%% Software and Hardware code generation
% This concludes the demo. A next step would be to generate VHDL, Verilog
% or ANSI C code from the model.

bdclose all
close all

%% Toolboxes and blocksets needed for this demo
%
% * *Linear PLL* (|linearpll.mdl|): MATLAB, Simulink, Signal Processing Toolbox, Signal
% Processing Blockset, Communications Toolbox, Communications Blockset.
% * *Charge Pump PLL* (|cppll.mdl|): MATLAB, Simulink, Signal Processing Toolbox, Signal
% Processing Blockset, Communications Toolbox, Communications Blockset,
% Stateflow
% * *PLL with circuit model* (|powerpll.mdl|): MATLAB, Simulink, Signal
% Processing Toolbox, Signal Processing Blockset, Communications Toolbox,
% Communications Blockset, SimPowerSystems
% * *All Digital PLL*: MATLAB, Simulink, Signal Processing Toolbox, Signal
% Processing Blockset, Stateflow.
% * *Fixed-Point PLL*: MATLAB, Simulink, Signal Processing Toolbox, Signal
% Processing Blockset, Stateflow, Fixed-Point Toolbox, Simulink
% Fixed-Point.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本大道久久精品懂色aⅴ| 亚洲色图在线播放| 日韩一级片网址| 欧美精品乱码久久久久久按摩| 色婷婷精品大视频在线蜜桃视频| 99精品一区二区| 色综合视频在线观看| 色综合久久中文字幕综合网| 色综合久久66| 欧美亚洲动漫另类| 欧美一区二区视频在线观看2022| 777亚洲妇女| 日韩免费视频一区| 久久精品亚洲一区二区三区浴池 | 伊人夜夜躁av伊人久久| 尤物视频一区二区| 同产精品九九九| 久久精品国产精品亚洲红杏| 精品一区免费av| 国产91清纯白嫩初高中在线观看| 粉嫩蜜臀av国产精品网站| 99久久精品免费精品国产| 在线日韩国产精品| 日韩一区二区免费在线观看| 欧美精品一区二区三区很污很色的 | 三级欧美韩日大片在线看| 日本在线不卡视频| 国产在线播精品第三| 9i在线看片成人免费| 欧美午夜宅男影院| 日韩精品一区二区三区四区| 久久九九影视网| 亚洲欧美视频在线观看| 石原莉奈在线亚洲二区| 国产一区二区中文字幕| 色94色欧美sute亚洲线路二 | 久久久久成人黄色影片| 国产精品麻豆视频| 日一区二区三区| 国产成人免费在线观看不卡| 色婷婷av一区二区三区软件 | 亚洲一区二区美女| 久久精品国产77777蜜臀| 99久久精品久久久久久清纯| 欧美一区二区三区啪啪| 日本一区二区三区高清不卡| 亚洲地区一二三色| 国产精品一区二区91| 91精彩视频在线观看| 精品久久人人做人人爱| 亚洲免费观看高清完整版在线观看熊| 日韩综合小视频| 99久久综合国产精品| 日韩欧美电影一区| 亚洲色图视频网站| 国内精品免费**视频| 色诱亚洲精品久久久久久| 精品国产123| 亚洲一区在线电影| 国产99久久久国产精品| 777a∨成人精品桃花网| 日韩一区日韩二区| 国产在线播精品第三| 欧美区一区二区三区| 国产精品护士白丝一区av| 美女视频网站黄色亚洲| 欧洲生活片亚洲生活在线观看| 精品福利av导航| 五月天欧美精品| 99视频在线精品| 国产日韩欧美一区二区三区综合| 久久久久高清精品| 香蕉影视欧美成人| 丁香六月久久综合狠狠色| 欧美一级高清大全免费观看| 亚洲色图.com| 丁香亚洲综合激情啪啪综合| 欧美一区二区高清| 亚洲国产乱码最新视频| 99精品视频在线播放观看| 久久―日本道色综合久久| 天堂在线一区二区| 欧美三级午夜理伦三级中视频| 国产精品欧美一区二区三区| 国产真实乱子伦精品视频| 欧美剧情电影在线观看完整版免费励志电影 | 欧美综合欧美视频| 亚洲视频在线一区| 成人久久18免费网站麻豆| 久久久久国产精品麻豆ai换脸| 精品综合免费视频观看| 7777精品伊人久久久大香线蕉 | 亚洲色图欧洲色图婷婷| eeuss国产一区二区三区| 国产日产欧美精品一区二区三区| 九色|91porny| 亚洲精品在线观看网站| 久久99国产精品久久99 | 亚洲图片欧美视频| 91九色02白丝porn| 亚洲一区二区三区在线| 日本精品裸体写真集在线观看| 中文字幕一区二区三区不卡| 99久久精品久久久久久清纯| 综合中文字幕亚洲| 91激情五月电影| 亚洲一区在线免费观看| 欧美日韩一本到| 日韩主播视频在线| 欧美va亚洲va国产综合| 久久99国内精品| 国产欧美一区二区三区鸳鸯浴 | 成人高清av在线| 国产精品成人在线观看| 93久久精品日日躁夜夜躁欧美| 亚洲色欲色欲www| 欧美三级资源在线| 日产欧产美韩系列久久99| 日韩精品一区二区三区视频| 国产精品亚洲午夜一区二区三区 | 日韩欧美电影一二三| 国产精品资源站在线| 国产精品欧美一级免费| 色婷婷精品久久二区二区蜜臀av| 亚欧色一区w666天堂| 欧美tickling网站挠脚心| 粗大黑人巨茎大战欧美成人| ㊣最新国产の精品bt伙计久久| 欧美主播一区二区三区| 日日摸夜夜添夜夜添国产精品 | 亚洲婷婷综合色高清在线| 91福利在线看| 蜜臀av一区二区| 中文字幕二三区不卡| 欧美性xxxxxx少妇| 韩国精品在线观看| 亚洲欧美国产高清| 日韩一区二区精品葵司在线| 国产高清无密码一区二区三区| 亚洲人成网站在线| 欧美日韩精品一区二区| 国产精品夜夜爽| 亚洲一级在线观看| 久久精品一区二区三区四区| 欧美亚洲图片小说| 国产一区二区三区最好精华液| 亚洲人妖av一区二区| 日韩三级精品电影久久久| 白白色 亚洲乱淫| 日本欧美肥老太交大片| 欧美激情一二三区| 欧美精选一区二区| 成人午夜av电影| 人妖欧美一区二区| 中文字幕制服丝袜一区二区三区| 7777精品伊人久久久大香线蕉完整版| 成人午夜视频在线| 日韩高清电影一区| 亚洲女爱视频在线| 久久久久久久免费视频了| 欧美亚洲自拍偷拍| 波波电影院一区二区三区| 日本欧美韩国一区三区| 亚洲另类在线视频| 国产欧美视频一区二区| 国产亚洲精品久| 精品日韩一区二区三区| 欧美三区在线观看| 狂野欧美性猛交blacked| wwwwww.欧美系列| 欧美日韩亚洲另类| 成人福利视频在线| 韩国成人福利片在线播放| 亚洲国产va精品久久久不卡综合| 欧美国产亚洲另类动漫| 日韩欧美激情在线| 欧美日韩精品一区二区在线播放| 成人精品视频网站| 国产最新精品免费| 免费欧美高清视频| 亚洲成人三级小说| 亚洲免费成人av| 亚洲国产精品v| 久久久久久久久久美女| 4438成人网| 欧美日韩免费在线视频| 91九色02白丝porn| 91日韩精品一区| av成人免费在线| 成人性生交大片免费看中文网站| 国产一区在线观看视频| 久久国产精品一区二区| 日本美女一区二区三区视频| 图片区小说区国产精品视频| 亚洲高清免费在线| 亚洲综合一区在线| 亚洲影院在线观看| 亚洲高清不卡在线观看| 亚洲综合另类小说| 亚洲永久免费视频|