📄 cdma2000.mdl
字号:
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;xFrameDu"
"ration=@4;"
MaskInitialization "MS_Interleaver_Initialization"
MaskDisplay "disp('Interleaver\\n\\n(cdma2000 MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration"
MaskTabNameString ",,,"
System {
Name "Interleaver"
Location [222, 165, 940, 499]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [55, 98, 85, 112]
IconDisplay "Port number"
}
Block {
BlockType FrameConversion
Name "Frame Conversion"
Position [345, 85, 400, 125]
OutFrame "Sample based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Position [550, 85, 605, 125]
OutFrame "Frame based"
}
Block {
BlockType Reference
Name "Puncture"
Ports [1, 1]
Position [215, 83, 295, 127]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "xPunctureVector"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [135, 88, 175, 122]
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "xRepetitionCount"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [450, 82, 520, 128]
FunctionName "MS_SFUN_Interleaver"
Parameters "xInterleaverSize"
}
Block {
BlockType Outport
Name "Output"
Position [655, 98, 685, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Puncture"
DstPort 1
}
Line {
SrcBlock "Puncture"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Frame Conversion1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion1"
SrcPort 1
DstBlock "Output"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Orthogonal Spreading"
Ports [2, 1]
Position [625, 113, 760, 177]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Orthogonal Spreading"
MaskDescription "Apply different Walsh sequence to each type"
" of channel and spread the input signal"
MaskPromptString "Radio Configuration|Bit Rate|Channel Type|R"
"aw Bits per Frame|Frame Duration"
MaskStyleString "edit,edit,popup(Reverse Fundamental Channel"
"|Reverse Supplementary Channel 1|Reverse Supplementary Channel 2|Reverse Dedi"
"cated Control Channel|Reverse Common Control Channel|Reverse Pilot Channel|En"
"hanced Access Channel),edit,edit"
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;xChannelType=@3;xFrameLe"
"ngth=@4;xFrameDuration=@5;"
MaskInitialization "MS_OrthogonalSpreading_Initialization"
MaskDisplay "disp('Orthogonal Spreading \\n\\n(cdma2000 "
"MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|Reverse Fundamental Channel|mF"
"rameLength|mFrameDuration"
MaskTabNameString ",,,,"
System {
Name "Orthogonal Spreading"
Location [219, 203, 920, 520]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [55, 153, 85, 167]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Relative Gain"
Position [50, 68, 80, 82]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [300, 243, 385, 287]
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 "Product"
Ports [2, 1]
Position [515, 135, 545, 230]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [610, 110, 645, 210]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [115, 138, 195, 182]
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "xRepetitionCount"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [265, 136, 315, 184]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [360, 138, 440, 182]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Output"
Position [690, 153, 720, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Hadamard\nCode Generator"
SrcPort 1
Points [55, 0; 0, -60]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Relative Gain"
SrcPort 1
Points [510, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Output"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [15, 108, 95, 152]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "37"
Ts "mFrameDuration/1000/mFrameLength"
frameBased on
sampPerFrame "mFrameLength"
orient off
outDataType "double"
}
Block {
BlockType Outport
Name "Frame Data"
Position [800, 138, 830, 152]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "CRC"
SrcPort 1
DstBlock "Encoder"
DstPort 1
}
Line {
SrcBlock "Encoder"
SrcPort 1
DstBlock "Interleaver"
DstPort 1
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "CRC"
DstPort 1
}
Line {
SrcBlock "Interleaver"
SrcPort 1
DstBlock "Orthogonal Spreading"
DstPort 1
}
Line {
SrcBlock "Relative Gain"
SrcPort 1
Points [65, 0; 0, -55]
DstBlock "Orthogonal Spreading"
DstPort 2
}
Line {
SrcBlock "Orthogonal Spreading"
SrcPort 1
DstBlock "Frame Data"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Gain"
Position [320, 275, 350, 305]
Value "1/2"
}
Block {
BlockType SubSystem
Name "Model Initialazion"
Ports []
Position [135, 29, 249, 94]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Model Initialization"
MaskDescription "Model Initialization"
MaskPromptString "Radio Configuration|Raw Bits per Frame|Frame Du"
"ration|Bit Rate"
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;xFrameLength=@2;xFrameDuration=@3;xBitRa"
"te=@4;"
MaskInitialization "assignin('base','mRC',xRC);\nassignin('base','m"
"FrameLength',xFrameLength);\nassignin('base','mFrameDuration',xFrameDuration)"
";\nassignin('base','mBitRate',xBitRate);"
MaskDisplay "disp('Model Initialization\\n\\n(cdma2000 MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3|172|20|9600"
MaskTabNameString ",,,"
System {
Name "Model Initialazion"
Location [137, 153, 635, 453]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Modulation"
Ports [6, 1]
Position [420, 66, 595, 314]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Modulation"
MaskDescription "Modulation"
MaskInitialization "MS_Modulation_Initialization"
MaskDisplay "disp('Modulation\\n\\n(cdma2000 MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Modulation"
Location [10, 105, 1005, 543]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 178
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "CH2"
Position [70, 173, 100, 187]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "PCH"
Position [70, 208, 100, 222]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "DCCH"
Position [70, 243, 100, 257]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -