📄 mc_cdma_rayleigh_kuirs.mdl
字号:
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Convolutional\nEncoder"
DstPort 1
}
Line {
SrcBlock "Matrix\nInterleaver"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DeSpread & DemodQPSK"
Ports [2, 1]
Position [465, 468, 595, 537]
Orientation "left"
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DeSpread & DemodQPSK"
Location [2, 78, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [525, 38, 555, 52]
Orientation "left"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [580, 73, 610, 87]
Orientation "left"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [125, 117, 175, 153]
Orientation "left"
FontSize 10
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "400"
numNewFrames "100"
LineMarkers "*"
LineColors "[1 0 0]"
fading on
render on
AxisGrid on
xMin "-1.48981002472692"
xMax "1.45670885594252"
yMin "-1.4728007653754"
yMax "1.47371811529404"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber on
FigPos "[19 0 434 434]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [295, 47, 345, 83]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Gain
Name "Gain"
Position [515, 65, 545, 95]
Orientation "left"
Gain "1/128"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [210, 50, 240, 80]
Orientation "left"
Gain "1.414"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [405, 28, 455, 97]
Orientation "left"
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [85, 40, 160, 90]
Orientation "left"
NamePlacement "alternate"
FontSize 10
SourceBlock "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
ShowPortLabels on
OutType "Integer"
Dec "Binary"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType Outport
Name "Out1"
Position [25, 58, 55, 72]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [0, 0; -20, 0]
Branch {
Points [0, 70]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
DstBlock "QPSK\nDemodulator\nBaseband1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "QPSK\nDemodulator\nBaseband1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Del CP & DeOFDM"
Ports [1, 2]
Position [880, 455, 990, 515]
Orientation "left"
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Del CP & DeOFDM"
Location [114, 414, 1103, 675]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [865, 68, 895, 82]
Orientation "left"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [570, 58, 610, 92]
Orientation "left"
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 [465, 57, 515, 93]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [145, 90, 175, 120]
Orientation "left"
Operator "transpose"
}
Block {
BlockType Math
Name "Math\nFunction4"
Ports [1, 1]
Position [765, 60, 795, 90]
Orientation "left"
Operator "transpose"
}
Block {
BlockType Math
Name "Math\nFunction5"
Ports [1, 1]
Position [360, 60, 390, 90]
Orientation "left"
Operator "transpose"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 2]
Position [210, 16, 290, 134]
Orientation "left"
BackgroundColor "orange"
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{2:7,1}"
idxErrMode "Clip Index"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [670, 56, 720, 94]
Orientation "left"
InputType "Matrix"
Elements "[1 3]"
Rows "[33:160]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out1"
Position [70, 38, 100, 52]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [65, 98, 95, 112]
Orientation "left"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Math\nFunction5"
DstPort 1
}
Line {
SrcBlock "Math\nFunction4"
SrcPort 1
Points [0, 0]
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Math\nFunction4"
DstPort 1
}
Line {
SrcBlock "Math\nFunction5"
SrcPort 1
DstBlock "Multiport\nSelector1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector1"
SrcPort 2
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [550, 341, 635, 399]
FontSize 10
Decimation "1"
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [340, 326, 425, 384]
FontSize 10
Decimation "1"
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [125, 299, 175, 371]
FontSize 10
SourceBlock "commseqgen2/Hadamard\nCode Generator"
SourceType "Hadamard Code Generator"
ShowPortLabels on
length "128"
index "2"
ts "1/128000"
frameBased on
sampPerFrame "128"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [1093, 220, 1137, 300]
Orientation "down"
NamePlacement "alternate"
FontSize 10
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "40"
simTs "1e-6"
delayVec "[0 2e-6]"
gainVecdB "[0 -3]"
normGain on
Seed "73"
}
Block {
BlockType SubSystem
Name "OFDM & Add CP"
Ports [2, 1]
Position [865, 169, 980, 231]
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM & Add CP"
Location [2, 78, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -