📄 mmse_mpsk.mdl
字号:
Name "Taps"
Position [560, 110, 580, 130]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Dot Product"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "LMS\nCoefficient Update"
DstPort 1
}
}
Line {
Labels [0, 0; 0, 0]
SrcBlock "Check Signal\nAttributes2"
SrcPort 1
DstBlock "LMS\nCoefficient Update"
DstPort 3
}
Line {
SrcBlock "Adapt"
SrcPort 1
DstBlock "Check Signal\nAttributes2"
DstPort 1
}
Line {
Labels [0, 0; 0, 0; 0, 0]
SrcBlock "Check Signal\nAttributes1"
SrcPort 1
Points [55, 0; 0, 25]
DstBlock "LMS\nCoefficient Update"
DstPort 2
}
Line {
SrcBlock "Err"
SrcPort 1
DstBlock "Check Signal\nAttributes1"
DstPort 1
}
Line {
Labels [0, 0; 0, 0; 0, 0]
SrcBlock "Check Signal\nAttributes"
SrcPort 1
DstBlock "Rebuffer"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Check Signal\nAttributes"
DstPort 1
}
Line {
SrcBlock "Rebuffer"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "LMS\nCoefficient Update"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -85]
DstBlock "Dot Product"
DstPort 1
}
Branch {
DstBlock "Taps"
DstPort 1
}
}
Line {
Name "y[k]"
Labels [0, 0; 0, 0; 0, 0]
SrcBlock "Dot Product"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Step-size"
SrcPort 1
DstBlock "Check Signal\nAttributes3"
DstPort 1
}
Line {
SrcBlock "Check Signal\nAttributes3"
SrcPort 1
Points [55, 0; 0, -35]
DstBlock "LMS\nCoefficient Update"
DstPort 4
}
}
}
Block {
BlockType Display
Name "Performance measure"
Ports [1]
Position [630, 18, 720, 82]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [320, 210, 340, 230]
Orientation "left"
ShowName off
IconShape "round"
Inputs "|-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Terminator
Name "Terminator"
Position [385, 80, 405, 100]
ShowName off
}
Block {
BlockType SubSystem
Name "Transmitter"
RequirementInfo "{ }"
Ports [0, 1]
Position [20, 30, 90, 80]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Transmitter"
Location [279, 626, 762, 848]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Data generator"
Ports [0, 1]
Position [15, 41, 80, 79]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Data generator"
Location [307, 448, 729, 608]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [130, 25, 180, 75]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "log2(M)"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Convert 2-D to 1-D"
Ports [1, 1]
Position [270, 32, 330, 68]
SourceBlock "dspsigattribs/Convert 2-D to 1-D"
SourceType "Convert 2-D to 1-D"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [200, 34, 250, 66]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Goto
Name "Goto4"
Position [145, 112, 190, 128]
ShowName off
GotoTag "TxData"
TagVisibility "global"
}
Block {
BlockType Reference
Name "Random-Integer\nGenerator"
Ports [0, 1]
Position [15, 28, 95, 72]
SourceBlock "commsource2/Random-Integer\nGenerator"
SourceType "Random-Integer Generator"
mul "2"
seed "24680"
Ts "Tb/(log2(M))"
frameBased off
sampPerFrame "2"
orient off
}
Block {
BlockType Outport
Name "Out1"
Position [355, 43, 385, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Convert 2-D to 1-D"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Convert 2-D to 1-D"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Random-Integer\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 70]
DstBlock "Goto4"
DstPort 1
}
Branch {
DstBlock "Buffer"
DstPort 1
}
}
}
}
Block {
BlockType Goto
Name "Goto4"
Position [240, 16, 330, 34]
ShowName off
GotoTag "TrainingData"
TagVisibility "global"
}
Block {
BlockType Reference
Name "M-PSK\nModulator\nBaseband"
Ports [1, 1]
Position [110, 34, 185, 86]
SourceBlock "commdigbbndpm2/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "M"
InType "Bit"
Enc "Gray"
Ph "pi/M"
numSamp "1"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [15, 123, 95, 167]
SourceBlock "commsource2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 1 1]"
ini_sta "[1 1 0 1]"
Ts "Tc"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [350, 51, 395, 84]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [230, 81, 310, 129]
ShowName off
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Positive"
}
Block {
BlockType Outport
Name "TxSig"
Position [430, 63, 460, 77]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Data generator"
SrcPort 1
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
Points [90, 0; 0, -40]
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Goto4"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "TxSig"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Product"
DstPort 2
}
}
}
Line {
SrcBlock "Transmitter"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "LMS\nAdaptive DS-SS Receiver"
DstPort 1
}
Line {
SrcBlock "LMS\nAdaptive DS-SS Receiver"
SrcPort 1
Points [50, 0]
Branch {
Points [0, 160]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Decoding"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [-75, 0; 0, -65]
Branch {
Points [0, -80]
DstBlock "LMS\nAdaptive DS-SS Receiver"
DstPort 2
}
Branch {
DstBlock "Complex to\nMagnitude"
DstPort 1
}
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [-35, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Complex to\nMagnitude"
SrcPort 1
DstBlock "Error Signal"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "LMS\nAdaptive DS-SS Receiver"
DstPort 3
}
Line {
SrcBlock "Decoding"
SrcPort 1
DstBlock "Error Rate Calculation"
DstPort 2
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Error Rate Calculation"
DstPort 1
}
Line {
SrcBlock "LMS\nAdaptive DS-SS Receiver"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Error Rate Calculation"
SrcPort 1
DstBlock "Performance measure"
DstPort 1
}
Annotation {
Position [88, 125]
Text "MMSE Receiver for DS-SS\nPG = 15, M-PSK modulat"
"ion"
FontName "Arial"
FontSize 11
}
Annotation {
Position [639, 182]
Text "Workspace variables:\nTb: 0.001\nM: M-ary PSK\n"
"PG: processing\ndb: channel SNR"
FontName "Arial"
FontSize 14
}
Annotation {
Position [389, 304]
Text "The adaptive receiver causes one symbol delay"
FontName "Arial"
FontSize 11
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -