📄 ofdm.mdl
字号:
SourceType "Kasami Sequence Generator"
genPoly "[1 0 0 0 0 0 0 1 1]"
iniState "[0 0 0 0 0 0 0 1]"
codeIdx "1"
shift "0"
ts "4e-6/8"
frameBased on
sampPerFrame "2"
reset off
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [11, 1]
Position [655, 176, 710, 474]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "11"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 6]
Position [405, 179, 470, 471]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:5,6:18,19:24,25:30,31:43,44:48}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Multiport\nSelector2"
Ports [1, 4]
Position [475, 52, 520, 128]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1 2 3 4}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [290, 65, 330, 115]
NamePlacement "alternate"
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Bit"
Enc "Gray"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType SubSystem
Name "Zero pad for OFDM"
Ports [1, 1]
Position [770, 300, 825, 350]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Zero pad\\nfor OFDM');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Zero pad for OFDM"
Location [191, 421, 703, 556]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 53, 60, 67]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [230, 38, 280, 82]
Elements "[27:64 1:26]"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [120, 42, 165, 78]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "64"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 53, 390, 67]
IconDisplay "Port number"
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [1070, 318, 1100, 332]
IconDisplay "Port number"
}
Line {
SrcBlock "Zero pad for OFDM"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Add Cyclic\nPrefix"
DstPort 1
}
Line {
SrcBlock "Add Cyclic\nPrefix"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Zero pad for OFDM"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Multiport\nSelector1"
DstPort 1
}
Line {
SrcBlock "Kasami\nSequence\nGenerator"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Multiport\nSelector2"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 6
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 1
Points [55, 0; 0, 165]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 2
Points [45, 0; 0, 195]
DstBlock "Matrix\nConcatenation1"
DstPort 4
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 3
Points [35, 0; 0, 275]
DstBlock "Matrix\nConcatenation1"
DstPort 8
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 4
Points [25, 0; 0, 305]
DstBlock "Matrix\nConcatenation1"
DstPort 10
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 2
DstBlock "Matrix\nConcatenation1"
DstPort 3
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 3
DstBlock "Matrix\nConcatenation1"
DstPort 5
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 4
DstBlock "Matrix\nConcatenation1"
DstPort 7
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 5
DstBlock "Matrix\nConcatenation1"
DstPort 9
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 6
DstBlock "Matrix\nConcatenation1"
DstPort 11
}
Annotation {
Name "Based on HIPERLAN 2 Simulink\nCommunication"
"s Blockset Demo"
Position [951, 146]
}
}
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [280, 41, 350, 89]
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Bit"
Enc "Gray"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType Reference
Name "Received Signal"
Tag "ScatterPlot"
Ports [1]
Position [120, 305, 170, 355]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "300"
numNewFrames "80"
LineMarkers "."
LineColors "r"
fading on
render off
AxisGrid on
xMin "-2"
xMax "2"
yMin "-2"
yMax "2"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[188 537 432 432]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType ZeroOrderHold
Name "Receiver clock\nsampling error"
Position [470, 311, 495, 349]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
SampleTime "(1+e)*4e-6/80"
}
Block {
BlockType Reference
Name "Spectrum"
Ports [1]
Position [265, 385, 305, 435]
Orientation "left"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "80"
Overlap "0"
inpFftLenInherit on
FFTlength "128"
numAvg "40"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[627 537 478 432]"
AxisProperties on
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "4e-6/192"
XLabel "Samples"
YUnits "dB"
YMin "-55"
YMax "-10"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "Static timing error \n(80 + integer) "
Ports [1, 1]
Position [535, 317, 575, 343]
Orientation "left"
FontName "Arial"
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "80+dT"
ic "0"
reset_popup "None"
}
Block {
BlockType ZeroOrderHold
Name "Ts "
Position [687, 180, 723, 200]
Orientation "down"
NamePlacement "alternate"
SampleTime "4e-6/80"
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "OFDM Transmitter"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "OFDM Transmitter"
SrcPort 1
Points [175, 0]
DstBlock " "
DstPort 1
}
Line {
SrcBlock "OFDM Receiver"
SrcPort 1
DstBlock "Received Signal"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock " Ts "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Ts "
DstPort 1
}
Line {
SrcBlock " Ts "
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Ts "
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Static timing error \n(80 + integer) "
SrcPort 1
DstBlock "Receiver clock\nsampling error"
DstPort 1
}
Line {
SrcBlock "Receiver clock\nsampling error"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Static timing error \n(80 + integer) "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0; -35, 0]
Branch {
DstBlock "OFDM Receiver"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Spectrum"
DstPort 1
}
}
Annotation {
Name "EE 252 - Spring 2004\nSan Jose State University"
"\nMarch 2004"
Position [329, 221]
FontName "Arial"
FontSize 12
}
Annotation {
Name "Illustrating the effects of synchronization \ne"
"rrors in OFDM with QPSK modulation"
Position [330, 176]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name " "
Position [239, 110]
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 249&5 "
}
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"# 0 0 , 1D94 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -