📄 timing_recovery_1.mdl
字号:
gain "0"
high "0.2"
}
Block {
BlockType SubSystem
Name "Enabled Scatter Plot"
Ports [1, 0, 1]
Position [625, 420, 680, 490]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Enabled Scatter Plot"
Location [234, 303, 592, 537]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "I/Q"
Position [25, 48, 55, 62]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [80, 90, 100, 110]
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope2"
Tag "ScatterPlot"
Ports [1]
Position [140, 29, 215, 81]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "31"
numNewFrames "7"
LineMarkers "."
LineColors "b"
fading off
render on
AxisGrid on
xMin "-2"
xMax "2"
yMin "-2"
yMax "2"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[756 432 292 292]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Line {
SrcBlock "I/Q"
SrcPort 1
DstBlock "Discrete-Time\nScatter Plot\nScope2"
DstPort 1
}
Annotation {
Name "You can add demodulator, FEC, etc. in this enabled subsystem."
Position [180, 150]
}
}
}
Block {
BlockType SubSystem
Name "Farrow Variable Delay"
Ports [2, 1]
Position [285, 244, 365, 311]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Farrow Variable Delay"
Location [65, 502, 571, 805]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Xin"
Position [25, 93, 55, 107]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Mu"
Position [25, 143, 55, 157]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SubSystem
Name "Filter State"
Ports [1, 1]
Position [135, 70, 210, 130]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Filter State"
Location [65, 78, 684, 313]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 163, 50, 177]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [125, 150, 180, 190]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [235, 150, 290, 190]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay2"
Ports [1, 1]
Position [355, 150, 410, 190]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [485, 48, 490, 132]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [525, 83, 555, 97]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [20, 0; 15, 0]
Branch {
DstBlock "Delay"
DstPort 1
}
Branch {
Points [0, -110]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Delay"
SrcPort 1
Points [-5, 0; 25, 0]
Branch {
Points [0, -90]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 0]
DstBlock "Delay1"
DstPort 1
}
}
Line {
SrcBlock "Delay1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -70]
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Delay2"
DstPort 1
}
}
Line {
SrcBlock "Delay2"
SrcPort 1
Points [30, 0; 0, -50]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "MADS"
Ports [2, 1]
Position [270, 74, 360, 176]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "MADS"
Location [164, 172, 889, 404]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 138, 60, 152]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "mu"
Position [30, 33, 60, 47]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [195, 109, 200, 176]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Gain
Name "Filter coefficients"
Position [95, 126, 160, 164]
Gain "[b3;b2;b1;b0] % filter coefficients "
Multiplication "Matrix(K*u)"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "P1"
Ports [2, 1]
Position [295, 74, 320, 101]
CollapseMode "All dimensions"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "P2"
Ports [2, 1]
Position [405, 69, 430, 96]
CollapseMode "All dimensions"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "P3"
Ports [2, 1]
Position [510, 64, 535, 91]
CollapseMode "All dimensions"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [345, 80, 365, 100]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [450, 75, 470, 95]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [560, 70, 580, 90]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Yout"
Position [640, 73, 670, 87]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "P3"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "P2"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Filter coefficients"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Filter coefficients"
DstPort 1
}
Line {
SrcBlock "mu"
SrcPort 1
Points [0, 0; 195, 0]
Branch {
Points [125, 0]
Branch {
Points [100, 0; 0, 30]
DstBlock "P3"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "P2"
DstPort 1
}
}
Branch {
Points [0, 40]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -