📄 ofdm_13.mdl
字号:
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Fading"
Location [189, 216, 687, 516]
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 [110, 103, 140, 117]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [200, 81, 295, 139]
SourceBlock "commchan3/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
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"
maxDopplerShift " 100"
pathDelays "[0 1e-6, 3e-6]"
avgPathGaindB " [0 -3, -6]"
normalizePathGains on
seed "73"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
OutputWhenDisabled "reset"
InitialOutput "0+j*eps"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType From
Name "From"
Position [305, 22, 350, 38]
CloseFcn "tagdialog Close"
GotoTag "Byp_1"
TagVisibility "global"
}
Block {
BlockType From
Name "From1"
Position [310, 147, 355, 163]
CloseFcn "tagdialog Close"
GotoTag "Disp"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [310, 267, 355, 283]
CloseFcn "tagdialog Close"
GotoTag "Fade"
TagVisibility "global"
}
Block {
BlockType From
Name "From3"
Position [565, 62, 610, 78]
CloseFcn "tagdialog Close"
GotoTag "Byp_2"
TagVisibility "global"
}
Block {
BlockType From
Name "From4"
Position [575, 242, 620, 258]
CloseFcn "tagdialog Close"
GotoTag "AWGN"
TagVisibility "global"
}
Block {
BlockType Gain
Name "Gain"
Position [105, 280, 135, 310]
Gain "D"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Variable\nInteger Delay1"
Ports [2, 1]
Position [160, 190, 245, 230]
SourceBlock "dspsigops/Variable\nInteger Delay"
SourceType "Variable Integer Delay"
dmax "2*516"
ic "0"
}
Block {
BlockType Outport
Name "Out1"
Position [890, 213, 920, 227]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Delay"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0; 0, -40]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Dispersive"
SrcPort 1
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Bypass 1"
SrcPort 1
Points [25, 0; 0, 80]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Fading"
SrcPort 1
Points [25, 0; 0, -85]
DstBlock "Add1"
DstPort 3
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 95]
DstBlock "AWGN"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Bypass 2"
DstPort 1
}
}
Line {
SrcBlock "Bypass 2"
SrcPort 1
Points [25, 0; 0, 70]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "AWGN"
SrcPort 1
Points [20, 0; 0, -65]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Add2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Channel Select"
SrcPort 1
DstBlock "Channel Enable \nGeneration"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
Points [15, 0]
DstBlock "Bypass 1"
DstPort enable
}
Line {
SrcBlock "From1"
SrcPort 1
Points [10, 0]
DstBlock "Dispersive"
DstPort enable
}
Line {
SrcBlock "From2"
SrcPort 1
Points [10, 0]
DstBlock "Fading"
DstPort enable
}
Line {
SrcBlock "From3"
SrcPort 1
Points [40, 0]
DstBlock "Bypass 2"
DstPort enable
}
Line {
SrcBlock "From4"
SrcPort 1
Points [30, 0]
DstBlock "AWGN"
DstPort enable
}
Line {
SrcBlock "Variable\nInteger Delay1"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Dispersive"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "Bypass 1"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Fading"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Variable\nInteger Delay1"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
Points [30, 0; 0, -40; -140, 0; 0, -45]
DstBlock "Variable\nInteger Delay1"
DstPort 2
}
Annotation {
Name " "
Position [305, 361]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "Note: The channel subsystems output ports are set so that \nwhen a subsytem is not enabled, it produces zeros."
Position [582, 385]
}
}
}
Block {
BlockType Reference
Name "Channel Select"
Ports [1, 1]
Position [490, 140, 555, 170]
BackgroundColor "magenta"
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
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"
low "0"
gain "0"
high "5"
}
Block {
BlockType Product
Name "De-rotate"
Ports [2, 1]
Position [425, 372, 455, 403]
Orientation "left"
BackgroundColor "cyan"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Discrete\nConstant1"
Ports [0, 1]
Position [145, 572, 225, 598]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
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"
Value "nco_nominal"
SampleMode "Discrete"
discreteOutput "Sample-based (interpret vectors as 1-D)"
continuousOutput "Sample-based"
sampTime "2/F_nco"
framePeriod "2/F_nco"
additionalParams on
allowOverrides on
dataType "Inherit via back propagation"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "on"
Ts "2/F_nco"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Discrete\nConstant2"
Ports [0, 1]
Position [350, 51, 375, 79]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
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"
Value "1"
SampleMode "Discrete"
discreteOutput "Sample-based (interpret vectors as 1-D)"
continuousOutput "Sample-based"
sampTime "inf"
framePeriod "inf"
additionalParams on
allowOverrides on
dataType "Inherit via back propagation"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "on"
Ts "inf"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Discrete\nConstant3"
Ports [0, 1]
Position [290, 446, 315, 474]
Orientation "left"
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
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"
Value "1"
SampleMode "Discrete"
discreteOutput "Sample-based (interpret vectors as 1-D)"
continuousOutput "Sample-based"
sampTime "inf"
framePeriod "inf"
additionalParams on
allowOverrides on
dataType "Inherit via back propagation"
isSigned on
wo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -