📄 bch_code.mdl
字号:
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [565, 190, 645, 220]
Orientation "down"
NamePlacement "alternate"
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "120501"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "6"
SNRdB "10"
Ps "1"
Tsym "10^-3/9.6"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [350, 470, 430, 500]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "123456"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "0"
SNRdB "10"
Ps "1"
Tsym "10^-3/9.6"
variance "1"
}
Block {
BlockType Reference
Name "BCH Decoder"
Ports [1, 2]
Position [290, 305, 370, 345]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commblkcod2/BCH Decoder"
SourceType "BCH Decoder"
n "127"
k "120"
t "1"
}
Block {
BlockType Reference
Name "BCH Encoder"
Ports [1, 1]
Position [245, 93, 325, 137]
SourceBlock "commblkcod2/BCH Encoder"
SourceType "BCH Encoder"
n "127"
k "120"
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [440, 300, 520, 350]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [475, 460, 555, 510]
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [455, 93, 540, 137]
ShowName off
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband1"
Ports [1, 1]
Position [215, 463, 300, 507]
ShowName off
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Bernoulli Random\nBinary Generator"
Ports [0, 1]
Position [65, 93, 145, 137]
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
P "0.5"
seed "435345"
Ts "10^-3/9.6"
frameBased on
sampPerFrame "120"
orient off
}
Block {
BlockType Reference
Name "Bernoulli Random\nBinary Generator1"
Ports [0, 1]
Position [60, 463, 140, 507]
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
P "0.5"
seed "435345"
Ts "10^-3/9.6"
frameBased on
sampPerFrame "120"
orient off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [360, 171, 450, 249]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [725, 441, 815, 519]
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1]
Position [200, 190, 295, 225]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "BER_Data"
RsMode2 off
stop off
numErr "10000"
maxBits "10^10"
}
Block {
BlockType Reference
Name "Error Rate Calculation1"
Ports [2, 1]
Position [600, 460, 695, 495]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "BER_Data"
RsMode2 off
stop off
numErr "100"
maxBits "1e100"
}
Line {
SrcBlock "Bernoulli Random\nBinary Generator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 85]
DstBlock "Error Rate Calculation"
DstPort 1
}
Branch {
DstBlock "BCH Encoder"
DstPort 1
}
}
Line {
SrcBlock "BCH Encoder"
SrcPort 1
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 100]
DstBlock "BPSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
Points [60, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "BCH Decoder"
DstPort 1
}
Line {
SrcBlock "Error Rate Calculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "BCH Decoder"
SrcPort 1
Points [-110, 0; 0, -100]
DstBlock "Error Rate Calculation"
DstPort 2
}
Line {
SrcBlock "Bernoulli Random\nBinary Generator1"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "BPSK\nModulator\nBaseband1"
DstPort 1
}
Branch {
Points [0, -60; 405, 0]
DstBlock "Error Rate Calculation1"
DstPort 1
}
}
Line {
SrcBlock "BPSK\nModulator\nBaseband1"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "BPSK\nDemodulator\nBaseband1"
DstPort 1
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband1"
SrcPort 1
DstBlock "Error Rate Calculation1"
DstPort 2
}
Line {
SrcBlock "Error Rate Calculation1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Annotation {
Name "BCH码试验"
Position [437, 32]
FontName "Arial"
FontSize 20
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -