📄 gardner_intdelay.mdl
字号:
}
Block {
BlockType Gain
Name "Int Gain"
Position [105, 101, 155, 129]
Gain "ki"
}
Block {
BlockType Gain
Name "Prop Gain"
Position [100, 25, 165, 55]
Gain "kp"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 105, 215, 125]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [340, 70, 360, 90]
ShowName off
IconShape "round"
Inputs "+|+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [385, 73, 415, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Delay"
SrcPort 1
Points [-35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 105, 0]
Branch {
Points [0, 35]
DstBlock "Delay"
DstPort 1
}
Branch {
Points [25, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Prop Gain"
SrcPort 1
Points [180, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Int Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Prop Gain"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Int Gain"
DstPort 1
}
}
}
}
Block {
BlockType Outport
Name "Out"
Position [365, 58, 395, 72]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "In"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "by 2"
Ports [0, 1]
Position [255, 49, 320, 81]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Pulse Divider"
MaskDescription "Divides the output square pulse by a fa"
"ctor."
MaskPromptString "Division factor:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "divFact=@1;"
MaskDisplay "disp('Pulse Divider');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "outSamp"
System {
Name "by 2"
Location [689, 523, 1114, 661]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant1"
Position [125, 75, 145, 95]
Orientation "up"
ShowName off
}
Block {
BlockType Constant
Name "Constant2"
Position [30, 26, 70, 54]
ShowName off
Value "1/divFact"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [295, 37, 345, 63]
ShowName off
Expr "u==0"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [215, 34, 250, 66]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [155, 34, 190, 61]
ShowName off
Operator "mod"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [100, 30, 120, 50]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "Out1"
Position [370, 43, 400, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, -15]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 60; -155, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Fcn4"
DstPort 1
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Error"
Position [445, 128, 475, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Gardner TED"
DstPort 1
}
Line {
SrcBlock "Gardner TED"
SrcPort 1
DstBlock "Loop Filter"
DstPort 1
}
Line {
SrcBlock "Loop Filter"
SrcPort 1
DstBlock "Error"
DstPort 1
}
Line {
SrcBlock "by 2"
SrcPort 1
Points [25, 0]
DstBlock "Loop Filter"
DstPort trigger
}
}
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [140, 76, 190, 124]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Outport
Name "Symbols"
Position [670, 93, 700, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Symbol CLK"
Position [625, 63, 655, 77]
NamePlacement "alternate"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Frame CLK"
Position [625, 113, 655, 127]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Error Signal"
Position [210, 278, 240, 292]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [-5, 0; 45, 0]
Branch {
DstBlock "Timing Detector"
DstPort trigger
}
Branch {
DstBlock "Resample"
DstPort trigger
}
}
Line {
SrcBlock "Timing Detector"
SrcPort 1
Points [0, 0; -70, 0]
Branch {
Points [-55, 0; 0, -50]
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Error Signal"
DstPort 1
}
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Resample"
SrcPort 3
Points [55, 0; 0, 110]
DstBlock "Timing Detector"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Resample"
DstPort 1
}
Line {
SrcBlock "Rebuffer the symbols"
SrcPort 1
DstBlock "Symbols"
DstPort 1
}
Line {
SrcBlock "Rebuffer the symbols"
SrcPort 2
DstBlock "Frame CLK"
DstPort 1
}
Line {
SrcBlock "Resample"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -25]
DstBlock "Goto2"
DstPort 1
}
Branch {
Points [120, 0]
Branch {
DstBlock "Symbol CLK"
DstPort 1
}
Branch {
DstBlock "Rebuffer the symbols"
DstPort trigger
}
}
}
Line {
SrcBlock "Resample"
SrcPort 2
Points [75, 0]
DstBlock "Rebuffer the symbols"
DstPort 1
}
}
}
Block {
BlockType Goto
Name "Goto"
Position [160, 41, 215, 59]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Tx_Data"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [805, 98, 865, 122]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Rx_Data"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [810, 141, 865, 159]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Delay"
TagVisibility "local"
}
Block {
BlockType HitCross
Name "Hit Crossing"
Ports [1, 1]
Position [495, 300, 525, 330]
HitCrossingDirection "rising"
}
Block {
BlockType Reference
Name "M-PSK Modulator\nBaseband"
Ports [1, 1]
Position [170, 74, 245, 126]
SourceBlock "commdigbbndpm2/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "g1.M"
InType "Integer"
Enc "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType SubSystem
Name "Model Settings"
Ports []
Position [20, 194, 106, 225]
BackgroundColor "orange"
DropShadow on
ShowName off
FontSize 9
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Initial Model Settings"
MaskDescription "Sets the different parameters for a simulation "
"run."
MaskHelp "eval('commdemohelp');"
MaskPromptString "Alphabet size (M):|Symbol period (tsym):|Receiv"
"er symbol frequency (% of transmitter): |SNR (snrdB):|Oversampling factor (L)"
":|Raised cosine filter rolloff factor (rol
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -