📄 cdma1.mdl
字号:
SrcBlock "Integer Delay4"
SrcPort 1
Points [0, 5]
DstBlock "Product8"
DstPort 1
}
Line {
SrcBlock "Sum of\nElements4"
SrcPort 1
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "Sum of\nElements5"
SrcPort 1
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Product8"
SrcPort 1
DstBlock "Sum of\nElements5"
DstPort 1
}
Line {
SrcBlock "Product7"
SrcPort 1
DstBlock "Sum of\nElements4"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Sum of\nElements1"
DstPort 1
}
Line {
SrcBlock "PN Sequence1"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [100, 0]
Branch {
DstBlock "Product3"
DstPort 2
}
Branch {
DstBlock "Integer Delay1"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Add3"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Add2"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Add3"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [20, 0; 0, 65]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [20, 0; 0, -70]
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Mean1"
DstPort 1
}
Line {
SrcBlock "Mean1"
SrcPort 1
DstBlock "Mean"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
}
}
Block {
BlockType Display
Name "MSE Display"
Ports [1]
Position [1010, 461, 1090, 529]
BackgroundColor "lightBlue"
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [470, 333, 555, 387]
ShowName off
SourceBlock "commchan3/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
maxDopplerShift "40"
pathDelays "[0 1e-6 2e-6]"
avgPathGaindB "[0 -3 -6]"
normalizePathGains on
seed "73"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Reference
Name "PN Sequence1"
Ports [0, 1]
Position [85, 385, 160, 425]
ShowName off
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[6 5 0]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1e-6"
frameBased on
sampPerFrame "63"
reset off
outDataType "double"
}
Block {
BlockType Reference
Name "PN Sequence2"
Ports [0, 1]
Position [85, 445, 160, 485]
ShowName off
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[6 5 0]"
ini_sta "[0 0 0 1 0 1]"
shift "0"
Ts "1e-6"
frameBased on
sampPerFrame "63"
reset off
outDataType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [350, 332, 380, 363]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [325, 457, 355, 488]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "RAKE"
Ports [1, 9]
Position [690, 258, 755, 462]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "RAKE"
Location [2, 82, 1253, 753]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [95, 193, 125, 207]
IconDisplay "Port number"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [500, 365, 530, 405]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle1"
Ports [1, 2]
Position [500, 453, 530, 497]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle2"
Ports [1, 2]
Position [500, 550, 530, 590]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType Constant
Name "Constant"
Position [555, 310, 585, 340]
ShowName off
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [720, 87, 750, 118]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [725, 202, 755, 233]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [2, 1]
Position [725, 292, 755, 323]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [288, 410, 322, 445]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "1"
}
Block {
BlockType Reference
Name "Integer Delay2"
Ports [1, 1]
Position [288, 130, 322, 165]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "1"
}
Block {
BlockType Reference
Name "Integer Delay3"
Ports [1, 1]
Position [288, 240, 322, 275]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "1"
}
Block {
BlockType Reference
Name "Integer Delay4"
Ports [1, 1]
Position [288, 515, 322, 550]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "1"
}
Block {
BlockType MagnitudeAngleToComplex
Name "Magnitude-Angle\nto Complex"
Ports [2, 1]
Position [620, 365, 650, 405]
ShowName off
Input "Magnitude and angle"
}
Block {
BlockType MagnitudeAngleToComplex
Name "Magnitude-Angle\nto Complex1"
Ports [2, 1]
Position [630, 453, 660, 497]
ShowName off
Input "Magnitude and angle"
}
Block {
BlockType MagnitudeAngleToComplex
Name "Magnitude-Angle\nto Complex2"
Ports [2, 1]
Position [645, 550, 675, 590]
ShowName off
Input "Magnitude and angle"
}
Block {
BlockType Reference
Name "PN Sequence1"
Ports [0, 1]
Position [35, 65, 110, 105]
ShowName off
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[6 5 0]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1e-6"
frameBased on
sampPerFrame "63"
reset off
outDataType "double"
}
Block {
BlockType Reference
Name "PN Sequence2"
Ports [0, 1]
Position [35, 370, 110, 410]
ShowName off
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[6 5 0]"
ini_sta "[0 0 0 1 0 1]"
shift "0"
Ts "1e-6"
frameBased on
sampPerFrame "63"
reset off
outDataType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [360, 77, 390, 108]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [360, 192, 390, 223]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [360, 282, 390, 313]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [330, 367, 360, 398]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product7"
Ports [2, 1]
Position [345, 457, 375, 488]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product8"
Ports [2, 1]
Position [350, 552, 380, 583]
ShowName off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -