ofdm02.mdl
来自「OFDM仿真程序 是关于同步方面的 OFDM系统中的同步技术研究」· MDL 代码 · 共 1,706 行 · 第 1/4 页
MDL
1,706 行
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 113, 45, 127]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [295, 39, 335, 71]
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 [2, 1]
Position [180, 34, 235, 76]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [625, 54, 680, 96]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 1]
Position [500, 162, 550, 198]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Columns"
idxCellArray "{2}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [95, 106, 140, 134]
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Bit"
Enc "Binary"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [40, 20, 80, 80]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [15, 33, 95, 77]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1/18000"
frameBased on
sampPerFrame "16"
reset off
outDataType "double"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [145, 33, 225, 77]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Negative"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [280, 37, 325, 73]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "32"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [440, 48, 470, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [515, 25, 555, 85]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem2"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [330, 24, 385, 66]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 1]
Position [80, 27, 130, 63]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Columns"
idxCellArray "{1}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 1]
Position [185, 27, 235, 63]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:16}"
idxErrMode "Clip Index"
}
Block {
BlockType Outport
Name "Out1"
Position [455, 38, 485, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 1
Points [0, 0]
DstBlock "Multiport\nSelector1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
Points [0, -10; 35, 0]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Multiport\nSelector"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Position [208, 32]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Selector
Name "add cp\n"
Ports [1, 1]
Position [750, 36, 790, 74]
InputType "Matrix"
Elements "[1 3]"
Rows "[25:32,1:32]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out1"
Position [830, 48, 860, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "add cp\n"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Subsystem"
SrcPort 1
Points [80, 0]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
Points [110, 0]
Branch {
Points [0, 125]
DstBlock "Multiport\nSelector1"
DstPort 1
}
Branch {
DstBlock "Subsystem2"
DstPort 1
}
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
Points [25, 0; 0, 10]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
Points [35, 0; 0, -95]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "add cp\n"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [755, 85, 795, 145]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem2"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [305, 33, 345, 67]
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"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?