📄 msmodulation.mdl
字号:
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration"
MaskTabNameString ",,,"
System {
Name "Interleaver"
Location [2, 78, 1022, 714]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [325, 32, 375, 68]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [555, 32, 605, 68]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Puncture"
Ports [1, 1]
Position [185, 28, 265, 72]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "xPunctureVector"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [105, 33, 145, 67]
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 [415, 25, 525, 75]
FunctionName "MS_SFUN_Interleaver"
Parameters "xInterleaverSize"
MaskPromptString "Frame Length|Code Rate"
MaskStyleString "edit,popup(rate 1/2|rate 1/3|rate 1/4)"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "xFrameLength=@1;xCodeRate=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|rate 1/2"
MaskTabNameString ","
}
Block {
BlockType Outport
Name "Out1"
Position [670, 43, 700, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Puncture"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Puncture"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Orthogonal Spreading"
Ports [2, 1]
Position [795, 76, 920, 194]
AncestorBlock "orthogonalspreading/Subsystem"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
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(cdma 2000 "
"MS)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|Reverse Fundamental Channel|mF"
"rameLength|mFrameDuration"
MaskTabNameString ",,,,"
System {
Name "Orthogonal Spreading"
Location [58, 208, 924, 572]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In2"
Position [20, 143, 50, 157]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In1"
Position [65, 43, 95, 57]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [340, 243, 425, 287]
SourceBlock "commseqgen2/Hadamard\nCode Generator"
SourceType "Hadamard Code Generator"
ShowPortLabels on
length "xWalshCodeLength"
index "xWalshCodeIndex"
ts "1/1228800"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [495, 126, 545, 219]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [625, 81, 675, 174]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [85, 117, 165, 183]
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "xRepetitionCount"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [240, 126, 290, 174]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [340, 126, 420, 174]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Out1"
Position [790, 73, 820, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Hadamard\nCode Generator"
SrcPort 1
Points [25, 0; 0, -70]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [50, 0; 0, -50]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [35, 0; 0, -25]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [255, 0; 0, 55]
DstBlock "Product1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [50, 83, 130, 127]
FontName "Arial"
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
}
Block {
BlockType Outport
Name "Frame Data"
Position [980, 128, 1010, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Relative Gain"
SrcPort 1
Points [30, 0; 0, -20]
DstBlock "Orthogonal Spreading"
DstPort 2
}
Line {
SrcBlock "Orthogonal Spreading"
SrcPort 1
DstBlock "Frame Data"
DstPort 1
}
Line {
SrcBlock "Interleaver"
SrcPort 1
DstBlock "Orthogonal Spreading"
DstPort 1
}
Line {
SrcBlock "Encoder"
SrcPort 1
DstBlock "Interleaver"
DstPort 1
}
Line {
SrcBlock "CRC"
SrcPort 1
DstBlock "Encoder"
DstPort 1
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "CRC"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [545, 152, 595, 188]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Constant
Name "Gain"
Position [270, 240, 300, 270]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
Value "1/2"
}
Block {
BlockType SubSystem
Name "Model Initilization"
Ports []
Position [50, 29, 167, 105]
BackgroundColor "yellow"
DropShadow on
Permissions "NoReadOrWrite"
PermitHierarchicalResolution "None"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
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"
"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|172|20|9600"
MaskTabNameString ",,,"
System {
Name "Model Initilization"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -