📄 ofdm1.mdl
字号:
numOutCols "3"
trunc_flag "None"
}
Block {
BlockType Selector
Name "add cp"
Ports [1, 1]
Position [620, 81, 660, 119]
InputType "Matrix"
Elements "[1 3]"
Rows "[97:128,1:128]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "add cp1"
Ports [1, 1]
Position [465, 81, 505, 119]
InputType "Matrix"
Elements "[1 3]"
Rows "[31:128,1:30]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out1"
Position [720, 93, 750, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 2
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "add cp1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "add cp"
DstPort 1
}
Line {
SrcBlock "t_signal"
SrcPort 1
DstBlock "Multiport\nSelector1"
DstPort 1
}
Line {
SrcBlock "t_pn"
SrcPort 1
Points [235, 0]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "add cp"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "add cp1"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [1, 1]
Position [842, 100, 898, 130]
Orientation "down"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('s/p')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem3"
Location [459, 453, 1066, 948]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 83, 45, 97]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [170, 58, 235, 122]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[480,1]"
}
Block {
BlockType Outport
Name "Out1"
Position [385, 83, 415, 97]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem4"
Ports [1, 1]
Position [845, 260, 895, 295]
Orientation "down"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('s/p')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem4"
Location [381, 422, 1184, 658]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [260, 25, 290, 40]
Orientation "down"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [355, 138, 420, 202]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[160,3]"
}
Block {
BlockType Outport
Name "Out1"
Position [445, 38, 475, 52]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 125]
DstBlock "Reshape"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
Points [75, 0; 0, -125]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem5"
Ports [1, 2]
Position [610, 279, 690, 361]
Orientation "left"
BackgroundColor "orange"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('ofdm \\ndemodulate \\nusing FFT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem5"
Location [426, 632, 1226, 795]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [735, 48, 765, 62]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [535, 38, 575, 72]
Orientation "left"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
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\nConversion1"
Ports [1, 1]
Position [425, 37, 475, 73]
Orientation "left"
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 2]
Position [135, 33, 215, 77]
Orientation "left"
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Columns"
idxCellArray "{3,2:-1:1}"
idxErrMode "Clip Index"
}
Block {
BlockType Selector
Name "del cp1"
Ports [1, 1]
Position [620, 28, 680, 82]
Orientation "left"
InputType "Matrix"
Elements "[1 3]"
Rows "[33:160]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "del zero"
Ports [1, 1]
Position [295, 28, 355, 82]
Orientation "left"
InputType "Matrix"
Elements "[1 3]"
Rows "[99:128 1:31]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out1"
Position [15, 28, 45, 42]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [15, 68, 45, 82]
Orientation "left"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Labels [1, 0]
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "del zero"
DstPort 1
}
Line {
SrcBlock "del cp1"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
Points [-70, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "del cp1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 2
Points [-70, 0]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "del zero"
SrcPort 1
DstBlock "Multiport\nSelector1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem6"
Ports [1, 2]
Position [210, 311, 350, 369]
Orientation "left"
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('decode\\ndeinterleaver\\ndemodulate')\n\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem6"
Location [289, 652, 1057, 1021]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [695, 48, 725, 62]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Matrix\nDeinterleaver"
Ports [1, 1]
Position [255, 31, 350, 89]
Orientation "left"
SourceBlock "commblkintrlv2/Matrix\nDeinterleaver"
SourceType "Matrix Deinterleaver"
ShowPortLabels on
Nrows "30"
Ncols "12"
}
Block {
BlockType Reference
Name "Rectangular QAM\nDemodulator\nBaseband"
Ports [1, 1]
Position [450, 34, 525, 86]
Orientation "left"
FontSize 10
SourceBlock "commdigbbndam3/Rectangular QAM\nDemodulator"
"\nBaseband"
SourceType "Rectangular QAM Demodulator Baseband"
M "64"
OutType "Bit"
Dec "Gray"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
outDtype1 "double"
outDtype2 "double"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [100, 28, 210, 92]
Orientation "left"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -