📄 whole_cdma2000.mdl
字号:
BlockType Outport
Name "Out1"
Position [465, 48, 495, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Puncture"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "Block Interleaver"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Puncture"
SrcPort 1
DstBlock "Block Interleaver"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Model Initialization1"
Ports []
Position [375, 93, 545, 157]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Model Initialization cdma 2000 MS"
MaskPromptString "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;"
MaskInitialization "assignin('base','mRC',xRC);\nassignin('base','m"
"FrameDuration',xFrameDuration);\nassignin('base','mBitRate',xBitRate);\nassig"
"nin('base','mFrameLength',xFrameLength);"
MaskDisplay "disp('Model Initialization\\n\\n(cdma 2000 MS)'"
")"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3|9600|24|5"
MaskTabNameString ",,,"
System {
Name "Model Initialization1"
Location [4, 213, 957, 515]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Orthogonal Spreading"
Ports [2, 1]
Position [635, 239, 750, 301]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration|Channel Type"
MaskStyleString "edit,edit,edit,edit,popup(Reverse Fundamental C"
"hannel|Reverse Supplementary Channel 1|Reverse Supplementary Channel 2|Revers"
"e Dedicated Control Channel|Reverse Common Control Channel|Reverse Pilot Chan"
"nel|Enhanced Access Channel)"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;xChannelType=@5;"
MaskInitialization "MSOrthogonalSpreadingInitialization"
MaskDisplay "disp('Orthogonal Spreading\\n\\n(cdma 2000 MS)'"
")"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration|Revers"
"e Fundamental Channel"
MaskTabNameString ",,,,"
System {
Name "Orthogonal Spreading"
Location [80, 348, 811, 670]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Relative Gain"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Input"
Position [25, 108, 55, 122]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [275, 188, 380, 242]
SourceBlock "commseqgen2/Hadamard\nCode Generator"
SourceType "Hadamard Code Generator"
ShowPortLabels "on"
length "xWalshCodeLength"
index "xWalshCodeIndex"
ts "1/1228800"
frameBased "off"
sampPerFrame "1"
outDataType "double"
}
Block {
BlockType Product
Name "Power Control"
Ports [2, 1]
Position [575, 36, 625, 174]
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [100, 93, 180, 137]
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "xRepetitionCount"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Product
Name "Spread"
Ports [2, 1]
Position [470, 90, 525, 185]
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [225, 91, 275, 139]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [330, 91, 410, 139]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels "on"
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Output"
Position [675, 98, 705, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Spread"
DstPort 1
}
Line {
SrcBlock "Hadamard\nCode Generator"
SrcPort 1
Points [35, 0; 0, -55]
DstBlock "Spread"
DstPort 2
}
Line {
SrcBlock "Spread"
SrcPort 1
DstBlock "Power Control"
DstPort 2
}
Line {
SrcBlock "Relative Gain"
SrcPort 1
Points [470, 0; 0, 35]
DstBlock "Power Control"
DstPort 1
}
Line {
SrcBlock "Power Control"
SrcPort 1
DstBlock "Output"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [780, 254, 930, 316]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Modulation \\n\\n (cdma 2000 ms)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [2, 80, 1014, 722]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "FCH"
Position [105, 208, 135, 222]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Gain"
Position [655, 338, 685, 352]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FIR\nInterpolation"
Ports [1, 1]
Position [425, 59, 490, 111]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspmlti4/FIR\nInterpolation"
SourceType "FIR Interpolation"
h "xFIR"
L "4"
framing "Maintain input frame size"
outputBufInitCond "0"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as accumulator"
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 "FIR\nInterpolation1"
Ports [1, 1]
Position [430, 324, 495, 376]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspmlti4/FIR\nInterpolation"
SourceType "FIR Interpolation"
h "xFIR"
L "4"
framing "Maintain input frame size"
outputBufInitCond "0"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as accumulator"
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 Product
Name "Gain Product3"
Ports [2, 1]
Position [740, 181, 780, 294]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType SubSystem
Name "PN Sequence"
Ports [0, 2]
Position [25, 29, 130, 91]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Seed to Generate Long Code Mask"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "xSeed=@1;"
MaskInitialization "MSPNSequenceInitialization"
MaskDisplay "disp('PN Sequence\\n\\n(cdma 2000 MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "7"
System {
Name "PN Sequence"
Location [-8, 82, 954, 367]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType "S-Function"
Name "Conversion"
Ports [1, 1]
Position [650, 191, 755, 229]
FunctionName "MSSFUNQConvert"
}
Block {
BlockType Product
Name "I Product"
Ports [2, 1]
Position [520, 39, 565, 126]
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Insert Zero"
Ports [1, 1]
Position [125, 28, 205, 72]
SourceBlock "commsequence2/Insert Zero"
SourceType "Insert Zero"
insertZeroVector "[1 0 ones(1,2^15-2)]'"
}
Block {
BlockType Reference
Name "Insert Zero1"
Ports [1, 1]
Position [125, 213, 205, 257]
SourceBlock "commsequence2/Insert Zero"
SourceType "Insert Zero"
insertZeroVector "[1 0 ones(1,2^15-2)]'"
}
Block {
BlockType Reference
Name "LC Converter"
Ports [1, 1]
Position [340, 116, 420, 164]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels "on"
M "2"
polarity "Negative"
}
Block {
BlockType Reference
Name "Long Code\nGenerator"
Ports [0, 1]
Position [195, 118, 275, 162]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "xLongCodeGenerator"
ini_sta "[zeros(1,41) 1]"
shift "xLongCodeMask"
Ts "xSampleTime"
frameBased "off"
sampPerFrame "1"
reset "off"
outDataType "double"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -