📄 rscode_awgn_mqam.mdl
字号:
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
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 "rscode_AWGN_MQAM"
Location [21, 75, 862, 435]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [125, 185, 165, 220]
Orientation "up"
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [125, 60, 165, 95]
Orientation "down"
NamePlacement "alternate"
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [370, 16, 420, 64]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [365, 245, 415, 295]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "N"
V "0"
ic "0"
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [130, 110, 160, 140]
Orientation "down"
NamePlacement "alternate"
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "K"
}
Block {
BlockType Reference
Name " "
Ports [1, 1]
Position [128, 295, 162, 320]
Orientation "down"
NamePlacement "alternate"
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [741, 140, 819, 190]
Orientation "down"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 11
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "135436"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "40"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType Display
Name "Average number\nof corrected errors"
Ports [1]
Position [240, 323, 335, 347]
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [280, 134, 365, 196]
ShowName off
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [570, 109, 655, 171]
ShowName off
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1]
Position [180, 138, 260, 187]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "2*N"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop on
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Error Rate Calculation1"
Ports [2, 1]
Position [470, 112, 550, 163]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "M-QAM Demodulator"
Ports [1, 1]
Position [465, 241, 565, 299]
Orientation "left"
BackgroundColor "yellow"
NamePlacement "alternate"
FontName "Arial"
FontSize 11
SourceBlock "commdigbbndam2/Rectangular QAM\nDemodulator\nBa"
"seband"
SourceType "Rectangular QAM Demodulator Baseband"
M "M"
OutType "Integer"
Dec "Gray"
PowType "Average Power"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "M-QAM Modulator"
Ports [1, 1]
Position [470, 12, 570, 68]
BackgroundColor "yellow"
FontName "Arial"
FontSize 11
SourceBlock "commdigbbndam2/Rectangular QAM\nModulator\nBase"
"band"
SourceType "Rectangular QAM Modulator Baseband"
M "M"
InType "Integer"
Enc "Gray"
PowType "Average Power"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [185, 319, 220, 351]
NamePlacement "alternate"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run on
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "RS (N,K) code, GF(M) "
Ports [1, 2]
Position [185, 244, 290, 291]
Orientation "left"
BackgroundColor "cyan"
NamePlacement "alternate"
FontName "Arial"
FontSize 11
SourceBlock "commblkcod2/Integer-Output\nRS Decoder"
SourceType "Integer-Output RS Decoder"
n "N"
k "K"
specPrimPoly off
primPoly "[1 0 0 1 1]"
specGenPoly off
genPoly "rsgenpoly(7,3)"
showNumErr on
}
Block {
BlockType Reference
Name "RS (N,K) code, GF(M)"
Ports [1, 1]
Position [190, 16, 290, 64]
BackgroundColor "cyan"
FontName "Arial"
FontSize 11
SourceBlock "commblkcod2/Integer-Input\nRS Encoder"
SourceType "Integer-Input RS Encoder"
n "N"
k "K"
specPrimPoly off
primPoly "[1 0 0 1 1]"
specGenPoly off
genPoly "rsgenpoly(7,3)"
}
Block {
BlockType Reference
Name "Random M-ary\nInteger Generator"
Ports [0, 1]
Position [20, 18, 100, 62]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "M"
seed "387541"
Ts "1e-8/4"
frameBased on
sampPerFrame "K"
orient off
}
Block {
BlockType Reference
Name "Received\nconstellation"
Tag "ScatterPlot"
Ports [1]
Position [640, 210, 685, 260]
NamePlacement "alternate"
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "500"
numNewFrames "50"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.5"
xMax "1.5"
yMin "-1.5"
yMax "1.5"
inphaseLabel "In-phase"
quadratureLabel "Quadrature"
openScopeAtSimStart on
FrameNumber off
FigPos "[22 15 326 317]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Line {
SrcBlock "RS (N,K) code, GF(M)"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock "RS (N,K) code, GF(M) "
SrcPort 1
Points [-35, 0]
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Error Rate Calculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [20, 0]
Branch {
Points [0, 85]
DstBlock "Error Rate Calculation1"
DstPort 1
}
Branch {
DstBlock "M-QAM Modulator"
DstPort 1
}
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "RS (N,K) code, GF(M) "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [0, -5]
DstBlock "Error Rate Calculation"
DstPort 2
}
Line {
SrcBlock "Error Rate Calculation1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "RS (N,K) code, GF(M) "
SrcPort 2
DstBlock " "
DstPort 1
}
Line {
SrcBlock "M-QAM Modulator"
SrcPort 1
Points [205, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "M-QAM Demodulator"
SrcPort 1
Points [-15, 0]
Branch {
Points [0, -120]
DstBlock "Error Rate Calculation1"
DstPort 2
}
Branch {
DstBlock " "
DstPort 1
}
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 5]
DstBlock "Error Rate Calculation"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 75; -175, 0]
Branch {
DstBlock "M-QAM Demodulator"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Received\nconstellation"
DstPort 1
}
}
Line {
SrcBlock "Mean"
SrcPort 1
DstBlock "Average number\nof corrected errors"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 10]
DstBlock "Mean"
DstPort 1
}
Line {
SrcBlock "Random M-ary\nInteger Generator"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "RS (N,K) code, GF(M)"
DstPort 1
}
Branch {
DstBlock " "
DstPort 1
}
}
Annotation {
Name "A Reed-Solomon M-QAM system over AWGN\nCopyrigh"
"t (c) 2007. Robert Morelos-Zaragoza"
Position [674, 326]
DropShadow on
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Channel SER"
Position [610, 96]
}
Annotation {
Name "Decoder SER"
Position [321, 123]
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 365A;@"
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -