📄 pll_d1.mdl
字号:
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "sampler & process"
Location [109, 131, 998, 656]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in"
Position [35, 23, 65, 37]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "sample_size"
Position [30, 148, 60, 162]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [110, 65, 130, 85]
}
Block {
BlockType Abs
Name "Abs"
Position [370, 325, 400, 355]
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Difference"
Ports [1, 1]
Position [285, 322, 345, 358]
SourceBlock "simulink/Discrete/Difference"
SourceType "Difference"
ShowPortLabels on
ICPrevInput "0.0"
OutputDataTypeScalingMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
LockScale off
RndMeth "Floor"
DoSatur off
}
Block {
BlockType Gain
Name "Gain"
Position [315, 15, 345, 45]
Gain "1e12"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [720, 115, 750, 145]
Gain "1e12"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [715, 205, 745, 235]
Gain "1e12"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [720, 295, 750, 325]
Gain "1e12"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Maximum"
Ports [2, 1]
Position [480, 295, 535, 335]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Maximum"
SourceType "Maximum"
fcn "Running"
reset "Rising edge"
additionalParams off
allowOverrides on
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 2]
Position [350, 103, 425, 172]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [411, 578, 798, 749]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 28, 70, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Reset"
Position [25, 73, 55, 87]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Maximum1"
Ports [2, 1]
Position [150, 90, 205, 130]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspstat3/Maximum"
SourceType "Maximum"
fcn "Running"
reset "Non-zero sample"
additionalParams off
allowOverrides on
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Minimum"
Ports [2, 1]
Position [150, 25, 205, 65]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dspstat3/Minimum"
SourceType "Minimum"
fcn "Running"
reset "Non-zero sample"
additionalParams off
allowOverrides on
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [225, 93, 260, 127]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [225, 28, 260, 62]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Min"
Position [285, 38, 315, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Max"
Position [285, 103, 315, 117]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Maximum1"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Minimum"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Reset"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -25]
DstBlock "Minimum"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Maximum1"
DstPort 2
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Minimum"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Maximum1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "Max"
DstPort 1
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
DstBlock "Min"
DstPort 1
}
}
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [305, 258, 340, 292]
SampleTime "-1"
}
Block {
BlockType Reference
Name "Variance"
Ports [2, 1]
Position [470, 230, 545, 265]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspstat3/Variance"
SourceType "Variance"
run on
reset_popup "Rising edge"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType SubSystem
Name "reset control"
Ports [1, 1]
Position [135, 131, 205, 179]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "reset control"
Location [377, 478, 801, 657]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "count"
Position [25, 88, 55, 102]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant2"
Position [25, 35, 45, 55]
ShowName off
}
Block {
BlockType Fcn
Name "Fcn4"
Position [290, 42, 340, 68]
ShowName off
Expr "u<1"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [225, 39, 250, 66]
ShowName off
Operator "mod"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [115, 35, 135, 55]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [155, 25, 190, 65]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out1"
Position [365, 48, 395, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [10, 0; 5, 0]
Branch {
DstBlock "Fcn4"
DstPort 1
}
Branch {
Points [0, 80; -145, 0]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "count"
SrcPort 1
Points [150, 0]
DstBlock "Math\nFunction"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "sampled quantities"
Ports [4, 3, 0, 1]
Position [580, 85, 690, 350]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "sampled quantities"
Location [275, 315, 801, 730]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Min_in"
Position [65, 133, 95, 147]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Max_in"
Position [65, 73, 95, 87]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "run_var_in"
Position [65, 208, 95, 222]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "1_max_in"
Position [65, 283, 95, 297]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [225, 20, 245, 40]
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [215, 200, 245, 230]
Operator "sqrt"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 70, 255, 90]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Outport
Name "P-P"
Position [330, 73, 360, 87]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -