📄 ofdm_16qam2.mdl
字号:
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Rounding
Operator "floor"
SampleTime "-1"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Terminator
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "OFDM_16QAM2"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "105"
ReportName "simulink-default.rpt"
Block {
BlockType Gain
Name " "
Position [595, 89, 630, 111]
ShowName off
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name " 1"
Position [520, 13, 645, 47]
ShowName off
Value "complex(0,0)*ones(28,1)"
}
Block {
BlockType Gain
Name " 2"
Position [590, 129, 625, 151]
ShowName off
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [820, 215, 900, 255]
Orientation "down"
ShowName off
FontSize 8
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "1"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "40"
SNRdB "60"
bitsPerSym "2"
Ps "0.01"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType Selector
Name "Add Cyclic\nPrefix"
Ports [1, 1]
Position [765, 91, 815, 129]
Elements "[193:256 1:256]"
Rows "[193:256 1:256]"
InputPortWidth "256"
OutputPortSize "[(-2)]"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [205, 18, 285, 62]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "4"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter1"
Ports [1, 1]
Position [95, 373, 175, 407]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "4"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [885, 177, 905, 203]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "256"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [880, 297, 900, 323]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "256"
V "0"
ic "0"
}
Block {
BlockType Constant
Name "Constant"
Position [445, 16, 510, 34]
ShowName off
Value "complex(1,0)"
}
Block {
BlockType Constant
Name "Constant2"
Position [490, 229, 635, 261]
ShowName off
Value "complex(0,0)*ones(27,1)"
}
Block {
BlockType Constant
Name "Constant3"
Position [560, 151, 645, 169]
ShowName off
Value "complex(0,0)"
}
Block {
BlockType Reference
Name "Data Payload"
Ports [1, 1]
Position [95, 25, 185, 55]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "4"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [428, 175, 472, 230]
Orientation "down"
NamePlacement "alternate"
ShowName off
Diagnostics "AllowInheritedTsInSrc"
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "64"
numNewFrames "64"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.04357"
xMax "1.0483135"
yMin "-1.04357"
yMax "1.0483135"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[232 106 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope1"
Tag "ScatterPlot"
Ports [1]
Position [428, 235, 472, 290]
Orientation "up"
ShowName off
Diagnostics "AllowInheritedTsInSrc"
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "64"
numNewFrames "64"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.04739264786426"
xMax "1.05223920685003"
yMin "-1.04691761829795"
yMax "1.05271423641634"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[232 106 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [15, 158, 140, 212]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 8
Format "long"
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [205, 163, 260, 207]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontSize 8
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "grayBER"
RsMode2 off
stop on
numErr "1000000000"
maxBits "10000000"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [730, 393, 770, 427]
Orientation "left"
NamePlacement "alternate"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
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 [665, 394, 710, 426]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "General QAM\nDemodulator\nBaseband"
Ports [1, 1]
Position [305, 364, 380, 416]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commdigbbndam2/General QAM\nDemodulator\nBaseba"
"nd"
SourceType "General QAM Demodulator Baseband"
SigCon "[0.3162 + 0.3162i 0.3162 + 0.9487i 0.3162"
" - 0.3162i 0.3162 - 0.9487i 0.9487 + 0.3162i 0.9487 + 0.9487i 0.9"
"487 - 0.3162i 0.9487 - 0.9487i -0.3162 + 0.3162i -0.3162 + 0.9487i -"
"0.3162 - 0.3162i -0.3162 - 0.9487i -0.9487 + 0.3162i -0.9487 + 0.9487i "
" -0.9487 - 0.3162i -0.9487 - 0.9487i]'"
numSamp "1"
}
Block {
BlockType Reference
Name "General QAM\nModulator\nBaseband"
Ports [1, 1]
Position [305, 14, 380, 66]
SourceBlock "commdigbbndam2/General QAM\nModulator\nBaseband"
SourceType "General QAM Modulator Baseband"
SigCon "[0.3162 + 0.3162i 0.3162 + 0.9487i 0.3162"
" - 0.3162i 0.3162 - 0.9487i 0.9487 + 0.3162i 0.9487 + 0.9487i 0.9"
"487 - 0.3162i 0.9487 - 0.9487i -0.3162 + 0.3162i -0.3162 + 0.9487i -"
"0.3162 - 0.3162i -0.3162 - 0.9487i -0.9487 + 0.3162i -0.9487 + 0.9487i "
" -0.9487 - 0.3162i -0.9487 - 0.9487i]'"
numSamp "1"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [710, 94, 750, 126]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
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 "Integer to Bit\nConverter"
Ports [1, 1]
Position [200, 368, 280, 412]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "4"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [400, 25, 430, 55]
ShowName off
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [405, 375, 435, 405]
Orientation "left"
NamePlacement "alternate"
ShowName off
Operator "conj"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [21, 1]
Position [695, 36, 705, 184]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "21"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 10]
Position [490, 50, 525, 185]
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 Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [15, 20, 80, 60]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "16"
seed "37"
Ts "1/192"
frameBased on
sampPerFrame "192"
orient off
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -