📄 ofdmsjsu.mdl
字号:
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "64"
Overlap "32"
inpFftLenInherit on
FFTlength "64"
numAvg "100"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[395 41 376 326]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-35"
YMax "10"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [805, 185, 840, 215]
BackgroundColor "cyan"
SampleTime "1e-6"
}
Block {
BlockType Outport
Name "CHEST"
Position [870, 118, 900, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "FFT1"
SrcPort 1
DstBlock "Frame Status\nConversion3"
DstPort 1
}
Line {
SrcBlock "Remove Cyclic\nPrefix1"
SrcPort 1
DstBlock "FFT1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 35]
DstBlock "Math\nFunction"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "Frame Status\nConversion3"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
Points [100, 0]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, -30]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [30, 0]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [0, 20]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Pilots"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Remove Cyclic\nPrefix1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock " "
DstPort 1
}
Branch {
DstBlock "CHEST"
DstPort 1
}
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Spectrum\nestimated"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Multipath channel"
Ports [1, 1]
Position [210, 114, 280, 166]
BackgroundColor "yellow"
DropShadow on
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dsparch4/Digital Filter"
SourceType "Digital Filter"
TypePopup "FIR (all zeros)"
IIRFiltStruct "Direct form II transposed"
AllPoleFiltStruct "Direct form"
FIRFiltStruct "Direct form"
CoeffSource "Specify via dialog"
NumCoeffs "h"
DenCoeffs "[1 0.1]"
BiQuadCoeffs "[1 0.3 0.4 1 0.1 0.2]"
LatticeCoeffs "[0.2 0.4]"
denIgnore on
FiltPerSampPopup "One filter per frame"
IC "0"
ICnum "0"
ICden "0"
additionalParams off
allowOverrides on
showCoeff off
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
secondCoeffMode "Same as numerator"
secondCoeffWordLength "16"
secondCoeffFracLength "15"
thirdCoeffMode "Same as input"
thirdCoeffWordLength "16"
thirdCoeffFracLength "15"
showOut off
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
showAcc off
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
showMpy off
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
showMem off
memoryMode "Same as accumulator"
memoryWordLength "16"
memoryFracLength "15"
roundingMode "Floor"
overflowMode off
ScaleValues "1"
scaleValueFracLength "14"
tapSumMode "Same as input"
tapSumWordLength "32"
tapSumFracLength "30"
stageIOMode "Same as input"
stageIOWordLength "16"
stageInFracLength "15"
stageOutFracLength "15"
LockScale off
}
Block {
BlockType SubSystem
Name "OFDM\nRECEIVER"
Ports [2, 1]
Position [640, 127, 745, 178]
BackgroundColor "green"
DropShadow on
NamePlacement "alternate"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "OFDM\nRECEIVER"
Location [180, 128, 1106, 527]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [135, 143, 165, 157]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "CHEST"
Position [130, 258, 160, 272]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [470, 24, 510, 56]
BackgroundColor "cyan"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [305, 133, 345, 167]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm on
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [365, 133, 410, 167]
NamePlacement "alternate"
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [565, 135, 630, 185]
SourceBlock "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "8"
OutType "Integer"
Dec "Binary"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [490, 142, 520, 173]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Selector
Name "Remove Cyclic\nPrefix"
Ports [1, 1]
Position [225, 128, 270, 172]
Elements "[17:80]"
InputPortWidth "80"
}
Block {
BlockType Reference
Name "Spectrum\nreceived"
Ports [1]
Position [615, 15, 650, 65]
BackgroundColor "cyan"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "64"
Overlap "32"
inpFftLenInherit on
FFTlength "64"
numAvg "100"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[400 423 376 326]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-35"
YMax "-5"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [535, 25, 570, 55]
BackgroundColor "cyan"
SampleTime "1e-6"
}
Block {
BlockType Outport
Name "Out"
Position [685, 153, 715, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Spectrum\nreceived"
DstPort 1
}
Line {
SrcBlock "Remove Cyclic\nPrefix"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Remove Cyclic\nPrefix"
DstPort 1
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -