📄 alldpll.mdl
字号:
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 191, 480, 209]
}
Block {
BlockType Outport
Name "s"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "s"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "s"
DstPort 1
}
Line {
SrcBlock " input events "
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 80]
DstBlock " Demux "
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [80, 26, 85, 64]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Ip"
Position [345, 113, 375, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Chart"
SrcPort 1
DstBlock "Ip"
DstPort 1
}
Line {
SrcBlock "Var"
SrcPort 1
Points [0, -15]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Ref"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [60, 0]
DstBlock "Chart"
DstPort trigger
}
}
}
Block {
BlockType Sin
Name "Ref Osc"
Ports [0, 1]
Position [250, 215, 280, 245]
AttributesFormatString "%<Frequency> (rad/s)"
SineType "Time based"
Frequency "2*pi*1e6"
SampleTime "Ts"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [395, 281, 425, 314]
Floating off
Location [138, 41, 750, 494]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "5e-005"
YMin "-1.5~-1.5"
YMax "1.5~1.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [350, 360, 385, 410]
Orientation "left"
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[7 356 1020 205]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
XLimit "Auto"
YUnits "dB"
XMax "1"
XMin "0"
YMin "-66.7500151230149"
YMax "24.4293933483218"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Kaiser"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Scope
Name "Vco"
Ports [1]
Position [765, 228, 795, 262]
Floating off
Location [204, 171, 698, 435]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "5e-005"
YMin "-30"
YMax "30"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Line {
SrcBlock "PFD"
SrcPort 1
DstBlock "Loop Filter"
DstPort 1
}
Line {
SrcBlock "Ref Osc"
SrcPort 1
Points [70, 0]
Branch {
Points [0, 60]
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "PFD"
DstPort 1
}
}
Line {
SrcBlock "NCO"
SrcPort 1
Points [-100, 0]
Branch {
Points [0, 35]
DstBlock "Spectrum\nScope"
DstPort 1
}
Branch {
Points [-95, 0; 0, -90; 20, 0]
Branch {
Points [0, 45]
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "PFD"
DstPort 2
}
}
}
Line {
SrcBlock "Loop Filter"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "Vco"
DstPort 1
}
Branch {
Labels [0, 0]
Points [0, 105]
DstBlock "NCO"
DstPort 1
}
}
Annotation {
Name "All Digital Phase-Locked Loop "
Position [525, 164]
FontName "Times New Roman"
FontSize 28
FontWeight "bold"
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . , 8 ( ! % "
"\" 0 0 "
}
DataRecord {
Tag DataTag0
Data " %)30 . , 8 ( ! % "
"\" $ \" 0 0 ( 6UT "
}
}
# Finite State Machines
#
# Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#
Stateflow {
machine {
id 1
name "alldpll"
created "16-Apr-2007 21:21:34"
isLibrary 0
firstTarget 15
sfVersion 66014000
}
chart {
id 2
name "PFD/Chart"
windowPosition [112.5 202.5 534 227.25]
viewLimits [42.131 481.619 47.274 218.634]
zoomFactor 0.896
chartColor [1 1 1]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 4 0 0]
firstTransition 7
viewObj 2
machine 1
subviewS {
x1 42.131
y1 33.949
zoomFactor 0.896
}
decomposition CLUSTER_CHART
firstEvent 11
firstData 13
chartFileNumber 2
disableImplicitCasting 1
}
state {
id 3
labelString "Ahead\n"
"s = -1;"
position [79.25 95.25 90 60]
fontSize 12
chart 2
treeNode [2 0 5 0]
subviewer 2
type OR_STATE
decomposition CLUSTER_STATE
eml {
treatIntsAsFixpt 0
}
}
state {
id 4
labelString "InPhase\n"
"s=0;"
position [216.5 94.5 90 60]
fontSize 12
chart 2
treeNode [2 0 0 5]
subviewer 2
type OR_STATE
decomposition CLUSTER_STATE
eml {
treatIntsAsFixpt 0
}
}
state {
id 5
labelString "Behind\n"
"s=1;"
position [354.5 94.5 90 60]
fontSize 12
chart 2
treeNode [2 0 4 3]
subviewer 2
type OR_STATE
decomposition CLUSTER_STATE
eml {
treatIntsAsFixpt 0
}
}
transition {
id 6
labelString "ref"
labelPosition [177.623 38.769 15.449 15.426]
fontSize 12
src {
id 3
intersection [1 0 -1 0.6417 137 95.25 0 -62.25]
}
dst {
id 4
intersection [1 0 -1 0.2 234.5 94.5 0 48.75]
}
midPoint [164.4189 60.8715]
chart 2
linkNode [2 7 10]
dataLimits [137 236.9 56.071 95.25]
stampAngle NaN
subviewer 2
drawStyle SMART
slide {
mode MIRROR_SLIDE
sticky BOTH_STICK
midPointSticky 1
}
executionOrder 1
}
transition {
id 7
labelString "ref"
labelPosition [328.016 39.513 15.449 15.426]
fontSize 12
src {
id 4
intersection [1 0 -1 0.7417 283.25 94.5 0 -53.25]
}
dst {
id 5
intersection [1 0 -1 0.25 377 94.5 0 52.5]
}
midPoint [312.4784 58.549]
chart 2
linkNode [2 0 6]
dataLimits [283.25 379.4 55.206 94.5]
stampAngle NaN
subviewer 2
drawStyle SMART
slide {
mode MIRROR_SLIDE
sticky BOTH_STICK
midPointSticky 1
}
executionOrder 1
}
transition {
id 8
labelString "var"
labelPosition [190.119 203.208 18.135 15.426]
fontSize 12
src {
id 4
intersection [3 0 1 0.7065 242.9167 154.5 0 -56.4167]
}
dst {
id 3
intersection [3 0 1 0.4037 132.9167 155.25 0 67.0833]
}
midPoint [206.224 199.0604]
chart 2
linkNode [2 10 9]
dataLimits [130.517 242.917 154.5 202.049]
stampAngle NaN
subviewer 2
drawStyle SMART
slide {
mode MIRROR_SLIDE
sticky BOTH_STICK
midPointSticky 1
}
executionOrder 2
}
transition {
id 9
labelString "var"
labelPosition [334.917 192.114 18.135 15.426]
fontSize 12
src {
id 5
intersection [3 0 1 0.7637 375.7666 154.5 0 -51.2666]
}
dst {
id 4
intersection [3 0 1 0.1981 288.6728 154.5 0 47.8272]
}
midPoint [344.9935 190.9316]
chart 2
linkNode [2 8 0]
dataLimits [286.273 375.767 154.5 192.826]
stampAngle NaN
subviewer 2
drawStyle SMART
slide {
mode MIRROR_SLIDE
sticky BOTH_STICK
midPointSticky 1
}
executionOrder 1
}
transition {
id 10
labelPosition [244.08 73.854 8.06 15.426]
fontSize 12
src {
intersection [0 0 1 0 258.4803 64.5 0 0]
}
dst {
id 4
intersection [1 0 -1 0.4664 258.4803 94.5 0 0]
}
midPoint [258.4803 76.8537]
chart 2
linkNode [2 6 8]
dataLimits [256.08 260.88 64.5 94.5]
subviewer 2
drawStyle SMART
executionOrder 1
}
event {
id 11
name "ref"
linkNode [2 0 12]
scope INPUT_EVENT
trigger RISING_EDGE_EVENT
machine 1
}
event {
id 12
name "var"
linkNode [2 11 0]
scope INPUT_EVENT
trigger RISING_EDGE_EVENT
machine 1
}
data {
id 13
name "s"
linkNode [2 0 0]
scope OUTPUT_DATA
machine 1
props {
type {
primitive SF_DOUBLE_TYPE
isSigned 1
wordLength "16"
}
frame SF_FRAME_NO
}
dataType "double"
}
instance {
id 14
name "PFD/Chart"
machine 1
chart 2
}
target {
id 15
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -