📄 ofdmnew.mdl
字号:
LatchInput off
}
Block {
BlockType Gain
Name " "
Position [265, 144, 300, 166]
ShowName off
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name " 1"
Position [180, 26, 305, 44]
ShowName off
Value "complex(0,0)*ones(28,1)"
}
Block {
BlockType Gain
Name "."
Position [270, 84, 305, 106]
ShowName off
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Selector
Name "Add Cyclic\nPrefix"
Ports [1, 1]
Position [430, 166, 480, 204]
Elements "[193:256 1:256]"
Rows "[193:256 1:256]"
InputPortWidth "256"
OutputPortSize "[(-2)]"
}
Block {
BlockType Constant
Name "Constant"
Position [70, 16, 135, 34]
ShowName off
Value "complex(1,0)"
}
Block {
BlockType Constant
Name "Constant2"
Position [175, 326, 300, 344]
ShowName off
Value "complex(0,0)*ones(27,1)"
}
Block {
BlockType Constant
Name "Constant3"
Position [215, 176, 300, 194]
ShowName off
Value "complex(0,0)"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [365, 169, 405, 201]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
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 "Matrix\nConcatenation"
Ports [21, 1]
Position [330, 35, 340, 335]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "21"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 10]
Position [70, 37, 135, 333]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:12, 13:36, 37:60, 61:84, 85:96, 97:108, "
"109:132, 133:156, 157:180, 181:192}"
idxErrMode "Clip Index"
}
Block {
BlockType Outport
Name "Out"
Position [505, 178, 535, 192]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Multiport\nSelector"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 9
DstBlock "Matrix\nConcatenation"
DstPort 18
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 8
DstBlock "Matrix\nConcatenation"
DstPort 16
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 7
DstBlock "Matrix\nConcatenation"
DstPort 14
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 6
DstBlock "Matrix\nConcatenation"
DstPort 12
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 5
DstBlock "Matrix\nConcatenation"
DstPort 10
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 4
DstBlock "Matrix\nConcatenation"
DstPort 8
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 3
DstBlock "Matrix\nConcatenation"
DstPort 6
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 2
DstBlock "Matrix\nConcatenation"
DstPort 4
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 10
DstBlock "Matrix\nConcatenation"
DstPort 20
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0; 0, 40]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Branch {
Points [0, 30]
Branch {
Points [0, 30]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 7
}
Branch {
Points [0, 30]
Branch {
DstBlock " "
DstPort 1
}
Branch {
Points [0, 60]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 13
}
Branch {
Points [0, 30]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 15
}
Branch {
Points [0, 30]
Branch {
Points [0, 30]
DstBlock "Matrix\nConcatenation"
DstPort 19
}
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 17
}
}
}
}
}
}
Branch {
DstBlock "."
DstPort 1
}
}
}
Line {
SrcBlock " 1"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 21
}
Line {
SrcBlock "."
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 5
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 9
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 11
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Add Cyclic\nPrefix"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Add Cyclic\nPrefix"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Spectrum\nScope1"
Ports [1]
Position [510, 126, 540, 174]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "5"
DisplayProperties off
AxisGrid off
Memory off
FrameNumber off
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-51.7490793915629"
YMax "-17.1080597361603"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "Spectrum\nScope2"
Ports [1]
Position [510, 281, 540, 329]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "5"
DisplayProperties off
AxisGrid off
Memory off
FrameNumber off
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-51.7490793915629"
YMax "-17.1080597361603"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Line {
SrcBlock "OFDM\nSymbols"
SrcPort 1
Points [35, 0; 0, 55]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
DstBlock "Buffer1"
DstPort 1
}
}
Line {
SrcBlock "Data From MAC"
SrcPort 1
DstBlock "IQ Mapper"
DstPort 1
}
Line {
SrcBlock "IQ Mapper"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "OFDM\nSymbols"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Spectrum\nScope1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 50]
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Spectrum\nScope2"
DstPort 1
}
Annotation {
Name "OFDM with 64QAM"
Position [250, 30]
HorizontalAlignment "left"
DropShadow on
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 249&5 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -