📄 cppll.mdl
字号:
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " input events "
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "s"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "s"
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 "Mux"
SrcPort 1
Points [60, 0]
DstBlock "Chart"
DstPort trigger
}
Line {
SrcBlock "Ref"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Var"
SrcPort 1
Points [0, -15]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Chart"
SrcPort 1
DstBlock "Charge Pump"
DstPort 1
}
Line {
SrcBlock "Charge Pump"
SrcPort 1
DstBlock "Ip"
DstPort 1
}
}
}
Block {
BlockType Sin
Name "Ref Osc"
Ports [0, 1]
Position [25, 70, 55, 100]
AttributesFormatString "%<Frequency> (rad/s)"
SineType "Time based"
Frequency "2*pi*1.1e6"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [250, 156, 280, 189]
Floating off
Location [6, 458, 505, 781]
Open off
NumInputPorts "2"
ZoomMode "xonly"
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
SampleInput on
SampleTime "1e-8"
}
Block {
BlockType Scope
Name "Vco"
Ports [1]
Position [560, 84, 590, 116]
Floating off
Location [6, 712, 507, 956]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
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 [145, 0]
Branch {
DstBlock "PFD"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Continuous-Time\nVCO"
SrcPort 1
Points [-160, 0; 0, -130; 95, 0]
Branch {
DstBlock "PFD"
DstPort 2
}
Branch {
Points [0, 65]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Loop Filter"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Vco"
DstPort 1
}
Branch {
Points [0, 145]
DstBlock "Continuous-Time\nVCO"
DstPort 1
}
}
Annotation {
Name "Charge Pump Phase-Locked Loop with digital Phas"
"e-Frequency Detector"
Position [295, 24]
DropShadow on
}
}
}
# Finite State Machines
#
# Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#
Stateflow {
machine {
id 1
name "cppll"
created "16-Apr-2007 21:21:34"
isLibrary 0
firstTarget 15
sfVersion 66014000
}
chart {
id 2
name "PFD/Chart"
windowPosition [149.25 240 534 247.5]
viewLimits [42.131 481.619 33.949 223.453]
zoomFactor 0.896
chartColor [1 1 1]
screen [1 1 1280 1024 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 + -